-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ruff.toml
101 lines (88 loc) · 2.26 KB
/
.ruff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
line-length = 150
[lint]
select = [
"F", # pyflakes
"E", # pycodestyle (Errors)
"W", # pycodestyle (Warnings)
"C90", # mccabe (complexity)
"I", # isort
"N", # pep8 naming
"D", # pydocstyle
"UP", # pyupgrade
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"EXE", # flake8-executable
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slot
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
"TD", # flake8-todos
"FIX", # flake8-fixme
"ERA", # eradicate
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # pylint
"TRY", # tryceratops
"FLY", # flyint
"NPY", # NumPy-specific rules
"AIR", # Airflow
"PERF", # Perflint
"RUF", # Ruff-specific rules
]
ignore = [
# pydocstyle
"D205", # blank-line-after-summary
"D401", # non-imperative-mood
# flake8-annotations
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
# flake8-pytest-style
"PT011", # pytest-raises-too-broad
# flake8-implicit-str-concat
"ISC001", # single-line-implicit-string-concatenation
# flake8-commas
"COM812", # missing-trailing-comma
# pylint
"PLR2004", # magic-value-comparison
# tryceratops
"TRY003", # raise-vanilla-args
# Ruff-specific rules
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
]
[format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[lint.pylint]
max-args = 9
[lint.pydocstyle]
convention = "numpy"
[lint.isort]
known-third-party = [
"matplotlib",
"munch",
"numpy",
"pandas",
"pygal",
"scipy",
"shapely",
"pytz",
"typing_extensions",
]