Skip to content

Commit 368ffa6

Browse files
authored
Merge pull request #10 from nifadyev/feature/#5/remove-irrelevant-flake8-rules
Remove irrelevant Flake8 config options
2 parents 2b010df + 329428e commit 368ffa6

File tree

2 files changed

+0
-108
lines changed

2 files changed

+0
-108
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

{{cookiecutter.project_name}}/pyproject.toml

-54
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ flake8-bandit = "^4.1.1"
2828
flake8-broken-line = "^1.0.0"
2929
flake8-comprehensions = "^3.14.0"
3030
flake8-debugger = "^4.1.2"
31-
flake8-docstrings = "^1.7.0"
3231
flake8-eradicate = "^1.5.0"
3332
flake8-isort = "^6.1.1"
3433
flake8-quotes = "^3.4.0"
35-
flake8-string-format = "^0.3.0"
3634
flake8-pyproject = "^1.2.3"
3735
flake8-bugbear = "^24.2.6"
3836
flake8-rst-docstrings = "^0.3.0"
@@ -107,7 +105,6 @@ django_settings_module = "app.settings.base"
107105

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

0 commit comments

Comments
 (0)