@@ -8,9 +8,9 @@ requires = [
8
8
name = " form-designer"
9
9
description = " Form Designer"
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.9"
16
16
classifiers = [
@@ -36,80 +36,78 @@ dependencies = [
36
36
" django-admin-ordering" ,
37
37
" xlsxdocument" ,
38
38
]
39
- [project .optional-dependencies ]
40
- tests = [
39
+ optional-dependencies.tests = [
41
40
" coverage" ,
42
41
" django-mptt" ,
43
42
" django-recaptcha>=4" ,
44
- " FeinCMS " ,
43
+ " feincms " ,
45
44
]
46
- [project .urls ]
47
- Homepage = " https://github.com/feincms/form-designer/"
45
+ urls.Homepage = " https://github.com/feincms/form-designer/"
48
46
49
47
[tool .hatch .version ]
50
48
path = " form_designer/__init__.py"
51
49
52
50
[tool .hatch .build ]
53
- include = [" /form_designer" ]
51
+ include = [ " /form_designer" ]
54
52
55
53
[tool .ruff ]
54
+ target-version = " py39"
55
+
56
+ fix = true
57
+ show-fixes = true
56
58
lint.extend-select = [
57
- # pyflakes, pycodestyle
58
- " F" , " E" , " W" ,
59
- # mmcabe
60
- " C90" ,
61
- # isort
62
- " I" ,
63
- # pep8-naming
64
- " N" ,
65
- # pyupgrade
66
- " UP" ,
67
- # flake8-2020
68
- " YTT" ,
69
- # flake8-boolean-trap
70
- " FBT" ,
71
59
# flake8-bugbear
72
60
" B" ,
73
61
# flake8-comprehensions
74
62
" C4" ,
63
+ # mmcabe
64
+ " C90" ,
75
65
# flake8-django
76
66
" DJ" ,
77
- # flake8-implicit-string-concatenation
78
- " ISC" ,
79
- # flake8-pie
80
- " PIE" ,
81
- # flake8-simplify
82
- " SIM" ,
67
+ " E" ,
68
+ # pyflakes, pycodestyle
69
+ " F" ,
70
+ # flake8-boolean-trap
71
+ " FBT" ,
72
+ # isort
73
+ " I" ,
83
74
# flake8-gettext
84
75
" INT" ,
76
+ # flake8-implicit-string-concatenation
77
+ " ISC" ,
78
+ # pep8-naming
79
+ " N" ,
85
80
# pygrep-hooks
86
81
" PGH" ,
82
+ # flake8-pie
83
+ " PIE" ,
87
84
# pylint
88
- " PLC" , " PLE" , " PLW" ,
85
+ " PLC" ,
86
+ " PLE" ,
87
+ " PLW" ,
89
88
# unused noqa
90
89
" RUF100" ,
90
+ # flake8-simplify
91
+ " SIM" ,
92
+ # pyupgrade
93
+ " UP" ,
94
+ " W" ,
95
+ # flake8-2020
96
+ " YTT" ,
91
97
]
92
98
lint.extend-ignore = [
93
99
# Allow zip() without strict=
94
100
" B905" ,
95
101
# No line length errors
96
102
" E501" ,
103
+ " UP031" ,
97
104
]
98
- fix = true
99
- show-fixes = true
100
- target-version = " py39"
101
-
102
- [tool .ruff .lint .isort ]
103
- combine-as-imports = true
104
- lines-after-imports = 2
105
-
106
- [tool .ruff .lint .mccabe ]
107
- max-complexity = 15
108
-
109
- [tool .ruff .lint .per-file-ignores ]
110
- "*/migrat*/*" = [
105
+ lint.per-file-ignores."*/migrat*/*" = [
111
106
# Allow using PascalCase model names in migrations
112
107
" N806" ,
113
108
# Ignore the fact that migration files are invalid module names
114
109
" N999" ,
115
110
]
111
+ lint.isort.combine-as-imports = true
112
+ lint.isort.lines-after-imports = 2
113
+ lint.mccabe.max-complexity = 15
0 commit comments