forked from tarwirdur/mbtiles2osmand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (124 loc) · 3.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqlitedb-map-tools"
version = "0.2.0"
description = "A set of CLI tools for working with .mbtiles map files, including a map downloader."
license = "GPL-3.0-or-later"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "ZUB3C", email = "pitzubarev@yandex.ru" },
{ name = "Zubarev Grigoriy", email = "thirtysix@thirtysix.pw" },
]
keywords = [
"mbtiles",
"sqlitedb",
"osmand",
"locus",
"GIS",
"cli",
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"pillow>=10.4.0",
"tqdm>=4.66.5",
"requests>=2.32.3",
"click>=8.1.7",
"click-help-colors>=0.9.4",
"aiohttp>=3.10.5",
]
[project.scripts]
mbtiles2sqlitedb = "sqlitedb_map_tools:convert_mbtiles_to_sqlitedb"
sqlitedb-cut = "sqlitedb_map_tools:cut_sqlitedb_map"
sqlitedb-merge = "sqlitedb_map_tools:merge_sqlitedb_maps"
nakarteme-dl = "sqlitedb_map_tools:download_nakarteme_maps"
raster-map-dl = "sqlitedb_map_tools:download_raster_map"
[tool.rye]
managed = true
universal = true
dev-dependencies = [
"basedpyright>=1.17.1",
"types-tqdm>=4.66.0.20240417",
"types-requests>=2.32.0.20240712",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["sqlitedb_map_tools"]
[tool.ruff]
target-version = "py310"
line-length = 99
exclude = [
".git",
".venv",
".idea",
".tests",
".cache",
"build",
"dist",
"scripts",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"B", # flake8-bugbear
"G", # flake8-logging-format
"C4", # flake8-comprehensions
"UP", # pyupgrade
"PD", # pandas-vet
"PLC", # pylint conventions
"PLE", # pylint errors
"SIM", # flake8-simplify
"RET", # flake8-return
"YTT", # flake8-2020
"DTZ", # flake8-datetimez
"RUF", # ruff-specific rules
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ASYNC", # flake8-async
]
ignore = [
"PTH123", # `open()` should be replaced by `Path.open()`
"PD901", # Avoid using the generic variable name df for DataFrames
"RUF003", # Ambiguous unicode character comment
"RUF001", # String contains ambiguous `В` (CYRILLIC CAPITAL LETTER VE)
]
[tool.basedpyright]
exclude = [
".git",
".venv",
".idea",
".tests",
".cache",
"build",
"dist",
"scripts",
]
typeCheckingMode = "standard"
pythonPlatform = "All"
pythonVersion = "3.12"
reportMissingImports = true
reportMissingTypeStubs = true