File tree Expand file tree Collapse file tree 4 files changed +35
-54
lines changed
Expand file tree Collapse file tree 4 files changed +35
-54
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,25 +26,6 @@ repos:
2626 - id : python-use-type-annotations
2727 - id : python-check-blanket-noqa
2828
29- - repo : https://github.com/asottile/yesqa
30- rev : v1.4.0
31- hooks :
32- - id : yesqa
33- additional_dependencies : &flake8_deps
34- - flake8-annotations==3.0.0
35- - flake8-broken-line==0.6.0
36- - flake8-bugbear==23.3.12
37- - flake8-comprehensions==3.11.1
38- - flake8-eradicate==1.4.0
39- - flake8-no-pep420==2.3.0
40- - flake8-quotes==3.3.2
41- - flake8-simplify==0.20.0
42- - flake8-tidy-imports==4.8.0
43- - flake8-type-checking==2.4.0
44- - flake8-typing-imports==1.14.0
45- - flake8-use-fstring==1.4
46- - pep8-naming==0.13.3
47-
4829 - repo : https://github.com/asottile/pyupgrade
4930 rev : v3.3.1
5031 hooks :
6950 hooks :
7051 - id : black
7152
72- - repo : https://github.com/pycqa/flake8
73- rev : 5 .0.4
53+ - repo : https://github.com/charliermarsh/ruff-pre-commit
54+ rev : v0 .0.262
7455 hooks :
75- - id : flake8
76- additional_dependencies : *flake8_deps
56+ - id : ruff
Original file line number Diff line number Diff line change @@ -39,6 +39,37 @@ pytest-github-actions-annotate-failures = "^0.1.7"
3939[tool .poetry .plugins ."poetry .application .plugin" ]
4040export = " poetry_plugin_export.plugins:ExportApplicationPlugin"
4141
42+
43+ [tool .ruff ]
44+ fix = true
45+ unfixable = [
46+ " ERA" , # do not autoremove commented out code
47+ ]
48+ target-version = " py37"
49+ line-length = 88
50+ extend-select = [
51+ " B" , # flake8-bugbear
52+ " C4" , # flake8-comprehensions
53+ " ERA" , # flake8-eradicate/eradicate
54+ " PIE" , # flake8-pie
55+ " SIM" , # flake8-simplify
56+ " TID" , # flake8-tidy-imports
57+ " TCH" , # flake8-type-checking
58+ " N" , # pep8-naming
59+ " RUF" , # ruff checks
60+ ]
61+ ignore = [
62+ " B904" , # use 'raise ... from err'
63+ " B905" , # use explicit 'strict=' parameter with 'zip()'
64+ " N818" # Exception name should be named with an Error suffix
65+ ]
66+ extend-exclude = [
67+ " docs/*" ,
68+ # External to the project's coding standards
69+ " tests/**/fixtures/*" ,
70+ ]
71+
72+
4273[tool .black ]
4374target-version = [' py37' ]
4475preview = true
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33from typing import TYPE_CHECKING
4- from typing import Protocol # noqa: TYP001
4+ from typing import Protocol
55
66
77if TYPE_CHECKING :
You can’t perform that action at this time.
0 commit comments