-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (112 loc) · 2.54 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (112 loc) · 2.54 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
[tool.poetry]
name = "total-perspective-vortex"
version = "0.1.0"
description = "EEG Brain-Computer Interface pipeline for the Total Perspective Vortex project."
authors = ["raveriss <you@example.com>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "tpv", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
numpy = "^1.26"
pandas = "^2.2"
scipy = "^1.11"
scikit-learn = "^1.3"
mne = "^1.6"
matplotlib = "^3.8"
joblib = "^1.4"
tqdm = "^4.67.1"
urllib3 = "^2.6.3"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3"
pytest-cov = "^5.0"
pytest-timeout = "^2.3"
pytest-randomly = "^3.15"
hypothesis = "^6.112"
mypy = "^1.11"
ruff = "^0.6"
black = "^24.10"
isort = "^5.13"
bandit = "^1.7"
mutmut = "^3.0"
radon = "^6.0"
xenon = "^0.9"
pre-commit = "^4.0"
pip-audit = "^2.7"
coverage = "^7.6"
pyperf = "^2.9.0"
memory-profiler = "^0.61.0"
psrecord = "^1.4"
scalene = "^1.5.51"
py-spy = "^0.4.1"
[tool.black]
line-length = 88
target-version = ["py310"]
extend-exclude = "mutants"
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["mybci", "tpv"]
src_paths = ["src", "scripts", "tests"]
skip = ["mutants", ".venv"]
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = ["mutants", ".venv"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "PL", "C4"]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["mybci", "tpv"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PLR2004", "PLC0415", "B905", "E501", "PLR0913"]
[tool.mutmut]
paths_to_mutate = [
"src/tpv",
"mybci.py",
"scripts",
]
also_copy = ["scripts", "src"]
pytest_add_cli_args = ["-q", "-k", "not latency_benchmark and not benchmark"]
mutate_only_covered_lines = true
[tool.pytest.ini_options]
pythonpath = ["src", ".", ".."]
testpaths = ["tests"]
addopts = [
"-p", "no:launch_testing",
"-p", "no:launch_ros",
"--ignore=mutants",
]
norecursedirs = [
"data",
"mutants",
]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
warn_unused_ignores = true
warn_return_any = true
warn_redundant_casts = true
strict_optional = true
no_implicit_optional = true
show_error_codes = true
pretty = true
ignore_missing_imports = true
files = "src scripts tests"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
source = ["src", "scripts"]
[tool.coverage.report]
omit = [
"mutants/*",
".venv/*",
"*/site-packages/*",
"scripts/import_murphy_issues.py",
"scripts/import_murphy_to_project.py",
"scripts/sync_dataset.py",
]