Skip to content

Commit b74a671

Browse files
authored
Merge pull request #152 from jakkdl/precommit_update
update pre-commit revs, flake8-typecheck now ignores stub files
2 parents 881b16a + 6090b9c commit b74a671

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ci:
55

66
repos:
77
- repo: https://github.com/Zac-HD/shed
8-
rev: 0.10.9
8+
rev: 2023.3.1
99
hooks:
1010
- id: shed
1111
args: ['--py39-plus']
1212

1313
- repo: https://github.com/RobertCraigie/pyright-python
14-
rev: v1.1.293
14+
rev: v1.1.298
1515
hooks:
1616
- id: pyright
1717
entry: env PYRIGHT_PYTHON_FORCE_VERSION=latest pyright
@@ -26,7 +26,7 @@ repos:
2626
- anyio
2727

2828
- repo: https://github.com/codespell-project/codespell
29-
rev: v2.2.2
29+
rev: v2.2.3
3030
hooks:
3131
- id: codespell
3232
additional_dependencies:

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ extend-enable = TC10
4242
exclude = .*, tests/eval_files/*
4343
per-file-ignores =
4444
flake8_trio/visitors/__init__.py: F401, E402
45-
# (TC002, TC003) We don't care about moving imports into type-checking blocks
46-
# see https://github.com/snok/flake8-type-checking/issues/152
4745
# (E301, E302) black formats stub files without excessive blank lines
4846
# (D) we don't care about docstrings in stub files
4947
# (Y021, Y048) pyright includes docstrings in generated files, so don't complain about them
50-
*.pyi: TC002, TC003, D, E301, E302
48+
*.pyi: D, E301, E302
5149

5250
[coverage:report]
5351
exclude_lines =

0 commit comments

Comments
 (0)