-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
77 lines (68 loc) · 1.96 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
[project]
name = "AirbrakesV2"
description = "Logic for airbrakes as a part of the NASA Student Launch Competition"
requires-python = ">=3.10"
version = "0.1.0"
dependencies = [
"gpiozero",
"pigpio", # Run sudo pigpiod before running the program
"msgspec",
"numpy",
"colorama",
"psutil",
"scipy",
"pandas",
# Installation instructions for the following dependencies can be found in the README:
# "mscl" https://github.com/LORD-MicroStrain/MSCL/blob/master/BuildScripts/buildReadme_Linux.md
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"pre-commit",
]
[tool.setuptools]
packages = ["airbrakes"]
# RUFF:
[tool.ruff]
line-length = 100
target-version = "py312"
show-fixes = true
exclude = ["scripts"]
[tool.ruff.lint]
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203", "ISC001"]
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
"G", "ISC", "PT", "ASYNC", "TCH", "SLOT", "PERF", "PYI", "FLY", "AIR", "Q", "INP",
"W", "YTT", "DTZ", "ARG", "T20", "FURB", "D100", "D101", "D300", "D418",
"D419", "S", "NPY"]
[tool.ruff.lint.per-file-ignores]
"main.py" = ["T201"]
"airbrakes/mock/display.py" = ["T201"]
"tests/*.py" = ["T20", "S101", "D100", "ARG001", "RUF012"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:This process:DeprecationWarning", # ignore warning about fork()
"ignore:To reduce servo jitter", # ignore warning about pigpio
"ignore:Could not import MSCL", # ignore warning about MSCL being not installed
]
[tool.coverage.run]
branch = true
source = ["airbrakes"]
omit = [
"*/tests/*",
"*/site-packages/*",
"airbrakes/mock/*"
]
[tool.coverage.report]
skip_covered = false
skip_empty = true
exclude_lines = [
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == \"__main__\":"
]
show_missing = true
fail_under = 80