-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
101 lines (84 loc) · 2.55 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
[tool.poetry]
name = "sphinx-modeling"
# Don't miss updates in sphinx_modeling/setup.py, docs/conf.py and docs/changelog.rst
version = "0.2.0"
description = "Sphinx extension to enable modeling and set constraints for sphinx-needs"
authors = ["team useblocks <[email protected]>"]
license = "MIT"
readme = "README.rst"
repository = "http://github.com/useblocks/sphinx-modeling"
documentation = "https://sphinx-modeling.useblocks.com/"
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Documentation',
'Topic :: Utilities',
'Framework :: Sphinx :: Extension',
]
packages = [
{include = "sphinx_modeling"}
]
[tool.poetry.dependencies]
# cannot go hight for python due to pygls
# see also https://github.com/python-poetry/poetry/issues/1413#issuecomment-620785817
python = ">=3.7.2,<3.11"
docutils = ">=0.18.1"
pydantic = "^1.9.2"
sphinx = ">=5.0"
sphinx-needs = ">=1.0.1"
typing-extensions = {version = "^4.3.0", python = "~3.7"} # needed for typing Literal
sphinxcontrib-plantuml = "^0.24" # needed as sphinx-needs has it only in [tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pre-commit = "^2"
# test
nox = "^2022.8.7"
nox-poetry = "^1.0.1"
pytest = "^7"
pytest-xdist="*" # parallelisation
# mypy
docutils-stubs = "^0.0.22"
mypy = "^0.960"
types-setuptools = "^57.4.14"
# docs
sphinx = "^5"
sphinx_design = "^0.3.0"
sphinx-immaterial = "==0.11.0"
sphinxcontrib-plantuml = "^0.24"
sphinxcontrib-programoutput = "^0.17"
# formatting
black = "^22.3"
isort = "^5.7.0"
pylint = "^2.15.3"
[tool.pytest.ini_options]
asyncio_mode= "auto"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
force_sort_within_sections = true
sort_relative_in_force_sorted_sections = true
lines_after_imports = 2
[tool.mypy]
strict = true
show_error_codes = true
implicit_reexport = true
files = "sphinx_modeling"
ignore_missing_imports = true
namespace_packages = true
[[tool.mypy.overrides]]
module = [
'sphinx_modeling.modeling.work_in_progress.all_in_one',
]
ignore_errors = true
[build-system]
requires = ["setuptools", "poetry_core>=1.0.8"] # setuptools for deps like plantuml
build-backend = "poetry.core.masonry.api"