Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (135 loc) · 3.97 KB
/
Copy pathpyproject.toml
File metadata and controls
147 lines (135 loc) · 3.97 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
requires = ["uv_build>=0.12.13,<0.13"]
build-backend = "uv_build"
[project]
name = "papermap"
version = "2026.3.1"
description = "papermap is a Python library and CLI tool for creating ready-to-print paper maps."
authors = [{name = "Steven van de Graaf", email = "steven@vandegraaf.xyz"}]
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
keywords = ["map", "maps", "paper", "cartography", "openstreetmap", "osm", "topography", "geodesy", "utm", "topography", "mgrs"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Typing :: Typed",
]
requires-python = ">=3.11, <4"
dependencies = [
"click",
"click_default_group",
"fpdf2",
"httpx2",
"Pillow",
]
[project.optional-dependencies]
gpx = ["gpx>=2026.3.0"]
[dependency-groups]
docs = [
"cogapp",
"furo",
"myst-parser",
"sphinx<9.1.0",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinxext-opengraph",
]
tests = [
"gpx",
"httpx2-pytest",
"pytest",
"pytest-cov",
]
typing = [
"mypy",
"pyrefly",
"pyright[nodejs]",
"ty",
"types-click-default-group",
"zuban",
]
dev = [
{ include-group = "docs" },
{ include-group = "tests" },
{ include-group = "typing" },
"prek",
]
[project.urls]
Documentation = "https://papermap.readthedocs.io/en/stable/"
Changelog = "https://papermap.readthedocs.io/en/stable/changelog.html"
"Source code" = "https://github.com/sgraaf/papermap"
Issues = "https://github.com/sgraaf/papermap/issues"
[project.scripts]
papermap = "papermap.cli:cli"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # missing-trailing-comma (flake8-commas), handled by the formatter
"CPY001", # missing-copyright-notice (flake8-copyright)
"D100", # undocumented-public-module (pydocstyle)
"D102", # undocumented-public-method (pydocstyle)
"D105", # undocumented-magic-method (pydocstyle)
"D107", # undocumented-public-init (pydocstyle)
"E501", # line-too-long (pycodestyle), handled by the formatter
"PLC2401", # non-ascii-name (Pylint)
]
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import (Pyflakes)
]
"docs/conf.py" = [
"INP001", # implicit-namespace-package (flake8-no-pep420)
]
"src/papermap/cli.py" = [
"ANN401", # any-type (flake8-annotations)
]
"src/papermap/papermap.py" = [
"ANN401", # any-type (flake8-annotations) - Used in classmethod **kwargs
]
"src/papermap/geodesy.py" = [
"ERA001", # commented-out-code (eradicate) - Mathematical formulas
"N806", # non-lowercase-variable-in-function (pep8-naming) - Greek letters
"PLR2004", # magic-value-comparison (Pylint) - Geographic/mathematical constants
"RUF002", # ambiguous-unicode-character-docstring (Ruff) - Math symbols (×)
"RUF003", # ambiguous-unicode-character-comment (Ruff) - Math symbols (×)
]
"src/papermap/utils.py" = [
"N806", # non-lowercase-variable-in-function (pep8-naming)
"PLR2004", # magic-value-comparison (Pylint)
]
"tests/**/test_*.py" = [
"D", # pydocstyle
"PLR2004", # magic-value-comparison (Pylint)
"S101", # assert (flake8-bandit)
]
"tests/conftest.py" = [
"D401", # non-imperative-mood (pydocstyle)
]
"tests/smoke_test.py" = [
"PLR2004", # magic-value-comparison (Pylint)
"S101", # assert (flake8-bandit)
]
[tool.ty.src]
include = ["src", "tests"]
[tool.mypy]
python_version = "3.11"
files = ["tests"]
[tool.pyrefly]
project-includes = ["tests"]
search-path = ["tests"]
[tool.pyright]
include = ["tests"]
pythonVersion = "3.11"
[tool.zuban]
python_version = "3.11"
files = ["tests"]