@@ -39,7 +39,7 @@ pre-commit = "^3.7.0"
39
39
flake8-pyproject = " ^1.2.3"
40
40
black = " ^24.4.2"
41
41
nox = " ^2024.4.15"
42
- docformatter = {extras = [" tomli" ], version = " ^1.7.5" }
42
+ docformatter = { extras = [" tomli" ], version = " ^1.7.5" }
43
43
autoflake = " ^2.3.1"
44
44
autopep8 = " ^2.3.2"
45
45
ruff = " ^0.11.11"
@@ -101,7 +101,15 @@ replace = '''
101
101
'''
102
102
103
103
[tool .pylint ]
104
- disable = " C0114,C0115,C0116,R0903,R1710,W1203"
104
+ disable = [
105
+ " C0114" ,
106
+ " C0115" ,
107
+ " C0116" ,
108
+ " R0903" ,
109
+ " R1710" ,
110
+ " W1203" ,
111
+ " W0511" , # TO DO warnings
112
+ ]
105
113
max-line-length = 120
106
114
max-locals = 20
107
115
max-args = 16
@@ -160,49 +168,49 @@ line-length = 120
160
168
target-version = " py311"
161
169
162
170
exclude = [
163
- " .git" ,
164
- " migrations" ,
165
- " __pycache__" ,
171
+ " .git" ,
172
+ " migrations" ,
173
+ " __pycache__" ,
166
174
]
167
175
168
176
[tool .ruff .lint ]
169
177
select = [
170
- " A" , # Flake8 Built ins
171
- " E" , # Error (Flake8)
172
- " F" , # Pyflakes (Flake8)
173
- " W" , # Warning (Flake8)
174
- " I" , # isort (import sorting)
175
- " N" , # Naming conventions (Pylint, etc.)
178
+ " A" , # Flake8 Built ins
179
+ " E" , # Error (Flake8)
180
+ " F" , # Pyflakes (Flake8)
181
+ " W" , # Warning (Flake8)
182
+ " I" , # isort (import sorting)
183
+ " N" , # Naming conventions (Pylint, etc.)
176
184
" C90" , # mccabe complexity (replaces flake8 --max-complexity and mccabe)
177
- " B" , # Bugbear (common linting issues)
178
- " UP" , # pyupgrade (suggests modern Python syntax)
185
+ " B" , # Bugbear (common linting issues)
186
+ " UP" , # pyupgrade (suggests modern Python syntax)
179
187
" PLR" , # Pylint refactor
180
188
" PLE" , # Pylint error (specific Pylint error rules)
181
189
" PLW" , # Pylint warning (specific Pylint warning rules)
182
190
" PLC" , # Pylint convention (specific Pylint convention rules)
183
- " R" , # Refactor (Pylint refactoring suggestions)
191
+ " R" , # Refactor (Pylint refactoring suggestions)
184
192
" TID" , # TO DO comments
185
- " FAST" ,# FastAPI
186
- " C4" , # List and dict comprehensions
187
- " DJ" , # Django
193
+ " FAST" , # FastAPI
194
+ " C4" , # List and dict comprehensions
195
+ " DJ" , # Django
188
196
" PIE" , # Returns and unecessary returns
189
- " Q" , # Double quotes
197
+ " Q" , # Double quotes
190
198
" RET" , # Fix return statements
191
199
" PTH" , # Enforce pathlib
192
200
" ARG" , # Unused argument
193
201
" FLY" , # Flynt
194
202
" NPY" , # Numpy specific
195
- " PD" , # Pandas specific
203
+ " PD" , # Pandas specific
196
204
" RUF" , # Ruff specific
197
205
]
198
206
199
207
ignore = [
200
- " E203" , # whitespace before ':', Black already handles this
201
- " E266" , # too many leading '#' for comments
202
- " E501" , # line too long (we enforce via line-length instead)
203
- " RET504" ,
204
- " RUF013" ,
205
- " PTH123"
208
+ " E203" , # whitespace before ':', Black already handles this
209
+ " E266" , # too many leading '#' for comments
210
+ " E501" , # line too long (we enforce via line-length instead)
211
+ " RET504" ,
212
+ " RUF013" ,
213
+ " PTH123"
206
214
]
207
215
208
216
[tool .ruff .lint .pydocstyle ]
0 commit comments