8000 Bump test dependencies; improve `pycln` config (#9197) · python/typeshed@263427f · GitHub
[go: up one dir, main page]

Skip to content

Commit 263427f

Browse files
authored
Bump test dependencies; improve pycln config (#9197)
1 parent 66edd05 commit 263427f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
repos:
22
- repo: https://github.com/hadialqattan/pycln
3-
rev: v2.1.1 # must match requirements-tests.txt
3+
rev: v2.1.2 # must match requirements-tests.txt
44
hooks:
55
- id: pycln
6-
args: [--all, stubs, stdlib, tests, scripts]
6+
args: [--config=pyproject.toml, stubs, stdlib, tests, scripts]
77
- repo: https://github.com/psf/black
88
rev: 22.10.0 # must match requirements-tests.txt
99
hooks:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ That being said, if you *want* to run the checks locally when you commit,
9494
you're free to do so. Either run `pycln`, `black` and `isort` manually...
9595

9696
```
97-
pycln --all .
97+
pycln --config=pyproject.toml .
9898
isort .
9999
black .
100100
```

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ extra_standard_library = [
5555
"opcode",
5656
"pyexpat",
5757
]
58+
59+
[tool.pycln]
60+
all = true
61+
disable_all_dunder_policy = true

requirements-tests.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ flake8-bugbear==22.10.27 # must match .pre-commit-config.yaml
55
flake8-noqa==1.2.9 # must match .pre-commit-config.yaml
66
flake8-pyi==22.10.0 # must match .pre-commit-config.yaml
77
isort==5.10.1 # must match .pre-commit-config.yaml
8-
mypy==0.990
8+
mypy==0.991
99
packaging==21.3
1010
pathspec
11-
pycln==2.1.1 # must match .pre-commit-config.yaml
11+
pycln==2.1.2 # must match .pre-commit-config.yaml
1212
pyyaml==6.0
13-
pytype==2022.10.26; platform_system != "Windows" and python_version < "3.11"
13+
pytype==2022.11.10; platform_system != "Windows" and python_version < "3.11"
1414
termcolor>=2
1515
tomli==2.0.1
1616
tomlkit==0.11.6

0 commit comments

Comments
 (0)
0