-
-
Notifications
You must be signed in to change notification settings - Fork 636
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (59 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
66 lines (59 loc) · 2.33 KB
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
[tool.ruff]
line-length = 110
target-version = "py311"
exclude = [
"venv",
"frontend",
"node_modules",
"migrations",
"docs",
"virtualenv",
"configuration/ldap_config.py",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"DJ", # flake8-django
]
ignore = [
"E231", # missing whitespace after ','
"E501", # line too long - handled by formatter, remaining are strings/comments
"W605", # invalid escape sequence
"UP006", # Use `list` instead of `List` for type annotation
"UP035", # deprecated imports from typing module
"UP007", # Use `X | Y` for type annotations instead of Optional/Union (defer to follow-up)
"UP010", # Unnecessary `from __future__ import` (defer to follow-up)
"UP015", # Unnecessary mode argument in open() (defer to follow-up)
"UP017", # Use `datetime.UTC` alias (defer to follow-up)
"UP032", # Use f-string instead of format() (defer to follow-up)
"UP034", # Extraneous parentheses (defer to follow-up)
"UP037", # Remove quotes from type annotation (defer to follow-up)
"UP041", # Replace aliased errors with TimeoutError (defer to follow-up)
"UP045", # Use `X | None` instead of Optional[X] (defer to follow-up)
"C403", # Unnecessary list comprehension - set (defer to follow-up)
"C408", # Unnecessary dict() call (defer to follow-up)
"C417", # Unnecessary map() usage (defer to follow-up)
"C420", # Unnecessary dict comprehension (defer to follow-up)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__ files
"api_app/decorators.py" = ["N801"] # classproperty names are intentionally lowercase
"api_app/models.py" = ["DJ012", "DJ001", "DJ008"]
"api_app/analyzables_manager/models.py" = ["DJ001"]
"api_app/analyzers_manager/models.py" = ["DJ008"]
"api_app/visualizers_manager/models.py" = ["DJ008", "DJ001"]
"authentication/models.py" = ["DJ008"]
"api_app/data_model_manager/models.py" = ["DJ008", "DJ012"]
"api_app/user_events_manager/**" = ["DJ012", "DJ001", "DJ008"]
[tool.ruff.lint.isort]
known-first-party = ["certego_saas"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.codereviewdoctor]
disable = ["missing-reverse-migration"]