-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
82 lines (71 loc) · 2.16 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "erdantic"
version = "1.0.5"
description = "Entity relationship diagrams for Python data model classes like Pydantic."
readme = "README.md"
authors = [{ name = "DrivenData", email = "info@drivendata.org" }, { name = "Jay Qi" }]
license = { text = "MIT License" }
keywords = ["erd", "entity relationship diagram", "dataclasses", "pydantic", "attrs"]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Pydantic",
"Framework :: Pydantic :: 2",
]
requires-python = ">=3.8"
dependencies = [
"pydantic >= 2",
"pydantic-core",
"pygraphviz",
"sortedcontainers-pydantic",
"typenames >= 1.3",
"typer",
"typing_extensions>4 ; python_version < '3.12'",
]
[project.optional-dependencies]
attrs = ["attrs"]
[project.scripts]
erdantic = "erdantic.cli:app"
[project.urls]
"Repository" = "https://github.com/drivendataorg/erdantic"
"Documentation" = "https://erdantic.drivendata.org/"
"Bug Tracker" = "https://github.com/drivendataorg/erdantic/issues"
"Changelog" = "https://erdantic.drivendata.org/stable/changelog/"
[tool.ruff]
line-length = 99
src = ["erdantic/**/*.py", "tests/**/*.py", "docs/**/*.py"]
[tool.ruff.lint]
select = [
"E", # Pyflakes
"F", # Pycodestyle
"I", # isort
]
unfixable = ["F"]
[tool.ruff.lint.isort]
known-first-party = ["erdantic"]
force-sort-within-sections = true
[tool.mypy]
files = ["erdantic", "tests/typechecks.py"]
plugins = ["pydantic.mypy"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=erdantic --cov-report=term --cov-report=html --cov-report=xml --cov-append"
testpaths = ["tests"]
[tool.coverage.run]
source = ["erdantic"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]