-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
74 lines (61 loc) · 1.63 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
[tool.poetry]
name = "smallgraphlib"
version = "0.10.0"
description = "Simple library for handling small graphs, including Tikz code generation."
authors = ["Nicolas Pourcelot <[email protected]>"]
repository = "https://github.com/wxgeo/smallgraphlib"
license = "GPL-3.0-or-later"
readme = "README.md"
keywords = ["graph", "tikz", "latex"]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
pytest = "^7"
mypy = "^1.8"
black = "^22.1.0"
tox = "^4.1.2"
sphinx-autodoc-typehints = "^1.18.3"
sphinx-rtd-theme = "^1.0.0"#
myst-parser = "^0.18.0"
# To test compatibility with sympy.
sympy = "^1.10.1"
# Version 7.29+ are buggy !
python-semantic-release = "7.28.1"
ruff = "^0.3.2"
numpy = "^1.26.4"
pytest-pythonhashseed = "^1.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.semantic_release]
version_variable = "pyproject.toml:version"
[tool.mypy]
implicit_optional = true
warn_unused_ignores = true
strict_equality = true
[tool.black]
line-length = 110
[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
[tool.ruff]
line-length = 110
fix = true
[tool.ruff.lint]
ignore = ["E203"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/test_latex_export.py" = ["E501"]
[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = true
envlist = py311
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run black smallgraphlib tests
poetry run ruff check smallgraphlib tests
poetry run pytest --pythonhashseed 0 tests
poetry run pytest --doctest-modules
poetry run mypy smallgraphlib tests
"""