forked from MPh-py/MPh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
106 lines (89 loc) · 2.82 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
# Project information: PyPI and Pip
[project]
name = 'MPh'
authors = [{name='John Hennig'}]
license = {file='license.txt'}
keywords = [
'Comsol',
'multiphysics',
'physics',
'finite elements',
'computer simulation',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Topic :: Scientific/Engineering :: Physics',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
]
readme = 'PyPI.md'
dynamic = ['version', 'description']
requires-python = '>= 3.6'
dependencies = [
'JPype1',
'NumPy',
]
[project.optional-dependencies]
dev = [
'Sphinx >= 6.1',
'Furo',
'MyST-parser >= 1.0',
'pyTest',
'pyTest-cov',
'Flake8-pyproject',
'Flit',
]
[project.urls]
Documentation = 'https://mph.readthedocs.io'
Source = 'https://github.com/MPh-py/MPh'
# Wheel builder: Flit
[build-system]
requires = ['flit_core >= 3.4, < 4']
build-backend = 'flit_core.buildapi'
[tool.flit.module]
name = 'mph'
# Code linter: Flake8
[tool.flake8]
exclude = [
'local', '.local',
'ignore', '.ignore',
'venv', '.venv',
]
ignore = [
'E127', # Continuation line over-indented.
'E128', # Continuation line under-indented.
'E201', # Whitespace after '('.
'E202', # Whitespace before ')'.
'E221', # Multiple spaces before operator.
'E222', # Multiple spaces after operator.
'E226', # Missing whitespace around arithmetic operator.
'E231', # Missing whitespace after ',', ';', or ':'.
'E241', # Multiple spaces after ','.
'E251', # Unexpected spaces around keyword equals.
'E261', # At least two spaces before inline comment.
'E271', # Multiple spaces after keyword.
'E272', # Multiple spaces before keyword.
'E402', # Module level import not at top of file.
'W503', # Line break occurred before a binary operator.
]
per-file-ignores = [
'__init__.py:F401', # Imported but unused.
]
# Test runner: pyTest
[tool.pytest.ini_options]
addopts = '--verbose'
testpaths = ['tests']
# Code coverage: Coverage.py
[tool.coverage.run]
source = ['mph/']
omit = ['mph/discovery.py'] # Ignore platform-dependent discovery mechanism.
relative_files = true
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'def location', # Ignore platform-dependent configuration search.
]