-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
117 lines (98 loc) · 2.59 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "eralchemy2"
version = "1.4.1"
description = "Simple entity relation (ER) diagrams generation"
authors = [{ name = "Florian Maurer", email = "[email protected]"}]
license = {text = "Apache-2.0"}
readme = "README.md"
keywords = ["sql", "ORM", "relational databases", "ER diagram", "render"]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
]
requires-python = ">=3.8"
dependencies = [
"sqlalchemy >= 1.4",
"pygraphviz >= 1.9",
]
[project.urls]
homepage = "https://github.com/maurerle/eralchemy2"
repository = "https://github.com/maurerle/eralchemy2"
[project.optional-dependencies]
ci = [
"flask-sqlalchemy >= 2.5.1",
"psycopg2 >= 2.9.3",
"pytest >= 7.4.3",
]
dev = [
"ruff>=0.4.1",
"mypy>=1.7.0",
"pre-commit>=3.0.1"
]
[project.scripts]
eralchemy2 = "eralchemy2.main:cli"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py38, py39, py310, py310-SA20, py311, py311-SA20, py312
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, py310-SA14, py310-SA20
3.11: py311, py311-SA14, py311-SA20
3.12: py312
[testenv]
extras = ci
deps =
py310-SA20: sqlalchemy~=2.0.4
py311-SA20: sqlalchemy~=2.0.4
commands =
pytest
"""
[tool.pytest]
testpaths = "tests"
[tool.pytest.ini_options]
markers = ["external_db"]
[tool.mypy]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
# output
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
[[tool.mypy.overrides]]
module = ["pygraphviz.*", "sqlalchemy.*"]
ignore_missing_imports = true
[tool.ruff]
include = ["eralchemy2/**/*.py", "tests/**/*.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "COM"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"I001", # allow unsorted imports in __init__.py
"F401", # allow unused imports in __init__.py
]
"tests/*" = [
"S101", # allow assert statements for pytest
"ARG", # allow unused arguments for pytest fixtures
]