-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
163 lines (146 loc) · 4.26 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[project]
name = "pixel-map"
version = "0.2.4"
description = "A Python CLI tool for plotting geo files in the terminal"
authors = [{ name = "Kamil Raczycki", email = "[email protected]" }]
dependencies = [
"rich>=12.0.0",
"typer[all]>=0.9.0",
"img2unicode[n2]>=0.1a11; sys_platform != 'win32' and sys_platform != 'darwin'",
"img2unicode>=0.1a11; sys_platform == 'win32' or sys_platform == 'darwin'",
"geopandas>=0.8",
"numpy>=1.26.0",
"contextily>=1",
"matplotlib>=3.2.0",
"pyarrow>=16.0.0",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
[project.urls]
Homepage = "https://github.com/RaczeQ/pixel-map"
Repository = "https://github.com/RaczeQ/pixel-map"
Changelog = "https://github.com/RaczeQ/pixel-map/blob/main/CHANGELOG.md"
[project.scripts]
pixel-map = "pixel_map.__main__:main"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
# pdm add -d <library>
dev = ["bumpver", "types-requests", "setuptools>=45.0.0"]
# pdm add -dG lint <library>
lint = ["pre-commit>=4", "mypy>=1", "docformatter[tomli]", "ruff>=0.1.0"]
# pdm add -dG test <library>
test = [
"pytest>=7.0.0",
"tox-pdm>=0.7.2",
"pytest-mock>=3.3.0",
"requests-mock>=1.12.1",
"pytest-check>=2.3.1",
"pytest-parametrization>=2022.2.1",
]
license = ["licensecheck", "pipdeptree"]
[tool.pdm.scripts]
post_install = "pre-commit install"
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
preview = true
[tool.ruff]
line-length = 100
target-version = "py39"
extend-exclude = ["old"]
[tool.ruff.lint]
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"I", # isort
"B", # flake8-bugbear
"NPY", # NumPy
"YTT", # flake8-2020
"Q", # flake8-quotes
"PLE",
"PLW", # pylint (add "PLR" in the future)
"PIE", # misc lints
"TID", # tidy imports
"ISC", # implicit string concatenation
"TCH", # type-checking imports
# "N", # pep8-naming
# "ANN", # flake8-annotations
]
ignore = ["D212"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
[tool.mypy]
strict = true
show_column_numbers = true
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
[tool.docformatter]
syntax = 'google'
black = true
recursive = true
wrap-summaries = 100
wrap-descriptions = 100
# force-wrap = false # uncomment after https://github.com/PyCQA/docformatter/issues/68 is resolved
tab-width = 4
blank = false
pre-summary-newline = true
close-quotes-on-newline = true
wrap-one-line = true
[tool.bumpver]
current_version = "0.2.4"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "chore(CI/CD): bump version {old_version} -> {new_version}"
commit = true
tag = false
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^current_version = "{version}"$',
'^version = "{version}"$',
]
"pixel_map/__init__.py" = ['^__version__ = "{version}"$']
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
log_cli = true
doctest_optionflags = [
'ELLIPSIS',
'NORMALIZE_WHITESPACE',
'IGNORE_EXCEPTION_DETAIL',
]
[tool.licensecheck]
using = "requirements"
zero = false
ignore_licenses = ["UNKNOWN"]
# ignore_packages = [
# 'docformatter', # uses MIT license, has mismatched license in analysis
# 'mkdocs-jupyter', # uses Apache-2.0 license, has mismatched license in analysis
# 'python-geohash', # uses both MIT and Apache-2.0 licenses, has mismatched license in analysis
# ]