Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (67 loc) · 1.52 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (67 loc) · 1.52 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
[tool.poetry]
name = "oscilloscopy"
description = "A Python package to parse oscilloscope data."
authors = ["Erik van Weelderen", "erikvanweelderen@hotmail.nl"]
version = "0.1.0"
readme = "README.md"
license = "LICENSE"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
homepage = "https://github.com/Magmoc/oscilloscopy"
[tool.poetry.dependencies]
python = "^3.12"
pydantic = "*"
pandas = "*"
[tool.poetry.group.dev.dependencies]
pytest = "*"
ruff = "*"
mypy = "*"
pytest-cov = "*"
build = "^1.2.2.post1"
twine = "^6.0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Testing
[tool.poetry.group.test.dependencies]
pytest = "^8.2.0"
[tool.pytest.ini_options]
minversion = "6.0"
pythonpath = "src/"
testpaths = [
"tests/*",
]
# Typechecking
[tool.mypy]
python_version = "3.12"
disallow_untyped_defs = true
ignore_missing_imports = true
warn_unreachable = true
follow_imports = "silent"
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
# Formatting and linting
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules
select = [
"E",
"W",
"F",
"N",
"I",
]
ignore = [
"D106",
"D107",
"D203", # Had to choose between D203 and D211
"D213", # Had to choose between D212 and D213
]
[tool.ruff.lint.per-file-ignores]
"src/*/tests.py" = ["D100"] # Ignore docstring for tests modules.