1
- [tool .isort ]
2
- profile = " black"
3
-
4
1
[tool .mypy ]
5
2
ignore_missing_imports = true
6
3
warn_unused_configs = true
@@ -19,6 +16,81 @@ module = "tests.data.*"
19
16
disallow_untyped_defs = false
20
17
check_untyped_defs = false
21
18
19
+ [tool .ruff ]
20
+ select = [
21
+ " A" , # flake8-builtins
22
+ " AIR" , # Airflow
23
+ " ASYNC" , # flake8-async
24
+ " B" , # flake8-bugbear
25
+ " BLE" , # flake8-blind-except
26
+ " C4" , # flake8-comprehensions
27
+ " C90" , # McCabe cyclomatic complexity
28
+ " CPY" , # flake8-copyright
29
+ " DJ" , # flake8-django
30
+ " DTZ" , # flake8-datetimez
31
+ " E" , # pycodestyle
32
+ " EM" , # flake8-errmsg
33
+ " EXE" , # flake8-executable
34
+ " F" , # Pyflakes
35
+ " FLY" , # flynt
36
+ " G" , # flake8-logging-format
37
+ " I" , # isort
38
+ " ICN" , # flake8-import-conventions
39
+ " INP" , # flake8-no-pep420
40
+ " INT" , # flake8-gettext
41
+ " ISC" , # flake8-implicit-str-concat
42
+ " N" , # pep8-naming
43
+ " NPY" , # NumPy-specific rules
44
+ " PD" , # pandas-vet
45
+ " PERF" , # Perflint
46
+ " PGH" , # pygrep-hooks
47
+ " PIE" , # flake8-pie
48
+ " PL" , # Pylint
49
+ " PT" , # flake8-pytest-style
50
+ " PTH" , # flake8-use-pathlib
51
+ " PYI" , # flake8-pyi
52
+ " RSE" , # flake8-raise
53
+ " RUF" , # Ruff-specific rules
54
+ " S" , # flake8-bandit
55
+ " SIM" , # flake8-simplify
56
+ " SLF" , # flake8-self
57
+ " SLOT" , # flake8-slots
58
+ " T10" , # flake8-debugger
59
+ " TCH" , # flake8-type-checking
60
+ " TID" , # flake8-tidy-imports
61
+ " UP" , # pyupgrade
62
+ " W" , # pycodestyle
63
+ " YTT" , # flake8-2020
64
+ # "ANN", # flake8-annotations
65
+ # "ARG", # flake8-unused-arguments
66
+ # "COM", # flake8-commas
67
+ # "D", # pydocstyle
68
+ # "ERA", # eradicate
69
+ # "FA", # flake8-future-annotations
70
+ # "FBT", # flake8-boolean-trap
71
+ # "FIX", # flake8-fixme
72
+ # "Q", # flake8-quotes
73
+ # "RET", # flake8-return
74
+ # "T20", # flake8-print
75
+ # "TD", # flake8-todos
76
+ # "TRY", s# tryceratops
77
+ ]
78
+ ignore = [" N802" , " PGH003" , " RUF012" , " SLF001" ]
79
+ line-length = 88
80
+ target-version = " py38"
81
+
82
+ [tool .ruff .mccabe ]
83
+ max-complexity = 13
84
+
85
+ [tool .ruff .per-file-ignores ]
86
+ "tests/*" = [" PT006" , " PT007" , " S101" ]
87
+ "tests/test_commands.py" = [" B008" ]
88
+ "tests/test_pull_requests.py" = [" B008" ]
89
+
90
+ [tool .ruff .pylint ]
91
+ allow-magic-value-types = [" bytes" , " int" , " str" ]
92
+ max-args = 6 # Recommended: 5
93
+
22
94
[tool .pytest .ini_options ]
23
95
testpaths = " tests"
24
96
addopts = """ \
0 commit comments