-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (71 loc) · 1.53 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
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "beancount-nblock"
dynamic = ["version"]
description = "A collection of beancount plugins"
readme = "README.md"
authors = [
{name = "Florian Preinstorfer", email = "[email protected]"},
]
requires-python = ">=3.11"
dependencies = [
"beancount>=2,<3",
]
[project.urls]
Repository = "https://github.com/nblock/beancount-nblock"
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-randomly",
]
# basedpyright
[tool.basedpyright]
include = ["src", "tests"]
ignore = ["tests"]
reportAny = false
reportUnusedCallResult = false
# coverage: paths
[tool.coverage.paths]
source = [
"src",
".tox/*/lib/python*/site-packages/beancount_nblock",
]
# coverage: run
[tool.coverage.run]
branch = true
source = [
"beancount_nblock",
"tests",
]
# coverage: report
[tool.coverage.report]
skip_covered = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"assert_never\\(",
"raise AssertionError",
"raise NotImplementedError",
"return NotImplemented",
"if __name__ == .__main__.:",
]
# pytest
[tool.pytest.ini_options]
testpaths = ["tests"]
# ruff: lint
[tool.ruff.lint]
extend-select = [
"I", # isort
"UP", # pyupgrade
]
# ruff: lint isort
[tool.ruff.lint.isort]
known-local-folder = ["tests"]
# setuptools_scm
[tool.setuptools_scm]