-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (89 loc) · 2.17 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
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
[project]
name = "unclogger"
version = "0.1.2"
description = "Custom wrapper for enhanced structured logging."
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Berislav Lopac", email = "[email protected]"},
]
requires-python = ">=3.8,<4.0"
dependencies = [
"structlog>=24.1",
]
[project.urls]
Homepage = "https://unclogger.readthedocs.io"
Documentation = "https://unclogger.readthedocs.io"
Repository = "https://github.com/berislavlopac/unclogger"
[project.optional-dependencies]
docs = [
"mkdocs>=1.3.0",
"mkapi>=1.0.14",
"mkdocs-material>=9.5.4",
"pymdown-extensions>=10.7",
"jinja2>=3.1.3",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["unclogger/"]
[tool.pdm.dev-dependencies]
tests = [
"pytest>=7.1.2",
"pytest-cov>=3.0.0",
"pytest-spec>=3.2.0",
"mypy>=1.8.0",
]
checks = [
"ruff>=0.1",
"pydocstyle>=6.1.1",
"isort>=5.10.1",
]
dev = [
"toml>=0.10.2",
"tox>=4.4.6",
"tox-pdm>=0.6.1",
]
[tool.pdm.scripts]
tests.cmd = "pytest --spec --cov"
check-lint.shell = """
ruff check .
ruff format --check .
isort --check .
"""
check-typing.cmd = "mypy --install-types --non-interactive unclogger/"
check-docs.cmd = "pydocstyle unclogger/"
checks.composite = ["check-lint", "check-typing", "check-docs"]
new-commits.shell = "git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-decorate"
[tool.pytest.ini_options]
minversion = "6.0"
[tool.coverage.run]
source = [ "unclogger/", ]
omit = [ "*/tests/*", "src/tests/*", ]
[tool.coverage.report]
skip_covered = false
show_missing = true
fail_under = 90
exclude_lines = [ "pragma: no cover", "@abstract",]
[tool.ruff]
line-length = 96
target-version = "py311"
output-format = "grouped"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
skip-magic-trailing-comma = true
docstring-code-format = true
[tool.isort]
profile = "black"
line_length = 96
filter_files = true
force_alphabetical_sort_within_sections = true
[tool.mypy]
mypy_path = "unclogger/"
ignore_missing_imports = true
[tool.pydocstyle]
add-ignore = "D105, D107, D212, D401"
convention = "google"
match-dir = "(?!tests).*"