-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruff.toml
105 lines (99 loc) · 1.63 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
102
103
104
105
lint.ignore = [
# ruff/black auto-formats lines, trust it
"E501",
# As advised by ruff format
"COM812",
# As advised by ruff format
"ISC001",
]
lint.select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pep8-naming
#"N", #TODO: enable one day, but clean-up required...
# flake8-2020
"YTT",
# flake8-bandit - security rules
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-future-annotations
"FA",
# flake8-implicit-str-concat
"ISC",
# flake8-import-conventions
# "ICN", #TODO
# flake8-logging-format
# "G", #TODO
# flake8-pie
"PIE",
# flake8-pyi
"PYI",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-raise
"RSE",
# flake8-return
# "RET", #TODO
# flake8-self
"SLF",
# flake8-slots
"SLOT",
# flake8-simplify
"SIM",
# flake8-tidy-imports
"TID",
# flake8-type-checking
"TCH",
# flake8-gettext
"INT",
# flake8-unused-arguments
# "ARG", #TODO
# flake8-use-pathlib
# "PTH", #TODO? (replace everything with pathlib)
# pandas-vet
"PD",
# pygrep-hooks
"PGH",
# Pylint
# "PL", # TODO?
# tryceratops
# "TRY", #TODO!
# flynt
"FLY",
# NumPy-specific rules
"NPY",
# Perflint
"PERF",
# Ruff
"RUF",
]
target-version = "py39"
# Ignore files not refactored yet
exclude = ["NASASRTMUtil.py"]
# Same as black
line-length = 88
indent-width = 4
[lint.isort]
known-first-party = ["pyhgtmap"]
[lint.per-file-ignores]
# Allow 'assert' in unit tests...
"tests/*" = ["S101"]