-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (95 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (95 loc) · 2.14 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[project]
name = "python-toolbox"
version = "0.1.0"
requires-python = ">=3.13"
dependencies = [
"pydantic[email]>=2.11.4",
]
[dependency-groups]
dev = [
"rust-just>=1.42.4",
]
lint = [
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"types-jsonschema>=4.23.0.20241208",
]
test = [
"jsonschema>=4.23.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.16.0",
]
[tool.uv]
default-groups = "all"
[tool.ruff]
cache-dir = ".cache/ruff"
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"PGH", # pygrep-hooks
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"T20", # flake8-print
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"FAST", # FastAPI
"PTH", # flake8-use-pathlib
"FURB", # refurb
"RUF", # Ruff-specific rules
]
ignore = [
# Suppressed by ruff formatter.
"W191", # tab-indentation
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # assert
"S105", # hardcoded-password-string
]
[tool.mypy]
strict = true
cache_dir = ".cache/mypy"
mypy_path = "utilities"
[tool.pytest.ini_options]
pythonpath = "utilities"
cache_dir = ".cache/pytest"
addopts = [
"--doctest-modules",
"--import-mode", "importlib",
"--cov-config", "pyproject.toml",
"--cov-report", "term",
"--cov-report", "html",
"--cov-fail-under", "100",
]
markers = [
"only: shorthand mark used to select a small subset of test cases for debugging",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
data_file = ".cache/coverage/data.db"
disable_warnings = ["no-data-collected"]
omit = [
"utilities/graceful.py",
]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@overload",
]
[tool.coverage.html]
directory = "var/cov-report"