File tree Expand file tree Collapse file tree 3 files changed +1426
-1330
lines changed
Expand file tree Collapse file tree 3 files changed +1426
-1330
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,8 @@ repos:
1919 - id : debug-statements
2020 - id : check-docstring-first
2121
22- - repo : https://github.com/psf/black-pre-commit-mirror
23- rev : 24.1.1
24- hooks :
25- - id : black
26-
2722 - repo : https://github.com/astral-sh/ruff-pre-commit
28- rev : v0.2.1
23+ rev : v0.3.2
2924 hooks :
3025 - id : ruff
26+ - id : ruff-format
Original file line number Diff line number Diff line change @@ -44,11 +44,18 @@ export = "poetry_plugin_export.plugins:ExportApplicationPlugin"
4444
4545[tool .ruff ]
4646fix = true
47+ target-version = " py38"
48+ line-length = 88
49+ extend-exclude = [
50+ " docs/*" ,
51+ # External to the project's coding standards
52+ " tests/**/fixtures/*" ,
53+ ]
54+
55+ [tool .ruff .lint ]
4756unfixable = [
4857 " ERA" , # do not autoremove commented out code
4958]
50- target-version = " py38"
51- line-length = 88
5259extend-select = [
5360 " B" , # flake8-bugbear
5461 " C4" , # flake8-comprehensions
@@ -63,27 +70,18 @@ extend-select = [
6370 " TID" , # flake8-tidy-imports
6471 " UP" , # pyupgrade
6572]
66- extend-exclude = [
67- " docs/*" ,
68- # External to the project's coding standards
69- " tests/**/fixtures/*" ,
70- ]
7173
72- [tool .ruff .flake8-tidy-imports ]
74+ [tool .ruff .lint . flake8-tidy-imports ]
7375ban-relative-imports = " all"
7476
75- [tool .ruff .isort ]
77+ [tool .ruff .lint . isort ]
7678force-single-line = true
7779lines-between-types = 1
7880lines-after-imports = 2
7981known-first-party = [" poetry_plugin_export" ]
8082required-imports = [" from __future__ import annotations" ]
8183
8284
83- [tool .black ]
84- target-version = [' py38' ]
85- preview = true
86-
8785[tool .mypy ]
8886namespace_packages = true
8987show_error_codes = true
You can’t perform that action at this time.
0 commit comments