Skip to content

Commit 329428e

Browse files
committed
Update flake8 config for uv pyproject.toml
1 parent a6d9ac6 commit 329428e

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

{{cookiecutter.project_name}}/pyproject-uv.toml

-54
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ dev-dependencies = [
3030
"flake8-broken-line==1.0.0",
3131
"flake8-comprehensions==3.14.0",
3232
"flake8-debugger==4.1.2",
33-
"flake8-docstrings==1.7.0",
3433
"flake8-eradicate==1.5.0",
3534
"flake8-isort==6.1.1",
3635
"flake8-quotes==3.4.0",
37-
"flake8-string-format==0.3.0",
3836
"flake8-pyproject==1.2.3",
3937
"flake8-bugbear==24.2.6",
4038
"flake8-rst-docstrings==0.3.0",
@@ -102,7 +100,6 @@ django_settings_module = "app.settings.base"
102100

103101
[tool.flake8]
104102
ignore = [
105-
"C812", # missing trailing comma
106103
"E701", # Multiple statements on one line (colon)
107104
"D100", # Missing docstring in public module
108105
"D101", # Missing docstring in public class
@@ -113,58 +110,9 @@ ignore = [
113110
"D106", # Missing docstring in public nested class
114111
"D107", # Missing docstring in __init__
115112
"D401", # First line should be in imperative mood
116-
"N818", # exception name should be named with an Error suffix
117113
"P103", # other string does contain unindexed parameters
118114
"W291", # trailing whitespace
119115
"W503", # line break before binary operator
120-
"DAR101", # Missing parameter(s) in Docstring
121-
"DAR101", # Missing parameter(s) in Docstring
122-
"DAR201", # Missing "Returns" in Docstring
123-
"DAR401", # Missing exception(s) in Raises section
124-
"WPS110", # Found wrong variable name
125-
"WPS111", # Found too short name
126-
"WPS112", # Found private name pattern
127-
"WPS115", # Found upper-case constant in a class
128-
"WPS120", # Found regular name with trailing underscore
129-
"WPS121", # Found usage of a variable marked as unused
130-
"WPS122", # Found all unused variables definition
131-
"WPS226", # Found string literal over-use
132-
"WPS305", # Found `f` string
133-
"WPS306", # Found class without a base class
134-
"WPS237", # Found a too complex `f` string
135-
"WPS323", # Found `%` string formatting
136-
"WPS326", # Found implicit string concatenation
137-
"WPS329", # Found useless `except` case
138-
"WPS331", # Found variables that are only used for `return`:
139-
"WPS337", # Found multiline conditions
140-
"WPS338", # Found incorrect order of methods in a class
141-
"WPS347", # Found vague import that may cause confusion
142-
"WPS348", # Found a line that starts with a dot
143-
"WPS360", # Found an unnecessary use of a raw string
144-
"WPS404", # Found complex default value
145-
"WPS407", # Found mutable module constant
146-
"WPS412", # Found `__init__.py` module with logic
147-
"WPS420", # Found wrong keyword
148-
"WPS421", # Found wrong function call
149-
"WPS428", # Found statement that has no effect (for `...`)
150-
"WPS432", # Found magic number
151-
"WPS433", # Found nested import
152-
"WPS437", # Found protected attribute usage
153-
"WPS440", # Found block variables overlap
154-
"WPS441", # Found control variable used after block
155-
"WPS453", # Found executable mismatch: shebang is present but the file is not executable
156-
"WPS458", # Found imports collision
157-
"WPS529", # Found implicit `.get()` dict usage
158-
"WPS531", # Found simplifiable returning `if` condition in a function
159-
"WPS602", # Found using `@staticmethod`
160-
"WPS604", # Found incorrect node inside `class` body
161-
"WPS608", # Found incorrect `super()` call: remove arguments
162-
"WPS615", # Found unpythonic getter or sette
163-
]
164-
per-file-ignores = [
165-
"**/settings/*.py:S101",
166-
"**/settings/*.py:WPS425",
167-
"**/tests/*.py:S101",
168116
]
169117
exclude = [
170118
".git",
@@ -176,12 +124,10 @@ exclude = [
176124
"**/settings/*",
177125
"snapshots",
178126
]
179-
max-arguments = 12
180127
max-imports = 20
181128
max-import-from-members = 10
182129
max-expressions = 12
183130
max-methods = 10
184-
max-local-variables = 16
185131
max-module-members = 20
186132
max-try-body-length = 10
187133
max-cognitive-average = 10

0 commit comments

Comments
 (0)