forked from diofant/diofant
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
173 lines (173 loc) · 6.31 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = ['setuptools>=64,<74', 'setuptools_scm[toml]>=8']
build-backend = 'setuptools.build_meta'
[project]
name = 'Diofant'
description = 'Computer algebra system (CAS) in Python'
keywords = ['Math', 'CAS']
license = {text = 'BSD'}
authors = [{name = 'Sergey B Kirpichev et al'}]
maintainers = [{name = 'Sergey B Kirpichev', email = '[email protected]'}]
classifiers = ['Development Status :: 4 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython']
requires-python = '>=3.11'
dependencies = ['mpmath>=1.4.0a1']
dynamic = ['version']
[project.readme]
file = 'docs/README.rst'
content-type = 'text/x-rst'
[project.urls]
Homepage = 'https://diofant.readthedocs.io/'
'Source Code' = 'https://github.com/diofant/diofant/'
'Bug Tracker' = 'https://github.com/diofant/diofant/issues/'
Download = 'https://github.com/diofant/diofant/releases/'
Changelog = 'https://diofant.readthedocs.io/en/latest/release/notes-0.15.html'
[project.optional-dependencies]
exports = ['numpy>=1.19,<1.25;python_version<"3.12"',
'numpy>=1.26.0rc1;python_version>="3.12"', 'cython>=0.29',
'meson-python;python_version>="3.12"',
'ninja;python_version>="3.12"']
gmpy = ['gmpy2>=2.2']
interactive = ['ipykernel']
docs = ['sphinx>=7', 'sphinxcontrib-bibtex>=2.6', 'sphinxcontrib-autoprogram',
'sphinx-rtd-theme>=1']
tests = ['pytest>=8', 'hypothesis', 'pytest-timeout', 'pexpect']
develop = ['diofant[tests]', 'flake518>=1.5', 'flake8-docstrings>=1.3',
'pep8-naming', 'flake8-comprehensions', 'flake8-isort>=6',
'flake8-quotes>=3', 'flake8-sfs', 'pytest-xdist>=3',
'pytest-cov>=5', 'pylint>=3.3', 'coverage[toml]>=7', 'mypy',
'coverage_enable_subprocess', 'build', 'flake8-pytest-style']
testing = ['diofant[develop]']
[tool.setuptools]
zip-safe = true
include-package-data = false
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools.package-data]
diofant = ['tests/logic/*.cnf']
[tool.setuptools.dynamic]
version = {attr = 'setuptools_scm.get_version'}
[tool.isort]
lines_after_imports = 2
skip = ['diofant/core/expr.py',
'diofant/__init__.py',
'diofant/core/__init__.py',
'diofant/polys/__init__.py']
atomic = true
[tool.pylint.MASTER]
jobs = 0
[tool.pylint.format]
max-line-length = 7000
[tool.pylint.design]
max-locals = 100
max-returns = 35
max-attributes = 120
max-branches = 90
max-parents = 12
max-statements = 310
max-args = 12
max-nested-blocks = 10
max-bool-expr = 10
min-public-methods = 0
max-public-methods = 110
max-module-lines = 7300
[tool.pylint.similarities]
min-similarity-lines = 10
[tool.pylint.classes]
valid-metaclass-classmethod-first-arg = ["cls"]
[tool.pylint.BASIC]
bad-names = []
[tool.pylint.'MESSAGES CONTROL']
disable = ['invalid-name',
'missing-docstring',
'unidiomatic-typecheck',
'bad-mcs-method-argument',
'wrong-import-position',
'non-iterator-returned',
'relative-beyond-top-level',
'unbalanced-tuple-unpacking',
'no-member',
'not-callable',
'no-value-for-parameter',
'invalid-unary-operand-type',
'bad-inline-option',
'cyclic-import',
'duplicate-code',
'redefined-argument-from-local',
'trailing-comma-tuple',
'inconsistent-return-statements',
'dangerous-default-value',
'protected-access',
'arguments-differ',
'abstract-method',
'fixme',
'global-variable-undefined',
'global-variable-not-assigned',
'unused-argument',
'redefined-outer-name',
'redefined-builtin',
'undefined-loop-variable',
'cell-var-from-loop',
'import-outside-toplevel',
'arguments-out-of-order',
'consider-using-f-string',
'too-many-positional-arguments',
'possibly-used-before-assignment']
[tool.pytest.ini_options]
doctest_optionflags = ['ELLIPSIS', 'NORMALIZE_WHITESPACE',
'IGNORE_EXCEPTION_DETAIL']
addopts = """\
--durations=20 -r X --doctest-glob='*.rst' \
--cov-config=pyproject.toml -n auto \
"""
norecursedirs = ['build', '.eggs', '.git']
timeout = 1000
xfail_strict = true
filterwarnings = ['ignore::UserWarning', 'error::DeprecationWarning']
[tool.coverage.run]
branch = true
omit = ['conftest.py',
'diofant/tests/*',
'diofant/tests/*/*']
parallel = true
[tool.coverage.html]
directory = 'build/coverage/html'
[tool.coverage.report]
exclude_lines = ['pragma: no cover',
'except NotImplementedError',
'raise NotImplementedError',
'return NotImplemented']
show_missing = true
[tool.mypy]
follow_imports = 'silent'
[[tool.mypy.overrides]]
module = ['IPython.*', 'gmpy2', 'mpmath.*', 'pexpect', 'traitlets.*']
ignore_missing_imports = true
[tool.flake8]
statistics = true
ignore = ['E201', 'E202', 'E226', 'E241', 'W503', 'F402', 'F821',
'N801', 'N802', 'N803', 'N806', 'D402', 'D103', 'D100', 'D105',
'D205', 'D401', 'D102', 'D400', 'E741', 'N807', 'W504',
'N815', 'SFS301']
max_line_length = 7000
exclude = ['build', '.eggs', '.git' , '*.rst' , '*.cfg', '*.yml']
jobs = 1
per_file_ignores = ['diofant/printing/latex.py:SFS101']
pytest-fixture-no-parentheses = true
pytest-mark-no-parentheses = true
pytest-raises-require-match-for = ['BaseException', 'Exception', 'OSError',
'IOError', 'EnvironmentError', 'socket.error']