-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
161 lines (145 loc) · 3.26 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
[build-system]
requires = [
"hatchling<=1.21.0",
"setuptools-git-versioning",
]
build-backend = "hatchling.build"
[tool.setuptools-git-versioning]
enabled = true
[project]
name = "easyreflectometry"
dynamic = ["version"]
description = "A reflectometry python package built on the EasyScience framework."
readme = "README.md"
authors = [{name = "EasyScience contributors"}]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"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",
"Development Status :: 3 - Alpha"
]
requires-python = ">=3.9,<3.13"
dependencies = [
"easyscience>=1.2.0",
"scipp>=23.12.0",
"refnx>=0.1.15",
"refl1d>=0.8.14",
"orsopy>=0.0.4",
"pint==0.23", # Only to ensure that unit is reported as dimensionless rather than empty string
"xhtml2pdf>=0.2.16"
]
[project.optional-dependencies]
dev = [
"build",
"codecov>=2.1.11",
"coverage",
"coveralls",
"flake8>=6.0.0",
"ipykernel",
"jupyter>=1.0.0",
"jupyterlab",
"plopp",
"pooch",
"pytest>=5.2",
"pytest-cov>=3.0.0",
"ruff",
"toml>=0.10",
"yapf>=0.31.0",
]
docs = [
"myst_parser",
"nbsphinx",
"sphinx_autodoc_typehints",
"sphinx_book_theme",
"sphinx-copybutton",
"toml"
]
[project.urls]
homepage = "https://docs.easyreflectometry.org"
documentation = "https://docs.easyreflectometry.org"
[tool.hatch.version]
path = "src/easyreflectometry/__version__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
packages = ["src"]
[tool.hatch.build.targets.wheel]
packages = ["src/easyreflectometry"]
[tool.coverage.run]
source = ["src/easyreflectometry"]
[tool.github.info]
organization = 'easyScience'
repo = "easyreflectometry"
[tool.ruff]
line-length = 127
exclude = [
"docs",
]
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.per-file-ignores]
# allow asserts in test files
"*test_*.py" = ["S101"]
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
# flake8 settings from existing CI setup
"E9", "F63", "F7", "F82",
# Code should be polished to fulfill all cases below
# https://docs.astral.sh/ruff/rules/
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
# "UP",
# flake8-bugbear
# "B",
# flake8-simplify
# "SIM",
# isort
"I",
# flake8-bandit
"S",
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{3.9,3.10,3.11,3.12}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
passenv =
CI
GITHUB_ACTIONS
GITHUB_ACTION
GITHUB_REF
GITHUB_REPOSITORY
GITHUB_HEAD_REF
GITHUB_RUN_ID
GITHUB_SHA
COVERAGE_FILE
deps = coverage
commands =
pip install -e '.[dev]'
pytest --cov --cov-report=xml
"""