forked from mechmotum/symbrim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (78 loc) · 2.23 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
[tool.poetry]
name = "brim"
version = "0.0.1"
description = "A Modular and Extensible Open-Source Framework for Creating Bicycle-Rider Models"
authors = ["TJStienstra <T.J.Stienstra@student.tudelft.nl>"]
license = "CC0-1.0"
readme = "README.md"
repository = "https://github.com/mechmotum/brim"
[tool.poetry.dependencies]
python = "^3.9"
sympy = {git = "https://github.com/sympy/sympy.git"}
symmeplot = {version = "^0.2.0", optional = true}
bicycleparameters = {git = "https://github.com/moorepants/BicycleParameters.git", optional = true}
plotly = {version = "^5.14.1", optional = true}
pandas = {version = "^2.0.0", optional = true}
[tool.poetry.group.lint.dependencies]
ruff = "^0.3.4"
pre-commit = "^3.6.0"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.2"
coverage = {extras = ["toml"], version = "^7.2.1"}
pytest-cov = "^4.0.0"
numpy = "^1.24.2"
pytest-benchmark = "^4.0.0"
pytest-mock = "^3.12.0"
[tool.poetry.group.docs.dependencies]
sphinx = "^6.2.1"
furo = "^2023.3.27"
sphinxcontrib-bibtex = "^2.5.0"
nbsphinx = "^0.9.3"
rpds-py = "^0.10.3"
ipykernel = "^6.25.2"
nbstripout = "^0.6.1"
[tool.poetry.extras]
plotting = ["symmeplot"]
parametrize = ["bicycleparameters", "plotly", "pandas"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py39"
line-length = 88
lint.select = ["A", "B", "C", "D", "E", "F", "I", "N", "Q", "W", "NPY", "RUF", "SIM",
"TID", "T20", "UP"]
lint.ignore = ["A003", "C901", "D105", "D203", "D213"]
output-format = "full"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "S101"]
"benchmarks/*" = ["D", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
python_version = "3.8"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
branch = true
source = ["brim"]
[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"with contextlib.suppress.ImportError.:",
"def get_param_values",
"def set_plot_objects"
]
omit = [
"src/brim/utilities/benchmarking.py",
"src/brim/utilities/parametrize.py",
"src/brim/utilities/plotting.py",
"src/brim/utilities/testing.py"
]