-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
pyproject.toml
102 lines (86 loc) · 2.19 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
[tool.poetry]
name = "klib"
version = "1.1.2"
description = "Customized data preprocessing functions for frequent tasks."
authors = ["Andreas Kanz <andreas@akanz.de>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "klib", from = "src" }]
include = [{ path = "tests", format = "sdist" }]
[tool.poetry.dependencies]
Jinja2 = "^3.0.3"
matplotlib = "^3.4.3"
numpy = "^1.21.6"
pandas = ">=1.2,<3.0"
plotly = "^5.2.2"
python = ">=3.8.0,<4.0.0"
scipy = "^1.7.3"
screeninfo = "^0.8.1"
seaborn = ">=0.11.2"
[tool.poetry.dev-dependencies]
ipykernel = "^6.29.4"
mypy = "^1.10.0"
nbformat = "^5.10.4"
pre-commit = "^3.5.0"
pydocstyle = "^6.2.3"
pytest = "^8.2.1"
pytest-cov = "^5.0.0"
ruff = ">=0.1.5"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pydocstyle]
match_dir = "[^(?!tests|\\.)].*" # not tests and not a folder that starts with a dot
match = "^(?!(__init__|setup)).*py$" # py files which do not start with __init__ or setup
convention = "numpy"
# Testing
[tool.pytest.ini_options]
required_plugins = ["pytest-cov"]
addopts = """
--color=yes \
--code-highlight=yes \
--verbose \
--junitxml=tests/reports/junit.xml \
--cov-report term-missing:skip-covered \
--cov-report=xml:tests/reports/coverage.xml \
--cov-report=html:tests/reports/htmlcov \
--cov=. -ra"""
minversion = "6.0"
testpaths = ["tests/"]
[tool.coverage.run]
omit = ["tests/*", "*/test_*.py", "*/__*__.py", "*_version.py"]
branch = true
data_file = "tests/.coverage"
[tool.coverage.report]
fail_under = 0
[tool.ruff]
fix = true
lint.unfixable = [
"C408",
"D200",
"D400",
"D415",
"E712",
"E731",
"ERA001",
"F841",
"PT001",
"PT004",
"PT022",
"PT023",
"RUF100",
"SIM108",
]
lint.select = ["ALL"]
lint.ignore = ["T201", "FBT001", "FBT002", "PLR0913", "D213", "D203", "UP038"]
line-length = 88
target-version = "py310"
[tool.ruff.lint.mccabe]
max-complexity = 8
[tool.ruff.lint.per-file-ignores]
"test**" = ["ANN", "D", "S101", "PLR", "PT009", "PT011", "N", "E501"]
"**/scripts/**" = ["ANN", "D", "S101", "PLR", "PT009", "PT011", "N", "E501"]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
known-first-party = ["twoex", "tx"]