-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (138 loc) · 3.52 KB
/
pyproject.toml
File metadata and controls
154 lines (138 loc) · 3.52 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python-vaultwarden"
version = "1.1.1"
description = "Admin Vaultwarden and Simple Bitwarden Python Client"
authors = [
{ name = "Lyonel Martinez", email = "lyonel.martinez@numberly.com" },
{ name = "Mathis Ribet", email = "mathis.ribet@numberly.com" },
]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/numberly/python-vaultwarden"
documentation = "https://numberly.github.io/python-vaultwarden/"
packages = [
{ include = "vaultwarden", from = "src" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Environment :: Web Environment",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Typing :: Typed",
"Topic :: Internet :: WWW/HTTP"
]
requires-python = ">=3.10"
dependencies = [
"hkdf >=0.0.3",
"pycryptodome >=3.17.0",
"pydantic >=2.5.0",
"httpx >=0.24.1",
]
[dev-dependencies]
test = [
"hatch~=1.12",
"pytest~=8.3",
]
[tool.hatch.version]
path = "src/vaultwarden/__version__.py"
[tool.hatch.build]
packages = [
"src/vaultwarden",
]
include = [
"/tests",
]
[tool.hatch.build.targets.sdist]
include = ["/src/vaultwarden/**/*.py"]
[tool.hatch.build.targets.wheel]
packages = [
"src/vaultwarden",
]
[tool.hatch.envs.test]
dependencies = [
"coverage",
]
[tool.hatch.envs.test.scripts]
test = "coverage run --source=src/vaultwarden -m unittest discover -p 'test_*.py' tests --top-level-directory ."
_coverage = ["test", "coverage xml", "coverage report --show-missing"]
with-coverage = "test"
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
type = ["default"]
[tool.hatch.envs.test.overrides]
matrix.type.scripts = [
{ key = "with-coverage", value = "_coverage", if = ["default"] },
]
[tool.hatch.envs.types]
dependencies = [
"mypy",
"types-PyYAML",
"types-setuptools",
"typing-extensions",
]
[tool.hatch.envs.types.scripts]
check = "mypy src/vaultwarden"
[tool.hatch.envs.style]
detached = true
dependencies = [
"ruff",
]
[tool.hatch.envs.style.scripts]
lint = [
"ruff check --fix src/vaultwarden tests",
]
check = [
"ruff check src/vaultwarden tests",
"ruff format --check src/vaultwarden tests",
]
format = [
"ruff format src/vaultwarden tests",
"lint",
]
[tool.ruff]
src = ["src/vaultwarden", "tests"]
exclude = ["src/vaultwarden/utils/crypto.py"]
target-version = "py310"
line-length = 79
[tool.ruff.lint]
# Add "Q" to the list of enabled codes.
select = ["B", "E", "F", "I", "N", "Q", "RUF", "SIM", "TCH"]
ignore = ["N815"]
fixable = ["ALL"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["typer.Argument"]
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
ignore_missing_imports = true
warn_unreachable = true
no_implicit_optional = true
show_error_codes = true
plugins = [
"pydantic.mypy"
]
[tool.commitizen]
version = "1.1.1"
tag_format = "$version"
update_changelog_on_bump = true
version_files = [
"pyproject.toml",
"src/vaultwarden/__version__.py",
]