-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpyproject.toml
More file actions
40 lines (36 loc) · 976 Bytes
/
pyproject.toml
File metadata and controls
40 lines (36 loc) · 976 Bytes
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
[tool.mypy]
python_version = "3.10"
packages = ["ignis"]
exclude = ["venv"]
disable_error_code = [
"no-redef", # allow variable redefinition (needed for GObject.Property decorator)
"method-assign", # also needed for GObject.Property
"import-not-found",
"import-untyped",
]
mypy_path = ["stubs"]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["gi.repository.*"]
disable_error_code = ["assignment"]
[tool.ruff]
include = ["ignis/**/*.py"]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"I001", # import block is un-sorted or un-formatted
]
fixable = ["ALL"]
unfixable = []