-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (91 loc) · 2.14 KB
/
pyproject.toml
File metadata and controls
102 lines (91 loc) · 2.14 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "phart"
dynamic = ["version"]
description = "Python Hierarchical ASCII Representation Tool - Pure Python graph visualization in ASCII, no external dependencies* (*except NetworkX)"
requires-python= ">=3.14"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Scott VR", email = "scottvr@gmail.com" }
]
dependencies = [
"networkx>=3.3",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
]
[project.optional-dependencies]
default = [
]
developer = [
'pre-commit>=3.2',
'mypy',
'isort',
'ruff',
'PyYAML',
]
doc = [
]
examples = [
'pydot>=3.0.1',
]
extra = [
"phart[examples]",
"phart[svg]",
'pygraphviz>=1.14',
'scipy',
]
svg = [
'fonttools>=4.0',
'matplotlib',
]
test = [
'pytest>=7.2',
'pytest-cov>=4.0',
"phart[svg]",
"phart[examples]",
'types-networkx',
'types-PyYAML',
]
all = [
"phart[developer]",
"phart[test]",
"phart[extra]",
]
[project.scripts]
phart = "phart.cli:main"
[tool.mypy]
python_version = "3.14"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--cov=phart --cov-report markdown"
filterwarnings = ["error"]
[project.urls]
Homepage = "https://github.com/scottvr/phart"
Repository = "https://github.com/scottvr/phart.git"
Issues = "https://github.com/scottvr/phart/issues"
[tool.hatch.version]
path = "src/phart/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/phart"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B"]
ignore = ["F401", "B010", "B904", "B009"]
#ignore = ["E501"]
unfixable = ["B"]
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs,tools}/*" = ["E402"]