-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
80 lines (71 loc) · 1.93 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
[tool.poetry]
name = "tdp-lib"
version = "0.0.1"
description = "TDP library for TDP Manager"
authors = ["Xavier Hermand <diode-hermand.consultant@dgfip.finances.gouv.fr>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/TOSIT-FR/tdp-lib"
repository = "https://github.com/TOSIT-FR/tdp-lib"
documentation = "https://github.com/TOSIT-FR/tdp-lib"
packages = [{ include = "tdp" }]
[tool.poetry.dependencies]
python = ">=3.6.2,<4.0"
ansible = "2.9.27"
networkx = "2.5.1"
PyYAML = "<6.0.0"
matplotlib = { version = "3.3.4", optional = true }
pydot = { version = "1.4.2", optional = true }
GitPython = "3.1.18"
SQLAlchemy = "^1.4.31"
click = "8.0.4"
tabulate = "0.8.9"
Sphinx = {version = "4.5.0", optional = true}
python-dotenv = "0.20.0"
typing_extensions = "4.1.1"
jsonschema = "3.2.0"
[tool.poetry.dev-dependencies]
pytest = "6.2.5"
black = "22.8.0"
isort = "5.10.1"
taskipy = "1.10.1"
pre-commit = "2.17.0"
[tool.poetry.extras]
docs = ["Sphinx"]
visualization = ["matplotlib", "pydot"]
[tool.poetry.scripts]
tdp = "tdp.cli.__main__:tdp"
[tool.taskipy.variables]
docs_path = "docs"
[tool.taskipy.tasks]
docs-generate = {cmd = "sphinx-apidoc --output-dir {docs_path} --module-first --doc-project TDP --doc-author TOSIT --full --force tdp '*test*'", use_vars = true}
docs-clean = {cmd = "make -C {docs_path} clean", use_vars = true}
docs-html = {cmd = "make -C {docs_path} html", use_vars = true}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.venv
| venv
| _build
| build
| dist
)/
)
'''
[tool.isort]
src_paths = ["tdp"]
force_single_line = false
known_first_party = "tdp"
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
multi_line_output = 3