File tree 5 files changed +322
-290
lines changed
5 files changed +322
-290
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,22 @@ repos:
35
35
- --offset
36
36
- ' 2'
37
37
- repo : https://github.com/astral-sh/ruff-pre-commit
38
- rev : v0.5.1
38
+ rev : v0.6.8
39
39
hooks :
40
40
- id : ruff
41
41
args :
42
42
- --fix
43
43
exclude : tests/input/
44
44
- repo : https://github.com/psf/black
45
- rev : 24.4.2
45
+ rev : 24.8.0
46
46
hooks :
47
47
- id : black
48
48
- repo : https://github.com/asottile/blacken-docs
49
49
rev : 1.18.0
50
50
hooks :
51
51
- id : blacken-docs
52
52
additional_dependencies :
53
- - black==23.9.1
53
+ - black==24.8.0
54
54
- repo : https://github.com/pre-commit/pygrep-hooks
55
55
rev : v1.10.0
56
56
hooks :
74
74
language : pygrep
75
75
types : [python]
76
76
- repo : https://github.com/pre-commit/mirrors-mypy
77
- rev : v1.10.1
77
+ rev : v1.11.2
78
78
hooks :
79
79
- id : mypy
80
80
exclude : tests/input/
Original file line number Diff line number Diff line change 1
1
# Use python executables inside venv
2
2
export PATH := .venv/bin:$(PATH )
3
- export PYTHONPATH =.
3
+ export PYTHONPATH = ` pwd `
4
4
5
5
# creates the venv
6
6
.venv/bin/python3.11 :
7
7
python3.11 -m venv .venv
8
8
9
9
# makes sures the venv contains a given version of pip and pip-tools
10
10
.venv : .venv/bin/python3.11
11
- pip install --quiet --upgrade ' pip==23.3.1 ' ' pip-tools==7.3 '
11
+ pip install --quiet --upgrade ' pip==24.2 ' ' pip-tools==7.4.1 '
12
12
13
13
# generates a lock file with pinned version of all dependencies to be used by the CI and local devs
14
14
requirements/dev.txt : .venv requirements/dev.in
@@ -30,10 +30,9 @@ upgrade: .venv
30
30
pyproject.toml \
31
31
requirements/dev.in
32
32
33
-
34
33
# creates the venv if not present then install the dependencies, the package and pre-commit
35
34
.PHONY : install
36
- install : .venv
35
+ install : .venv requirements/dev.txt
37
36
pip-sync requirements/dev.txt
38
37
# install pylint_pytest (deps are already handled by the line before)
39
38
pip install --no-deps -e .
Original file line number Diff line number Diff line change 12
12
13
13
14
14
class CustomVariablesChecker (VariablesChecker ):
15
- """Overrides the default VariablesChecker of pylint to discard unwanted warning messages"""
15
+ """Overrides the default VariablesChecker of pylint to discard unwanted warning messages. """
16
16
17
17
# pylint: disable=protected-access
18
18
# this class needs to access the fixture checker registries
19
19
20
- def add_message (
20
+ def add_message ( # pylint: disable=too-many-positional-arguments # Original Signature
21
21
self ,
22
22
msgid : str ,
23
23
line : int | None = None ,
Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ ignore = [
166
166
]
167
167
168
168
[tool .ruff .lint .pydocstyle ]
169
+ # https://github.com/astral-sh/ruff/pull/13286
170
+ # XXX: sphinx??
169
171
convention = " google"
170
172
171
173
[tool .ruff .lint .extend-per-file-ignores ]
You can’t perform that action at this time.
0 commit comments