-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (67 loc) · 1.92 KB
/
pyproject.toml
File metadata and controls
76 lines (67 loc) · 1.92 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
[project]
name = "logger"
version = "0.3.2"
description = "Python logger"
authors = [
{ name = "Inokufu", email = "[email protected]" }
]
readme = "docs/README.md"
requires-python = ">= 3.13"
dependencies = [
"loguru>=0.7.3,<0.7.4",
]
[tool.uv]
add-bounds = "minor"
package = true
[dependency-groups]
dev = [
"diff-cover>=10.2.0,<10.3.0",
"griffe-inherited-docstrings>=1.1.3,<1.2.0",
"mkdocs>=1.6.1,<1.7.0",
"mkdocs-material>=9.7.6,<9.8.0",
"mkdocstrings-python>=2.0.3,<2.1.0",
"pre-commit>=4.5.1,<4.6.0",
"pytest>=9.0.2,<9.1.0",
"pytest-cov>=7.1.0,<7.2.0",
"pytest-mock>=3.15.1,<3.16.0",
"ruff>=0.15.8,<0.15.9",
"ty>=0.0.26,<0.0.27",
]
[tool.ruff]
output-format = "concise"
target-version = "py313"
line-length = 88
indent-width = 4
lint.pydocstyle.convention = "google"
lint.flake8-bandit.check-typed-exception = true
lint.flake8-type-checking.strict = true
lint.select = ["ALL"]
lint.ignore = [
"PLE1205", # logging-too-many-args
"D100", # pydocstyle
"EM", # flake8-errmsg
"INP001", # implicit-namespace-package
"TRY003", # raise-vanilla-args
"TRY401", # verbose-log-message
"TC", # type-checking blocks
]
lint.extend-unfixable = [
"TC002", # typing-only-third-party-import
"TRY400", # error-instead-of-exception
"SIM105", # suppressible-exception
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = [
"S101", # Asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
[tool.pytest.ini_options]
pythonpath = [".", "src"]
addopts = ["--cov=src", "--cov-report=term", "--cov-report=xml"]
[tool.coverage.report]
exclude_also = [
"@(abc\\.)?abstractmethod",
]