@@ -77,19 +77,81 @@ include = ["scheduler"]
7777[tool .ruff ]
7878line-length = 120
7979exclude = [
80+ ' __pycache__' ,
81+ ' .github' ,
82+ ' .venv' ,
8083 ' scheduler/migrations' ,
8184 ' testproject' ,
82- ' .venv' ,
83- ' .github' ,
84- ' __pycache__' ,
8585]
8686
87- [tool .ruff .format ]
88- quote-style = " double"
89- indent-style = " space"
90- skip-magic-trailing-comma = false
91- line-ending = " auto"
92-
87+ [tool .ruff .lint ]
88+ select = [
89+ " A" , # flake8-builtins
90+ " AIR" , # Airflow
91+ " ASYNC" , # flake8-async
92+ " C4" , # flake8-comprehensions
93+ " C90" , # McCabe cyclomatic complexity
94+ " DJ" , # flake8-django
95+ " E" , # pycodestyle
96+ " EXE" , # flake8-executable
97+ " F" , # Pyflakes
98+ " FA" , # flake8-future-annotations
99+ " FAST" , # FastAPI
100+ " FIX" , # flake8-fixme
101+ " FLY" , # flynt
102+ " FURB" , # refurb
103+ " ICN" , # flake8-import-conventions
104+ " INP" , # flake8-no-pep420
105+ " INT" , # flake8-gettext
106+ " ISC" , # flake8-implicit-str-concat
107+ " LOG" , # flake8-logging
108+ " NPY" , # NumPy-specific rules
109+ " PD" , # pandas-vet
110+ " PERF" , # Perflint
111+ " PIE" , # flake8-pie
112+ " RSE" , # flake8-raise
113+ " SLOT" , # flake8-slots
114+ " T10" , # flake8-debugger
115+ " TC" , # flake8-type-checking
116+ " TD" , # flake8-todos
117+ " W" , # pycodestyle
118+ " YTT" , # flake8-2020
119+ # "ANN", # flake8-annotations
120+ # "ARG", # flake8-unused-arguments
121+ # "B", # flake8-bugbear
122+ # "BLE", # flake8-blind-except
123+ # "COM", # flake8-commas
124+ # "CPY", # flake8-copyright
125+ # "D", # pydocstyle
126+ # "DOC", # pydoclint
127+ # "DTZ", # flake8-datetimez
128+ # "EM", # flake8-errmsg
129+ # "ERA", # eradicate
130+ # "FBT", # flake8-boolean-trap
131+ # "G", # flake8-logging-format
132+ # "I", # isort
133+ # "N", # pep8-naming
134+ # "PGH", # pygrep-hooks
135+ # "PL", # Pylint
136+ # "PT", # flake8-pytest-style
137+ # "PTH", # flake8-use-pathlib
138+ # "PYI", # flake8-pyi
139+ # "Q", # flake8-quotes
140+ # "RET", # flake8-return
141+ # "RUF", # Ruff-specific rules
142+ # "S", # flake8-bandit
143+ # "SIM", # flake8-simplify
144+ # "SLF", # flake8-self
145+ # "T20", # flake8-print
146+ # "TID", # flake8-tidy-imports
147+ # "TRY", # tryceratops
148+ # "UP", # pyupgrade
149+ ]
150+ extend-ignore = [" PIE790" ]
151+ mccabe.max-complexity = 13
152+ per-file-ignores."scheduler/models/args.py" = [" DJ012" , " INT001" ]
153+ per-file-ignores."scheduler/models/ephemeral_models.py" = [" DJ008" ]
154+ per-file-ignores."scheduler/models/task.py" = [" DJ001" , " DJ012" ]
93155
94156[tool .mypy ]
95157packages = [' scheduler' , ]
0 commit comments