-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
155 lines (139 loc) · 3 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
[build-system]
requires = [
"hatchling<=1.21.0",
"setuptools-git-versioning",
]
build-backend = "hatchling.build"
[tool.setuptools-git-versioning]
enabled = true
[project]
name = "EasyImaging"
dynamic = ["version"]
description = "Python package for bragg-edge analysis"
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.12"
dependencies = [
"easyscience>=0.6.0",
"scipp>=23.12.0",
]
[project.optional-dependencies]
dev = [
"build",
"codecov>=2.1.11",
"coverage",
"coveralls",
"flake8>=6.0.0",
"ipykernel",
"jupyter>=1.0.0",
"jupyterlab",
"plopp",
"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.easyimaging.org"
documentation = "https://docs.easyimaging.org"
[tool.hatch.version]
path = "src/easyimaging/__version__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
packages = ["src"]
[tool.hatch.build.targets.wheel]
packages = ["src/easyimaging"]
[tool.coverage.run]
source = ["src/easyimaging"]
[tool.github.info]
organization = 'easyScience'
repo = "easyimaging"
[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
"""