-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
54 lines (48 loc) · 1.54 KB
/
pyproject.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
[tool.mypy]
ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.ruff]
line-length = 120
target-version = 'py311'
[tool.ruff.format]
quote-style = 'single' # Prefer single quotes, except for triple quotes strings
[tool.ruff.lint]
select = ['ALL'] # https://docs.astral.sh/ruff/rules/
ignore = [
'ANN101', # No need to add type to self
'CPY001', # Do not require copyright notices
'D', # Ignore docstring checks
'DTZ007', # Ignore missing timezone
'E501', # Some paths are very long
'EM', # Allow messages directly in exceptions
'FBT001', # Allow positional for boolean arguments
'FBT002', # Allow default value for boolean arguments
'N999', # Allow invalid module names for scripts
'PD', # Not using pandas
'PLR0913', # Allow functions with many arguments
'PT', # Not using pytest
'RET504', # Allow variable assignment before return
'S311', # Allow pseudo-random generators for non-cryptographic purpose
'SIM108', # Allow if-else block instead of ternary
'SLF001', # Allo private member access
'T201', # Allow using print
'TRY003', # Specific messages for common exception classes
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.isort]
lines-between-types = 1
section-order = [
'future',
'standard-library',
'third-party',
'time_lapse',
'first-party',
'local-folder',
]
[tool.ruff.lint.isort.sections]
time_lapse = ['time_lapse']