Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7d0b1c8

Browse files
committedAug 30, 2024
Remove irrelevant Flake8 config options
1 parent b57760b commit 7d0b1c8

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed
 

‎{{cookiecutter.project_name}}/pyproject.toml

-55
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ flake8-bandit = "^4.1.1"
2727
flake8-broken-line = "^1.0.0"
2828
flake8-comprehensions = "^3.14.0"
2929
flake8-debugger = "^4.1.2"
30-
flake8-docstrings = "^1.7.0"
3130
flake8-eradicate = "^1.5.0"
3231
flake8-isort = "^6.1.1"
3332
flake8-quotes = "^3.4.0"
34-
flake8-string-format = "^0.3.0"
3533
flake8-pyproject = "^1.2.3"
3634
flake8-bugbear = "^24.2.6"
37-
flake8-rst-docstrings = "^0.3.0"
3835
mypy = "^1.9.0"
3936
pylint = "^3.1.0"
4037
safety = "^3.1.0"
@@ -94,7 +91,6 @@ django_settings_module = "app.settings.base"
9491

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

0 commit comments

Comments
 (0)
Please sign in to comment.