-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (41 loc) · 1.09 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
[project]
name = "pelican-frontend"
version = "0.0.0"
[tool.ruff]
line-length = 119
target-version = "py311"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", "C901", "COM812", "D203", "D212", "D415", "EM", "ISC001", "PERF203", "PLR091", "Q000",
"D1",
"DJ008",
"PTH",
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["copyright", "format", "type"]
[tool.ruff.lint.flake8-self]
extend-ignore-names = ["_meta", "_Element"]
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.per-file-ignores]
"docs/*" = ["D100", "INP001"]
"{*/signals,*/views,*/migrations/*}.py" = ["ARG001"]
"{*/admin,*/routers,*/views,*/commands/*}.py" = ["ARG002"]
"{*/admin,*/forms,*/models,*/routers,*/migrations/*,tests/*}.py" = ["RUF012"]
"*/{serializers,views}.py" = ["RUF012"]
"*/migrations/*" = ["E501"]
"tests/*" = [
"D", "FBT003", "INP001", "PLR2004", "PT", "S", "TRY003",
]
"exporter/*" = [
"D205",
"ARG001", # tag
"ARG002", # data
"RUF012",
"PLR2004",
"PLW2901",
"TRY003", # errors
]
[tool.coverage.run]
omit = ["*/translations.py"]