-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (82 loc) · 2.04 KB
/
pyproject.toml
File metadata and controls
92 lines (82 loc) · 2.04 KB
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
[tool.poetry]
name = "donuts-python"
version = "0.0.6a0"
description = "Python binding to Donuts"
license = "MIT"
authors = ["Takahiro Ueda <t.ueda.od@juntendo.ac.jp>"]
readme = "README.rst"
repository = "https://github.com/tueda/donuts-python"
keywords = ["computer algebra", "multivariate polynomial arithmetic"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
]
packages = [{ include = "donuts" }]
[tool.poetry.dependencies]
python = "^3.7"
importlib-resources = {version = "^1.3", python = "<3.9"}
pyjnius = "^1.3"
[tool.poetry.dev-dependencies]
py4j = "^0.10.9.7" # alternative to pyjnius
jpype1 = "^1.5.0" # alternative to pyjnius
invoke = "^2.2.0"
pre-commit = "^2.21.0" # frozen for Python 3.7
pytest = "^7.4.4" # frozen for Python 3.7
pytest-benchmark = "^4.0.0"
pytest-cov = "^4.1.0"
setuptools = "^68.0.0" # frozen for Python 3.7
sphinx = "^5.3.0" # frozen for Python 3.7
sphinx_rtd_theme = "^2.0.0"
sphinx-autodoc-typehints = "^1.23.0" # frozen for Python 3.7
wheel = "^0.42.0"
[tool.coverage.report]
exclude_lines = [
"@overload",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise AssertionError()",
"return NotImplemented",
]
[tool.flake8]
max-line-length = 88
extend-ignore = [
"E203", # for black
]
per-file-ignores = [
"build.py:S404,S603,S607",
"docs/conf.py:S404",
"tasks.py:D403",
"tests/*.py:D100,D103,S101,S301,S307,S311,S403",
]
[tool.isort]
profile = "black"
skip_glob = [".*", "donuts/java"]
[tool.mypy]
pretty = true
show_error_codes = true
strict = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = [
"jnius_config",
"jnius",
"jpype",
"py4j.*",
"sphinx_rtd_theme",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = [
"--benchmark-warmup=on",
"--cov-report=html",
"--cov-report=term",
"--doctest-glob='*.rst'",
"--doctest-modules",
"--durations=10",
"-p no:faulthandler",
]
testpaths = [
"tests",
"README.rst",
]