-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
104 lines (89 loc) · 2.5 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
94
95
96
97
98
99
100
101
102
103
104
[tool.poetry]
name = "PSNAWP"
version = "2.1.0"
description = "Python API Wrapper for PlayStation Network API"
authors = ["isFakeAccount <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/isFakeAccount/psnawp"
repository = "https://github.com/isFakeAccount/psnawp"
documentation = "https://psnawp.readthedocs.io/en/latest/"
keywords = ["PSN", "PlayStation"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{ include = "psnawp_api", from = "src" }]
[tool.poetry.dependencies]
python = "^3.10"
attrs = "24.2.0"
requests = "^2.32.3"
typing-extensions = "^4.12.2"
requests-ratelimiter = "^0.7.0"
pycountry = "^24.6.1"
[tool.poetry.group.typing.dependencies]
mypy = "^1.14.1"
pyright = "^1.1.391"
types-requests = "^2.31.0.6"
[tool.poetry.group.linting.dependencies]
ruff = "^0.9.1"
pre-commit = "^4.0.0"
[tool.poetry.group.docs.dependencies]
sphinx = "^8.1.3"
furo = "^2024.8.6"
myst-parser = { extras = ["linkify"], version = "^4.0.0" }
[tool.poetry.group.tests.dependencies]
pytest = "^8.2.2"
python-dotenv = "^1.0.1"
vcrpy = "^7.0.0"
pytest-cov = "^6.0.0"
pytest-vcr = "^1.0.2"
jsonschema = "^4.23.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "--cov=psnawp_api --cov-report html --junitxml=pytest.xml"
testpaths = ["tests"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"@overload",
"raise NotImplementedError",
"__repr__",
"__str__",
]
[tool.mypy]
strict = true
check_untyped_defs = true
disallow_any_generics = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tool.pyright]
exclude = [".venv", "venv"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
reportPrivateUsage = false
[tool.black]
line-length = 160
[tool.ruff]
line-length = 160
[tool.ruff.lint]
select = ["E", "F", "I001", "I002", "TID252"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 88