generated from potassco/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (92 loc) · 2.71 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
[build-system]
requires = [
"setuptools",
"setuptools-scm",
]
build-backend = "setuptools.build_meta"
[project]
name = "clingexplaid"
authors = [
{ name = "Hannes Weichelt", email = "[email protected]" },
{ name = "Susana Hahn", email = "[email protected]" }
]
maintainers = [{ name = "Hannes Weichelt", email = "[email protected]" }]
description = "Tools to aid the development of explanation systems using clingo"
requires-python = ">=3.9"
license = {file = "LICENSE"}
dynamic = [ "version" ]
readme = "README.md"
dependencies = [
"clingo>=5.7.1",
"autoflake",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://github.com/potassco/clingo-explaid"
Source = "https://github.com/potassco/clingo-explaid"
"Issues" = "https://github.com/potassco/clingo-explaid/issues"
[project.optional-dependencies]
format = [ "black", "isort", "autoflake" ]
lint_pylint = [ "pylint" ]
typecheck = [ "types-setuptools", "mypy" ]
test = [ "coverage[toml]" ]
doc = [ "sphinx", "furo", "nbsphinx", "sphinx_copybutton", "myst-parser" ]
dev = [ "clingexplaid[test,typecheck,lint_pylint]" ]
[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 = ["clingexplaid", "tests"]
omit = [
"*/clingexplaid/propagators/*",
"*/clingexplaid/transformers/__init__.py",
"*/clingexplaid/muc/__init__.py",
"*/clingexplaid/unsat_constraints/__init__.py",
"*/tests/*",
"*/constants.py"
]
[tool.coverage.report]
exclude_lines = ["assert", "nocoverage"]