Skip to content

Commit 12d5d89

Browse files
committed
ruff lint
suppress tests lint output
1 parent 5493069 commit 12d5d89

28 files changed

Lines changed: 552 additions & 478 deletions

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
uses: andgineer/uv-venv@v1
2525
- name: Static source code checks
2626
run: |
27-
uv pip install -r requirements.dev.txt
27+
uv pip install -r requirements.dev.txt
2828
pre-commit run --verbose --all-files

.pre-commit-config.yaml

Lines changed: 63 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,72 @@
11
exclude: |
22
(?x)(
3-
tests/|
4-
version.py|
5-
conftest.py
3+
.venv/
64
)
7-
85
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v5.0.0
8+
hooks:
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
exclude_types: [ python ]
12+
- id: trailing-whitespace
13+
exclude_types: [ python ]
914
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
# Ruff version.
11-
rev: v0.9.1
15+
rev: v0.9.10
1216
hooks:
13-
# Run the linter.
1417
- id: ruff
15-
args: [ --fix ]
16-
# Run the formatter.
18+
exclude: ^tests/
19+
args: [
20+
--fix,
21+
--line-length=100,
22+
--select=PL, # All Pylint rules
23+
--select=A001, # Shadowing Python builtins
24+
--select=ARG, # Unused function arguments
25+
--select=B, # Bugbear rules (B002,B006,etc)
26+
--select=BLE, # Blind except
27+
--select=C, # Complexity
28+
--select=COM, # Comma placement
29+
--select=E, # pycodestyle errors
30+
--select=F, # Pyflakes
31+
--select=G, # Logging format
32+
--select=I, # Import ordering
33+
--select=ISC, # Implicit string concatenation
34+
--select=N, # Naming
35+
--select=PIE, # Misc rules
36+
--select=Q, # Quotes
37+
--select=RET, # Return statement
38+
--select=S, # Security
39+
--select=SIM, # Code simplification
40+
--select=SLF, # Private member access
41+
--select=TID, # Tidy imports
42+
--select=TRY, # Exception handling
43+
--select=UP, # Upgrade syntax
44+
--select=W, # Warnings
45+
'--ignore=B019,S101,G004,TRY003,TRY300,TRY301,TRY400' # Ignore docstring and `assert` detection
46+
]
47+
- id: ruff
48+
name: ruff-format-tests
49+
files: ^tests/
50+
args: [
51+
--fix-only,
52+
--line-length=99,
53+
--exit-zero # Don't fail on issues
54+
]
1755
- id: ruff-format
18-
- repo: https://github.com/RobertCraigie/pyright-python
19-
rev: v1.1.391
56+
args: [
57+
--line-length=100
58+
]
59+
- repo: local
2060
hooks:
21-
- id: pyright
22-
23-
# - repo: local
24-
# hooks:
25-
# - id: mypy
26-
# name: MyPy
27-
# entry: |
28-
# mypy
29-
# --ignore-missing-imports
30-
# --install-types
31-
# --non-interactive
32-
# --strict
33-
# --implicit-reexport
34-
# --warn-unused-ignores
35-
# --cache-fine-grained
36-
# --no-namespace-packages
37-
# files: \.py$
38-
# language: python
39-
#
40-
# - id: pylint
41-
# name: Pylint
42-
# entry: |
43-
# bash -c 'PYTHONPATH=. pylint \
44-
# --max-line-length=99 \
45-
# --ignore-imports=yes \
46-
# "$@"' --
47-
# files: \.py$
48-
# language: python
61+
- id: mypy
62+
name: mypy
63+
entry: mypy
64+
args: [
65+
"--install-types",
66+
"--non-interactive",
67+
"--ignore-missing-imports",
68+
"--namespace-packages",
69+
"--explicit-package-bases"
70+
]
71+
language: system
72+
types: [ python ]

.pylintrc

Lines changed: 0 additions & 47 deletions
This file was deleted.

pyrightconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"reportMissingImports": true,
1515
"reportMissingModuleSource": false,
1616
"reportMissingTypeStubs": true
17-
}
17+
}

