-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (75 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
83 lines (75 loc) · 2.55 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "roentgen-icons"
version = "0.14.0"
description = "Set of monochrome 14 × 14 px pixel-aligned map icons"
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "Sergey Vartanov", email = "me@enzet.ru" }]
keywords = ["icons", "svg", "map", "graphics", "openstreetmap", "cartography"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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.13",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: GIS",
"Typing :: Typed",
]
dependencies = [
"colour~=0.1.5",
"lxml~=5.4.0",
"requests~=2.32.3",
"svgpathtools~=1.6.1",
"svgwrite~=1.4.3",
]
[project.optional-dependencies]
dev = ["build~=1.0.0", "pytest~=8.0.0", "ruff~=0.11.12"]
[project.urls]
Homepage = "https://enzet.ru/roentgen"
Repository = "https://github.com/enzet/Roentgen"
[tool.hatch.build.targets.wheel]
only-include = [
"roentgen/__init__.py",
"roentgen/icon.py",
"roentgen/icon_collection.py",
"roentgen/shapes.json",
"roentgen/config.json",
]
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"C901", # Too complex functions are allowed.
"COM812", # Trailing comma not in Black style.
"D105", # Missing docstring in magic method is allowed.
"D107", # Missing docstring in `__init__` method is allowed.
"D202", # No blank line after function docstring is allowed.
"D203", # Blank line is not required before class docstring.
"D213", # New line after """ is not needed.
"FIX002", # Todo markers are allowed.
"PLR0911", # Too many return statements are allowed.
"PLR0912", # Too many branches are allowed.
"PLR0913", # Too many arguments are allowed.
"PLR0915", # Too many statements are allowed.
"RUF001", # Ambiguous symbols are allowed.
"RUF002", # Ambiguous symbols are allowed.
"S101", # Asserts are allowed in tests.
"TD003", # Issues for todos are not required.
]
line-length = 80