Skip to content

Commit 35dc644

Browse files
committed
Disable framework-specific ruff rulesets for Airflow, Django, FastAPI, Numpy, and Pandas
cmd2 doesn't use any of these frameworks, so no point leaving them enabled.
1 parent bbba040 commit 35dc644

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ output-format = "full"
156156
# McCabe complexity (`C901`) by default.
157157
select = [
158158
# https://docs.astral.sh/ruff/rules
159-
"A", # flake8-builtins (variables or arguments shadowing built-ins)
160-
"AIR", # Airflow specific warnings
159+
"A", # flake8-builtins (variables or arguments shadowing built-ins)
160+
# "AIR", # Airflow specific warnings
161161
# "ANN", # flake8-annotations (missing type annotations for arguments or return types)
162162
# "ARG", # flake8-unused-arguments (functions or methods with arguments that are never used)
163163
"ASYNC", # flake8-async (async await bugs)
@@ -169,15 +169,15 @@ select = [
169169
# "CPY", # flake8-copyright (warn about missing copyright notice at top of file - currently in preview)
170170
# "D", # pydocstyle (warn about things like missing docstrings)
171171
# "DOC", # pydoclint (docstring warnings - currently in preview)
172-
"DJ", # flake8-django (Django-specific warnings)
172+
# "DJ", # flake8-django (Django-specific warnings)
173173
"DTZ", # flake8-datetimez (warn about datetime calls where no timezone is specified)
174174
"E", # pycodestyle errors (warn about major stylistic issues like mixing spaces and tabs)
175175
# "EM", # flake8-errmsg (warn about exceptions that use string literals that aren't assigned to a variable first)
176176
# "ERA", # eradicate (warn about commented-out code)
177-
"EXE", # flake8-executable (warn about files with a shebang present that aren't executable or vice versa)
178-
"F", # Pyflakes (a bunch of common warnings for things like unused imports, imports shadowed by variables, etc)
179-
"FA", # flake8-future-annotations (warn if certain from __future__ imports are used but missing)
180-
"FAST", # FastAPI specific warnings
177+
"EXE", # flake8-executable (warn about files with a shebang present that aren't executable or vice versa)
178+
"F", # Pyflakes (a bunch of common warnings for things like unused imports, imports shadowed by variables, etc)
179+
"FA", # flake8-future-annotations (warn if certain from __future__ imports are used but missing)
180+
# "FAST", # FastAPI specific warnings
181181
# "FBT", # flake8-boolean-trap (force all boolean arguments passed to functions to be keyword arguments and not positional)
182182
"FIX", # flake8-fixme (warn about lines containing FIXME, TODO, XXX, or HACK)
183183
"FLY", # flynt (automatically convert from old school string .format to f-strings)
@@ -190,8 +190,8 @@ select = [
190190
"ISC", # flake8-implicit-str-concat (warnings related to implicit vs explicit string concatenation)
191191
"LOG", # flake8-logging (warn about potential logger issues, but very pedantic)
192192
# "N", # pep8-naming (force idiomatic naming for classes, functions/methods, and variables/arguments)
193-
"NPY", # NumPy specific rules
194-
"PD", # pandas-vet (Pandas specific rules)
193+
# "NPY", # NumPy specific rules
194+
# "PD", # pandas-vet (Pandas specific rules)
195195
"PERF", # Perflint (warn about performance issues)
196196
"PGH", # pygrep-hooks (force specific rule codes when ignoring type or linter issues on a line)
197197
"PIE", # flake8-pie (eliminate unnecessary use of pass, range starting at 0, etc.)

0 commit comments

Comments
 (0)