Skip to content

Commit f0459d8

Browse files
committedNov 18, 2024·
add tomlsort
1 parent 3805516 commit f0459d8

File tree

2 files changed

+89
-83
lines changed

2 files changed

+89
-83
lines changed
 

‎.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ repos:
1919
- id: ruff
2020
args: ["--fix"]
2121
- id: ruff-format
22+
23+
- repo: https://github.com/pappasam/toml-sort
24+
rev: v0.23.1
25+
hooks:
26+
- id: toml-sort-fix
27+
files: pyproject.toml

‎pyproject.toml

+83-83
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,105 @@
11
[build-system]
2-
requires = ["hatchling", "hatch-vcs"]
32
build-backend = "hatchling.build"
3+
requires = ["hatch-vcs", "hatchling"]
44

55
[project]
6-
name = "pyprep"
6+
authors = [{name = "PyPREP developers"}]
7+
classifiers = [
8+
"Intended Audience :: Developers",
9+
"Intended Audience :: Science/Research",
10+
"License :: OSI Approved",
11+
"Operating System :: MacOS",
12+
"Operating System :: Microsoft :: Windows",
13+
"Operating System :: POSIX :: Linux",
14+
"Programming Language :: Python :: 3.10",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python",
19+
"Topic :: Scientific/Engineering",
20+
]
21+
dependencies = [
22+
"mne>=1.3.0",
23+
"numpy>=1.20.2",
24+
"psutil>=5.4.3",
25+
"scipy>=1.6.3",
26+
]
727
description = "PyPREP: A Python implementation of the preprocessing pipeline (PREP) for EEG data."
828
dynamic = ["version"]
9-
authors = [{ name = "PyPREP developers" }]
10-
maintainers = [
11-
{ name = "Stefan Appelhoff", email = "stefan.appelhoff@mailbox.org" },
12-
]
13-
license = { file = "LICENSE" }
14-
readme = { file = "README.rst", content-type = "text/x-rst" }
15-
requires-python = ">=3.9"
1629
keywords = [
17-
"EEG",
18-
"electroencephalography",
19-
"artifact",
20-
"preprocessing",
21-
"data",
22-
"neuroscience",
23-
"neuroimaging",
24-
"mne",
25-
"python",
26-
]
27-
classifiers = [
28-
"Topic :: Scientific/Engineering",
29-
"Intended Audience :: Science/Research",
30-
"Intended Audience :: Developers",
31-
"License :: OSI Approved",
32-
"Operating System :: Microsoft :: Windows",
33-
"Operating System :: POSIX :: Linux",
34-
"Operating System :: MacOS",
35-
"Programming Language :: Python",
36-
"Programming Language :: Python :: 3.9",
37-
"Programming Language :: Python :: 3.10",
38-
"Programming Language :: Python :: 3.11",
39-
"Programming Language :: Python :: 3.12",
30+
"artifact",
31+
"data",
32+
"EEG",
33+
"electroencephalography",
34+
"mne",
35+
"neuroimaging",
36+
"neuroscience",
37+
"preprocessing",
38+
"python",
4039
]
41-
dependencies = [
42-
"numpy>=1.20.2",
43-
"scipy>=1.6.3",
44-
"mne>=1.3.0",
45-
"psutil>=5.4.3"
40+
license = {file = "LICENSE"}
41+
maintainers = [
42+
{email = "stefan.appelhoff@mailbox.org", name = "Stefan Appelhoff"},
4643
]
44+
name = "pyprep"
45+
readme = {content-type = "text/x-rst", file = "README.rst"}
46+
requires-python = ">=3.9"
4747

4848
[project.optional-dependencies]
49-
# Variants with dependencies that will get installed on top of those listed unter
50-
# project.dependencies
51-
52-
# Dependencies for running the test infrastructure
53-
test = [
54-
"build",
55-
"twine",
56-
"ruff",
57-
"isort",
58-
"matplotlib",
59-
"pytest",
60-
"pytest-cov",
61-
"pytest-sugar",
62-
"pre-commit",
63-
]
64-
49+
# Dependencies for developer installations
50+
dev = ["pyprep[test,docs]"]
6551
# Dependencies for building the documentation
6652
docs = [
67-
"matplotlib",
68-
"sphinx>3",
69-
"pydata-sphinx-theme",
70-
"sphinx_gallery",
71-
"sphinx-copybutton",
72-
"numpydoc",
53+
"matplotlib",
54+
"numpydoc",
55+
"pydata-sphinx-theme",
56+
"sphinx-copybutton",
57+
"sphinx>3",
58+
"sphinx_gallery",
59+
]
60+
# Dependencies for running the test infrastructure
61+
test = [
62+
"build",
63+
"isort",
64+
"matplotlib",
65+
"pre-commit",
66+
"pytest",
67+
"pytest-cov",
68+
"pytest-sugar",
69+
"ruff",
70+
"twine",
7371
]
74-
75-
# Dependencies for developer installations
76-
dev = ["pyprep[test,docs]"]
77-
7872

7973
[project.urls]
80-
"Homepage" = "https://pyprep.readthedocs.io/en/latest"
8174
"Bug Tracker" = "https://github.com/sappelhoff/pyprep/issues/"
8275
"Documentation" = "https://pyprep.readthedocs.io/en/latest"
76+
"Homepage" = "https://pyprep.readthedocs.io/en/latest"
8377
"Source Code" = "https://github.com/sappelhoff/pyprep"
8478

85-
[tool.hatch.metadata]
86-
allow-direct-references = true # allow specifying URLs in our dependencies
79+
[tool.coverage.report]
80+
# Regexes for lines to exclude from consideration
81+
exclude_lines = ["if 0:", "if __name__ == .__main__.:", "pragma: no cover"]
82+
83+
[tool.coverage.run]
84+
omit = ["*tests*"]
8785

8886
[tool.hatch.build]
8987
exclude = [
90-
"/.*",
91-
"tests/**",
92-
"/examples",
93-
"/docs",
94-
"/.github/**",
95-
"matprep_artifacts/**",
96-
"matprep_artifacts"
88+
"/.*",
89+
"/.github/**",
90+
"/docs",
91+
"/examples",
92+
"matprep_artifacts",
93+
"matprep_artifacts/**",
94+
"tests/**",
9795
]
9896

97+
[tool.hatch.metadata]
98+
allow-direct-references = true # allow specifying URLs in our dependencies
99+
99100
[tool.hatch.version]
101+
raw-options = {version_scheme = "release-branch-semver"}
100102
source = "vcs"
101-
raw-options = { version_scheme = "release-branch-semver" }
102-
103-
[tool.coverage.run]
104-
omit = ["*tests*"]
105-
106-
[tool.coverage.report]
107-
# Regexes for lines to exclude from consideration
108-
exclude_lines = ["pragma: no cover", "if 0:", "if __name__ == .__main__.:"]
109103

110104
[tool.pytest.ini_options]
111105
addopts = """. --cov=pyprep/ --cov-report=xml --cov-config=pyproject.toml --verbose -s"""
@@ -114,12 +108,18 @@ filterwarnings = [
114108

115109
[tool.ruff]
116110
extend-exclude = [
117-
"matprep_artifacts/**"
111+
"matprep_artifacts/**",
118112
]
119113

120114
[tool.ruff.lint]
121-
select = ["A", "D", "E", "F", "I", "UP", "W"]
122115
ignore = ["A002"]
116+
select = ["A", "D", "E", "F", "I", "UP", "W"]
123117

124118
[tool.ruff.lint.pydocstyle]
125119
convention = "numpy"
120+
121+
[tool.tomlsort]
122+
all = true
123+
ignore_case = true
124+
spaces_before_inline_comment = 2
125+
trailing_comma_inline_array = true

0 commit comments

Comments
 (0)
Please sign in to comment.