@@ -8,9 +8,9 @@ requires = [
8
8
name = " django-tree-queries"
9
9
description = " Tree queries with explicit opt-in, without configurability"
10
10
readme = " README.rst"
11
- license = {text = " BSD-3-Clause" }
11
+ license = { text = " BSD-3-Clause" }
12
12
authors = [
13
- {
name =
" Matthias Kestenholz" ,
email =
" [email protected] " },
13
+ {
name =
" Matthias Kestenholz" ,
email =
" [email protected] " },
14
14
]
15
15
requires-python = " >=3.8"
16
16
classifiers = [
@@ -32,82 +32,79 @@ classifiers = [
32
32
dynamic = [
33
33
" version" ,
34
34
]
35
- [project .optional-dependencies ]
36
- tests = [
35
+ optional-dependencies.tests = [
37
36
" coverage" ,
38
37
]
39
- [project .urls ]
40
- Homepage = " https://github.com/matthiask/django-tree-queries/"
38
+ urls.Homepage = " https://github.com/matthiask/django-tree-queries/"
41
39
42
40
[tool .hatch .build ]
43
- include = [" tree_queries/" ]
41
+ include = [
42
+ " tree_queries/" ,
43
+ ]
44
44
45
45
[tool .hatch .version ]
46
46
path = " tree_queries/__init__.py"
47
47
48
48
[tool .ruff ]
49
- fix = true
50
- preview = true
51
- show-fixes = true
52
49
target-version = " py38"
53
50
54
- [tool .ruff .lint ]
55
- extend-select = [
56
- # pyflakes, pycodestyle
57
- " F" , " E" , " W" ,
58
- # mmcabe
59
- " C90" ,
60
- # isort
61
- " I" ,
62
- # pep8-naming
63
- " N" ,
64
- # pyupgrade
65
- " UP" ,
66
- # flake8-2020
67
- " YTT" ,
68
- # flake8-boolean-trap
69
- " FBT" ,
70
- # flake8-bugbear
71
- " B" ,
51
+ preview = true
52
+ fix = true
53
+ show-fixes = true
54
+ lint.extend-select = [
72
55
# flake8-builtins
73
56
" A" ,
57
+ # flake8-bugbear
58
+ " B" ,
74
59
# flake8-comprehensions
75
60
" C4" ,
61
+ # mmcabe
62
+ " C90" ,
76
63
# flake8-django
77
64
" DJ" ,
65
+ " E" ,
66
+ # pyflakes, pycodestyle
67
+ " F" ,
68
+ # flake8-boolean-trap
69
+ " FBT" ,
78
70
# flake8-logging-format
79
71
" G" ,
80
- # flake8-pie
81
- " PIE" ,
82
- # flake8-simplify
83
- " SIM" ,
72
+ # isort
73
+ " I" ,
84
74
# flake8-gettext
85
75
" INT" ,
76
+ # pep8-naming
77
+ " N" ,
86
78
# pygrep-hooks
87
79
" PGH" ,
80
+ # flake8-pie
81
+ " PIE" ,
88
82
# pylint
89
- " PLC" , " PLE" , " PLW" ,
83
+ " PLC" ,
84
+ " PLE" ,
85
+ " PLW" ,
90
86
# unused noqa
91
87
" RUF100" ,
88
+ # flake8-simplify
89
+ " SIM" ,
90
+ # pyupgrade
91
+ " UP" ,
92
+ " W" ,
93
+ # flake8-2020
94
+ " YTT" ,
92
95
]
93
- extend-ignore = [
96
+ lint. extend-ignore = [
94
97
# Allow zip() without strict=
95
98
" B905" ,
96
99
# No line length errors
97
100
" E501" ,
98
101
]
99
-
100
- [tool .ruff .lint .isort ]
101
- combine-as-imports = true
102
- lines-after-imports = 2
103
-
104
- [tool .ruff .lint .mccabe ]
105
- max-complexity = 15
106
-
107
- [tool .ruff .lint .per-file-ignores ]
108
- "*/migrat*/*" = [
102
+ lint.per-file-ignores."*/migrat*/*" = [
109
103
# Allow using PascalCase model names in migrations
110
104
" N806" ,
111
105
# Ignore the fact that migration files are invalid module names
112
106
" N999" ,
113
107
]
108
+ lint.isort.combine-as-imports = true
109
+ lint.isort.lines-after-imports = 2
110
+ lint.mccabe.max-complexity = 15
0 commit comments