-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
35 lines (28 loc) · 1.08 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
target-version = "py311"
line-length = 90
# enable all diagnostics
select = ["ALL"]
#disable selected
ignore = [
# Rule: Use of 'assert' detected.
# Reason: Asserts are useful for pre-condition, invariant checks, as well
# as for narrowing types for type-checking.
"S101",
# Rule: print found, use logging
# Reason: For now we use prints, until we re-factor to use logging module
# TODO: refactor, then remove
"T201",
# Rule: Missing author in todo
# Reason: We don't track responsibility in code, as we don't have many authors.
"TD002",
# Rule: Missing issue link on the line following this todo
# Reason: We don't track todos in issues.
"TD003",
# Rule: Line contains todo, sondier resolving the issue.
# Reason: We have other tools that track and highlight todo.
# Makes it impossible to get to zero warning level, otherwise.
"FIX002",
# Rule: File is part of an implicit namespace package. Add an `__init__.py`.
# Reason: Out scripts don't need a package. Probably a false positive.
"INP001",
]