-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (89 loc) · 2.06 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (89 loc) · 2.06 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
# SPDX-License-Identifier: BSD-3-Clause
[build-system]
requires = [ "setuptools>=41", "wheel", "setuptools-git-versioning>=3.0,<4", ]
build-backend = "setuptools.build_meta"
[tool.setuptools-git-versioning]
enabled = true
[project]
name = "python-dspam"
requires-python = ">=3.14"
dynamic = ["version"]
readme = "README.md"
authors = [
{ name = "Tom Hendrikx", email = "tom@whyscream.net" }
]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
dependencies = [
"anyio>=4.13.0",
"cyclopts>=4.11.0",
"homoglyphs-fork>=2.1.2",
"orjson>=3.11.9",
"pydantic>=2.13.4",
"pydantic-settings>=2.14.1",
"rich>=15.0.0",
"rodi>=2.1.0",
]
[dependency-groups]
dev = [
{ include-group = "test" },
"ipdb>=0.13.13",
"pre-commit>=4.6.0",
]
test = [
"mypy>=2.1.0",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
]
[project.entry-points.console_scripts]
dspam = "dspam.cli:main"
[tool.uv.workspace]
members = ["plugins/*"]
[tool.uv.sources]
# TODO: remove after release of: https://github.com/pydantic/pydantic-settings/pull/882 (and PRs #886 and #887)
pydantic-settings = { git = "https://github.com/pydantic/pydantic-settings.git", rev = "9941cae4c633089b7bdb682515c423d0aa80b46c" }
[tool.ruff]
line-length = 120
target-version = "py314"
[tool.ruff.lint]
select = [
"C", # mccabe
"B", # bugbear
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"SIM", # flake8-simplify
"RUF100", # ruff unued noqa ignores
]
[tool.ruff.lint.per-file-ignores]
# S101 Use of `assert` detected
# S106 Possible hardcoded password assigned to argument
"**/tests/*" = ["S101", "S106"]
[tool.mypy]
python_version = 3.14
strict = true
warn_unused_configs = true
pretty = true
exclude = [
'(^|/)tests(/|$)',
]
[tool.pytest]
minversion = "9.0"
anyio_mode = "auto"
addopts = [
"--cov-report=term-missing",
"--pdbcls=IPython.terminal.debugger:TerminalPdb",
]
[tool.coverage.run]
branch = true
source = [
"src/",
"plugins/",
]
omit = [
"*/tests/*",
]
relative_files = true
[tool.coverage.report]
skip_empty = true