Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (44 loc) · 1.63 KB
/
Copy pathpyproject.toml
File metadata and controls
55 lines (44 loc) · 1.63 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
# --------------------------------------------------------------------------
# ruff
# --------------------------------------------------------------------------
[tool.ruff]
# Check with flatpak run --command=python3 org.gnome.Sdk//51 --version
target-version = "py314"
line-length = 88
builtins = ["_"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "SIM", "C4", "RUF"]
dummy-variable-rgx = "^_.*$"
[tool.ruff.lint.per-file-ignores]
# gi.require_version() has to run before any gi.repository import.
"scriptorium/__init__.py" = ["E402"]
[tool.ruff.lint.isort]
known-first-party = ["scriptorium"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
# --------------------------------------------------------------------------
# mypy — staged. Uncomment one stage, clean it, then move to the next.
# --------------------------------------------------------------------------
[tool.mypy]
python_version = "3.14"
files = ["scriptorium"]
ignore_missing_imports = true
check_untyped_defs = true
strict_equality = true
[[tool.mypy.overrides]]
module = "scriptorium.models.*"
disallow_untyped_defs = true
# --------------------------------------------------------------------------
# pytest
# --------------------------------------------------------------------------
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
addopts = "-q"
# --------------------------------------------------------------------------
# codespell
# --------------------------------------------------------------------------
[tool.codespell]
skip = ".git,po,*.po,*.pot,*.svg,*.png,builddir,_build,.flatpak-builder"