requirements.dev.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ annotated-types==0.7.0
88
# via
99
# -r requirements.txt
1010
# pydantic
11-
astroid==3.3.8
11+
astroid==3.3.9
1212
# via pylint
1313
bracex==2.5.post1
1414
# via wcmatch
1515
build==1.2.2.post1
1616
# via pip-tools
17-
cachetools==5.5.0
17+
cachetools==5.5.2
1818
# via
1919
# -r requirements.txt
2020
# google-auth
21-
certifi==2024.12.14
21+
certifi==2025.1.31
2222
# via
2323
# -r requirements.txt
2424
# requests
@@ -35,29 +35,29 @@ click==8.1.8
3535
# mkdocs
3636
# pip-tools
3737
# typer
38-
coverage[toml]==7.6.10
38+
coverage[toml]==7.6.12
3939
# via pytest-cov
4040
dill==0.3.9
4141
# via pylint
4242
distlib==0.3.9
4343
# via virtualenv
44-
filelock==3.16.1
44+
filelock==3.17.0
4545
# via virtualenv
4646
freezegun==1.5.1
4747
# via -r requirements.dev.in
4848
ghp-import==2.1.0
4949
# via mkdocs
50-
google-api-core==2.24.0
50+
google-api-core==2.24.2
5151
# via
5252
# -r requirements.txt
5353
# google-api-python-client
54-
google-api-python-client==2.159.0
54+
google-api-python-client==2.163.0
5555
# via
5656
# -r requirements.txt
5757
# google-api-python-client-stubs
58-
google-api-python-client-stubs==1.28.0
58+
google-api-python-client-stubs==1.29.0
5959
# via -r requirements.dev.in
60-
google-auth==2.37.0
60+
google-auth==2.38.0
6161
# via
6262
# -r requirements.txt
6363
# google-api-core
@@ -67,7 +67,7 @@ google-auth-httplib2==0.2.0
6767
# via
6868
# -r requirements.txt
6969
# google-api-python-client
70-
googleapis-common-protos==1.66.0
70+
googleapis-common-protos==1.69.1
7171
# via
7272
# -r requirements.txt
7373
# google-api-core
@@ -77,17 +77,17 @@ httplib2==0.22.0
7777
# google-api-python-client
7878
# google-auth-httplib2
7979
# oauth2client
80-
identify==2.6.5
80+
identify==2.6.9
8181
# via pre-commit
8282
idna==3.10
8383
# via
8484
# -r requirements.txt
8585
# requests
8686
iniconfig==2.0.0
8787
# via pytest
88-
isort==5.13.2
88+
isort==6.0.1
8989
# via pylint
90-
jinja2==3.1.5
90+
jinja2==3.1.6
9191
# via mkdocs
9292
lazydocs==0.4.8
9393
# via -r requirements.dev.in
@@ -115,7 +115,7 @@ mkdocs-awesome-pages-plugin==2.10.1
115115
# via -r requirements.dev.in
116116
mkdocs-get-deps==0.2.0
117117
# via mkdocs
118-
mypy==1.14.1
118+
mypy==1.15.0
119119
# via -r requirements.dev.in
120120
mypy-extensions==1.0.0
121121
# via mypy
@@ -141,9 +141,9 @@ platformdirs==4.3.6
141141
# virtualenv
142142
pluggy==1.5.0
143143
# via pytest
144-
pre-commit==4.0.1
144+
pre-commit==4.1.0
145145
# via -r requirements.dev.in
146-
proto-plus==1.25.0
146+
proto-plus==1.26.1
147147
# via
148148
# -r requirements.txt
149149
# google-api-core
@@ -168,15 +168,15 @@ pycparser==2.22
168168
# via
169169
# -r requirements.txt
170170
# cffi
171-
pydantic==2.10.5
171+
pydantic==2.10.6
172172
# via -r requirements.txt
173173
pydantic-core==2.27.2
174174
# via
175175
# -r requirements.txt
176176
# pydantic
177177
pygments==2.19.1
178178
# via rich
179-
pylint==3.3.3
179+
pylint==3.3.5
180180
# via -r requirements.dev.in
181181
pyparsing==3.2.1
182182
# via
@@ -186,7 +186,7 @@ pyproject-hooks==1.2.0
186186
# via
187187
# build
188188
# pip-tools
189-
pytest==8.3.4
189+
pytest==8.3.5
190190
# via
191191
# -r requirements.dev.in
192192
# pytest-cov
@@ -233,7 +233,7 @@ six==1.17.0
233233
# python-dateutil
234234
tomlkit==0.13.2
235235
# via pylint
236-
typer==0.15.1
236+
typer==0.15.2
237237
# via lazydocs
238238
types-httplib2==0.22.0.20241221
239239
# via google-api-python-client-stubs
@@ -253,7 +253,7 @@ urllib3==2.3.0
253253
# via
254254
# -r requirements.txt
255255
# requests
256-
virtualenv==20.28.1
256+
virtualenv==20.29.3
257257
# via pre-commit
258258
watchdog==6.0.0
259259
# via mkdocs

requirements.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66
#
77
annotated-types==0.7.0
88
# via pydantic
9-
cachetools==5.5.0
9+
cachetools==5.5.2
1010
# via google-auth
11-
certifi==2024.12.14
11+
certifi==2025.1.31
1212
# via requests
1313
cffi==1.17.1
1414
# via -r requirements.in
1515
charset-normalizer==3.4.1
1616
# via requests
17-
google-api-core==2.24.0
17+
google-api-core==2.24.2
1818
# via google-api-python-client
19-
google-api-python-client==2.159.0
19+
google-api-python-client==2.163.0
2020
# via -r requirements.in
21-
google-auth==2.37.0
21+
google-auth==2.38.0
2222
# via
2323
# google-api-core
2424
# google-api-python-client
2525
# google-auth-httplib2
2626
google-auth-httplib2==0.2.0
2727
# via google-api-python-client
28-
googleapis-common-protos==1.66.0
28+
googleapis-common-protos==1.69.1
2929
# via google-api-core
3030
httplib2==0.22.0
3131
# via
@@ -37,7 +37,7 @@ idna==3.10
3737
# via requests
3838
oauth2client==4.1.3
3939
# via -r requirements.in
40-
proto-plus==1.25.0
40+
proto-plus==1.26.1
4141
# via google-api-core
4242
protobuf==5.29.3
4343
# via
@@ -55,7 +55,7 @@ pyasn1-modules==0.4.1
5555
# oauth2client
5656
pycparser==2.22
5757
# via cffi
58-
pydantic==2.10.5
58+
pydantic==2.10.6
5959
# via -r requirements.in
6060
pydantic-core==2.27.2
6161
# via pydantic

scripts/compile_requirements.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ rm -f requirements.dev.txt
99
# we should process requirements.in first because resulting requirements.txt included in requirements.dev.in
1010
pip-compile requirements.in --upgrade
1111
pip-compile requirements.dev.in --upgrade
12-

0 commit comments

Comments
 (0)