-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
137 lines (120 loc) · 3.17 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
[build-system]
requires = [
"wheel",
"numpy",
"meson-python >= 0.15",
"cython >= 3.0",
"cherab == 1.4.0",
"tomli; python_version < '3.11'",
]
build-backend = "mesonpy"
[project]
name = "cherab-phix"
description = "Cherab spectroscopy framework: PHiX machine configuration"
version = "1.2.0.dev0"
readme = "README.md"
authors = [
{ name = "Koyo Munechika", email = "[email protected]" },
]
maintainers = [
{ name = "Koyo Munechika", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Cython",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">= 3.8, < 3.11"
dependencies = [
"numpy",
"scipy",
"matplotlib < 3.6", # cherab v1.4.0 dependency
"contourpy",
"plotly",
"cherab == 1.4.0",
"calcam",
]
license = { file = "LICENSE.md" }
[project.optional-dependencies]
docs = [
"docutils",
"ipykernel",
"ipywidgets",
"jinja2 < 3.1",
"nbconvert >= 7.3",
"nbsphinx",
"pandoc",
"pillow",
"pydata-sphinx-theme < 0.15",
"pygments >= 2.11.0",
"sphinx < 8.0",
"sphinx-codeautolink",
"sphinx-copybutton",
"sphinx-design",
"sphinx-github-style",
"sphinx-prompt",
]
dev = [
"ipython",
"black",
"ruff",
"mypy",
"rich-click",
"cython-lint",
"pre-commit",
"cython >= 3.0",
"meson-python >= 0.15",
"setuptools", # for installing with setup.py editable mode
"pytest",
]
[project.urls]
Homepage = "https://cherab-phix.readthedocs.io/"
documentation = "https://cherab-phix.readthedocs.io/"
repository = "https://github.com/munechika-koyo/cherab_phix"
[tool.cython-lint]
max-line-length = 140
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F", "W", "I", "N", "B", "NPY"]
ignore = ["E501", "N802", "N803", "N806"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "F", "W", "I", "B", "NPY"]
unfixable = ["E501"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.9
target-version = "py39"
# namespace package setting
namespace-packages = ["cherab/phix"]
[tool.ruff.per-file-ignores]
"cherab/phix/machine/pfc_mesh.py" = ["E741"]
"cherab/phix/plasma/species.py" = ["B008"]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.mypy]
follow-imports = "silent"
ignore-missing-imports = true
show-column-numbers = true
no-pretty = true
[tool.docformatter]
recursive = true
wrap-summaries = 100
wrap-descriptions = 100
blank = false
[tool.cibuildwheel]
skip = "pp* *_ppc64le *_i686 *_s390x"
build-frontend = "build"
test-requires = "pytest"
test-command = "pytest --pyargs cherab.phix"