-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
81 lines (73 loc) · 1.97 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
[project]
name = "py_unite_db"
version = "0.3.0"
description = "Unnofficial Python wrapper of the unite-db.com REST API."
authors = [
{name = "Jay Newey", email = "[email protected]"},
]
dependencies = [
"uplink~=0.9",
"pydantic~=1.8"]
requires-python = ">=3.9"
license = {text = "GPL-2.0-only"}
readme = "README.md"
[project.urls]
homepage = "https://github.com/jaynewey/py-unite-db"
[build-system]
requires = ["pdm-pep517"]
build-backend = "pdm.pep517.api"
[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"python-semantic-release~=7.19",
"black<22,>=21.11b1",
"isort~=5.10",
"mypy~=0.910",
"flake8~=4.0",
"pytest",
"requests-mock",
"types-requests",
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings[python]>=0.18",
"setuptools>=68.0.0",
"click==8.0.3",
]
[tool.pdm.scripts]
format = {shell = "pdm run isort py_unite_db tests && pdm run black py_unite_db tests"}
formatcheck = {shell = "pdm run black py_unite_db tests --check"}
stubs = {shell = "pdm run python scripts/stubs.py ."}
typecheck = {shell = "pdm run stubs && pdm run mypy --config-file .stubs/mypy.ini py_unite_db/ tests"}
lint = {shell = "pdm run flake8 py_unite_db tests"}
fetch_charm = {shell = "pdm run python scripts/fetch_charm.py docs/assets/overrides/.icons/"}
[tool.black]
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| venv
| \.venv
| _build
| buck-out
| build
| dist
| __pypackages__
)/
'''
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
testpaths = ["tests"]
# uplink is using deprecated asyncio functions right now, suppress warnings
filterwarnings = "ignore::DeprecationWarning:uplink.clients.*:"
markers = "webtest: these tests query the actual live API over the web."
[tool.semantic_release]
branch = "main"
version_variable = ["py_unite_db/__init__.py:__version__"]
version_toml = "pyproject.toml:project.version"
build_command = "pdm build"
# api is unstable for now, leave at 0.*.*
major_on_zero = false