Skip to content

Commit 0fe9ddb

Browse files
committed
updated pyproject
1 parent b3c9f6b commit 0fe9ddb

1 file changed

Lines changed: 34 additions & 33 deletions

File tree

pyproject.toml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,29 @@ readme = "README.md"
66
requires-python = ">=3.8"
77
license = "MIT"
88
authors = [{ name = "Sergio Abad", email = "sergio.abad@bytelix.com" }]
9+
keywords = ["amazon", "paapi", "product-advertising-api", "affiliate", "api"]
910
classifiers = [
1011
"Programming Language :: Python",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.8",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
19+
"Programming Language :: Python :: 3.14",
20+
"Programming Language :: Python :: 3.15",
1121
"License :: OSI Approved :: MIT License",
1222
"Operating System :: OS Independent",
23+
"Development Status :: 5 - Production/Stable",
24+
"Intended Audience :: Developers",
25+
"Topic :: Software Development :: Libraries :: Python Modules",
1326
]
1427
dependencies = [
15-
"certifi",
16-
"six",
17-
"python_dateutil",
18-
"setuptools",
19-
"urllib3",
20-
"typing_extensions; python_version < '3.8'",
28+
"certifi>=2023.0.0",
29+
"six>=1.16.0",
30+
"python_dateutil>=2.8.0",
31+
"urllib3>=1.26.0,<3",
2132
]
2233

2334
[project.urls]
@@ -32,11 +43,7 @@ build-backend = "hatchling.build"
3243
packages = ["amazon_paapi"]
3344

3445
[dependency-groups]
35-
dev = [
36-
"pre-commit>=2.21.0",
37-
"pytest>=7.4.4",
38-
"pytest-cov>=4.1.0",
39-
]
46+
dev = ["pre-commit>=2.21.0", "pytest>=7.4.4", "pytest-cov>=4.1.0"]
4047

4148
[tool.ruff]
4249
target-version = "py38"
@@ -45,34 +52,28 @@ cache-dir = ".cache/ruff"
4552
[tool.ruff.lint]
4653
select = ["ALL"]
4754
ignore = [
48-
"ANN003",
49-
"ANN401",
50-
"D104",
51-
"D100",
52-
"D203",
53-
"D213",
54-
"COM812",
55-
"ISC001",
56-
"FBT001",
57-
"FBT002",
55+
"ANN003", # Missing type annotation for **kwargs
56+
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
57+
"D203", # 1 blank line required before class docstring (conflicts with D211)
58+
"D213", # Multi-line docstring summary should start at the second line (conflicts with D212)
59+
"COM812", # Missing trailing comma (conflicts with Ruff formatter)
60+
"ISC001", # Implicitly concatenated string literals (conflicts with Ruff formatter)
61+
"FBT001", # Boolean positional arg in function definition
62+
"FBT002", # Boolean default value in function definition
5863
"N818", # TODO: Exception name should be named with an Error suffix
5964
]
6065
exclude = ["amazon_paapi/sdk/*", "docs/*"]
6166

6267
[tool.ruff.lint.per-file-ignores]
6368
"tests/*" = [
64-
"ANN001",
65-
"ANN201",
66-
"ANN206",
67-
"D101",
68-
"D102",
69-
"D103",
70-
"D107",
71-
"PT009",
72-
"PT027",
73-
"SLF001",
69+
"ANN201", # Missing return type annotation for public function
70+
"ANN206", # Missing return type annotation for classmethod
71+
"D", # pydocstring rules (no docstrings required for tests)
72+
"PT009", # Use a regular assert instead of unittest-style
73+
"PT027", # Use pytest.raises instead of unittest-style
74+
"SLF001", # Private member accessed
7475
]
75-
"api.py" = ["PLR0913"]
76+
"api.py" = ["PLR0913"] # Too many arguments to function call
7677

7778
[tool.ruff.format]
7879
exclude = ["amazon_paapi/sdk/*", "docs/*", ".github"]
@@ -104,7 +105,7 @@ omit = ["amazon_paapi/sdk/*"]
104105
precision = 2
105106
skip_covered = true
106107
skip_empty = true
107-
fail_under = 95
108+
fail_under = 99
108109

109110
[tool.coverage.html]
110111
directory = "coverage_html_report"

0 commit comments

Comments
 (0)