-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
93 lines (80 loc) · 2.39 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
[project]
name = "tcgdex-sdk"
# version = "0.0.0"
dynamic = ["version"]
description = "The TCGdex Python SDK provides a convenient access to the Open Source TCGdex API."
authors = [{ name = "HellLord77" }, { name = "Avior", email = "[email protected]" }]
dependencies = ["dacite<2.0.0,>=1.8.1"]
requires-python = ">=3.8"
readme = "README.md"
license = { text = "MIT" }
maintainers = [{ name = "Avior", email = "[email protected]" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
homepage = "https://tcgdex.dev"
source = "https://github.com/tcgdex/python-sdk"
download = "https://github.com/tcgdex/python-sdk/releases/latest"
changelog = "https://github.com/tcgdex/python-sdk/releases/latest"
releasenotes = "https://github.com/tcgdex/python-sdk/releases/latest"
documentation = "https://tcgdex.dev"
issues = "https://github.com/tcgdex/python-sdk/issues"
funding = "https://github.com/sponsors/tcgdex"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
#######
# PDM #
#######
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
dev = ["ruff>=0.6.7", "vcrpy<7.0.0,>=6.0.1", "toml>=0.10.2"]
[tool.pdm.scripts]
pre_build = "python scripts/load_version.py"
check = "ruff check"
test = "python -m unittest discover -s tests"
[tool.pdm.build]
includes = ["src/tcgdexsdk"]
# [tool.pdm.version]
# source = "scm"
# fallback_version = "0.0.0"
# write_to = "tcgdexsdk/version.py"
# write_template = "__version__ = '{}'"
[tool.pdm.version]
source = "file"
path = "src/tcgdexsdk/__init__.py"
########
# Ruff #
########
[tool.ruff]
line-length = 80
respect-gitignore = true
include = ["src/**/*.py"]
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
###########
# Pyright #
###########
[tool.pyright]
exclude = [".venv"]
venvPath = "."
venv = ".venv"
reportTypeshedErrors = false
reportMissingImports = true
reportMissingTypeStubs = false