generated from potassco/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
73 lines (59 loc) · 1.66 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "mkdoclingo"
authors = [{ name = "Potassco", email = "[email protected]" }]
description = "Mkdocs plugin to generate documentation from clingo files"
requires-python = ">=3.9"
license = { file = "LICENSE" }
dynamic = ["version"]
readme = "README.md"
[project.urls]
Homepage = "https://github.com/potassco/mkdoclingo.git/"
[project.optional-dependencies]
format = ["black", "isort", "autoflake"]
lint_pylint = ["pylint"]
typecheck = ["types-setuptools", "mypy"]
test = ["coverage[toml]"]
doc = ["mkdocs", "mkdocs-material", "mkdocstrings[python]", "tree-sitter"]
dev = ["mkdoclingo[test,typecheck,lint_pylint]"]
[project.scripts]
mkdoclingo = "mkdoclingo.__main__:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_scheme = "python-simplified-semver"
local_scheme = "no-local-version"
[tool.isort]
profile = "black"
line_length = 120
[tool.black]
line-length = 120
[tool.pylint.format]
max-line-length = 120
[tool.pylint.design]
max-args = 10
max-attributes = 7
max-bool-expr = 5
max-branches = 12
max-locals = 30
max-parents = 7
max-public-methods = 20
max-returns = 10
max-statements = 50
min-public-methods = 1
[tool.pylint.similarities]
ignore-comments = true
ignore-docstrings = true
ignore-imports = true
ignore-signatures = true
[tool.pylint.basic]
argument-rgx = "^[a-z][a-z0-9]*((_[a-z0-9]+)*_?)?$"
variable-rgx = "^[a-z][a-z0-9]*((_[a-z0-9]+)*_?)?$"
good-names = ["_"]
[tool.coverage.run]
source = ["mkdoclingo", "tests"]
omit = ["*/mkdoclingo/__main__.py"]
[tool.coverage.report]
exclude_lines = ["assert", "nocoverage"]