forked from int-brain-lab/bpod-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (122 loc) · 3.74 KB
/
pyproject.toml
File metadata and controls
140 lines (122 loc) · 3.74 KB
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
[build-system]
build-backend = "pdm.backend"
requires = ["pdm-backend"]
[project]
authors = [{ name = "Florian Rau", email = "bimac@users.noreply.github.com" }]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dependencies = ["numpy", "pandas", "pydantic>=2.11", "pyserial>=3.5", "graphviz>=0.20.3"]
description = "Python package for interfacing with the Bpod finite state machine"
dynamic = ["version"]
license = { text = "MIT" }
name = "bpod-core"
readme = "README.md"
requires-python = ">=3.10"
[dependency-groups]
doc = [
"myst-parser>=4.0.1",
"sphinx-autobuild>=2024.10.3",
"sphinx-autodoc-typehints>=3.0.1",
"sphinx-copybutton>=0.5.2",
"sphinx-rtd-theme>=3.0.2",
"sphinx>=8.1.3",
"sphinx-jsonschema>=1.19.1",
]
test = [
"pytest-cov>=6.1.1",
"pytest>=8.3.5",
"ruff>=0.11.5",
"tox>=4.25.0",
"tox-pdm>=0.7.2",
]
typing = ["mypy>=1.15.0", "types-pyserial>=3.5.0.20250326"]
[project.urls]
Changelog = "https://github.com/int-brain-lab/bpod-core/blob/main/CHANGELOG.md"
Documentation = "https://int-brain-lab.github.io/bpod-core/"
Homepage = "https://github.com/int-brain-lab/bpod-core"
Issues = "https://github.com/int-brain-lab/bpod-core/issues"
Repository = "https://github.com/int-brain-lab/bpod-core.git"
[tool.pdm]
distribution = true
[tool.pdm.build]
excludes = ["docs/source/api"]
source-includes = ["docs/source/", "tests/"]
[tool.pdm.version]
path = "bpod_core/__init__.py"
source = "file"
[tool.pdm.scripts]
docs = "sphinx-build ./docs/source ./docs/build"
[tool.ruff]
include = ["bpod_core/**/*.py", "tests/**/*.py"]
target-version = "py310"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in puclic method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D401", # First line of docstring should be in imperative mood
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"PIE", # flake8-pie
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TC", # flake8-type-checking
"E", # pycodestyle Error
"W", # pycodestyle Warning
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"PL", # pylint
"UP", # pyupgrade
"D", # pydocstyle
"FURB", # refurb
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
exclude = "^(?!bpod_core).*$"
files = "bpod_core/**/*.py"
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
[tool.coverage.run]
source_pkgs = [ "bpod_core" ]
relative_files = true
[tool.pytest.ini_options]
addopts = "-q -ra --cov-report xml --cov-report html --cov=bpod_core"
console_output_style = "count"
minversion = "6.0"
testpaths = ["tests/"]
[tool.tox]
env_list = ["typing", "clean", "py310", "py311", "py312", "py313"]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
groups = ["test"]
commands = [["pytest", "--cov", "--cov-append"]]
[tool.tox.env.clean]
description = "erase coverage"
skip_install = true
commands = [["coverage", "erase"]]
[tool.tox.env.typing]
description = "run type check on code base"
groups = ["typing"]
commands = [["mypy", "-p", "bpod_core"]]