-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (80 loc) · 2.27 KB
/
pyproject.toml
File metadata and controls
90 lines (80 loc) · 2.27 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
[project]
name = "gruncellka-porto-data"
version = "0.3.1"
description = "Deutsche Post pricing and rules data with schema validation"
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["deutsche-post", "shipping", "postal", "pricing", "zones", "restrictions", "json", "schema"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
authors = [
{name = "gruncellka"},
]
requires-python = ">=3.13"
dependencies = []
[project.urls]
Homepage = "https://github.com/gruncellka/porto-data"
Repository = "https://github.com/gruncellka/porto-data"
Issues = "https://github.com/gruncellka/porto-data/issues"
Changelog = "https://github.com/gruncellka/porto-data/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"bump2version>=1.0.0",
"pre-commit>=3.5.0",
"ruff>=0.15.5",
"mypy>=1.0.0",
"jsonschema>=4.0.0",
"types-jsonschema>=4.0.0",
"types-toml>=0.10.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
# PyPI package: data only (like npm). CLI/scripts stay in repo for development and CI.
packages = ["porto_data"]
[tool.setuptools.package-data]
porto_data = ["data/*.json", "schemas/*.json", "mappings.json", "metadata.json"]
[tool.ruff]
line-length = 100
target-version = "py313"
# Enable formatting (replaces Black)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by ruff format)
]
[tool.ruff.lint.isort]
known-first-party = ["cli", "scripts"]
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
namespace_packages = true