-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
112 lines (99 loc) · 2.7 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
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
# General info
name = "dymoval"
version = "0.8.6"
# Requirements
requires-python = ">=3.10"
# Dependencies
dependencies = [
"pandas",
"matplotlib",
"scipy",
"control",
"pathlib",
"numpy",
"tomli",
"h5py",
]
# Other metadata
authors = [
{ name="Ubaldo Tiberi", email="[email protected]" },
{ name="Ubaldo Tiberi", email="[email protected]" },
]
description = "Dymoval is a Python package for validating models and analyzing datasets."
readme = "README.md"
license = { file="LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
keywords = [
"data-analysis",
"modeling",
"model validation",
"dataset",
"data"
]
# dynamic = ["version"] This may be useful once I will learn how to deal with versions
# For developers
[project.optional-dependencies]
build = ["pdm"]
dev = [
"sphinx",
"furo",
"sphinx-toolbox",
"sphinx-autodoc-typehints",
"pytest",
"mypy",
"black",
"flake8",
"coverage",
"grayskull",
]
[project.urls]
"Homepage" = "https://github.com/VolvoGroup/dymoval"
"Documentation" = "https://volvogroup.github.io/dymoval/"
"Bug Tracker" = "https://github.com/VolvoGroup/dymoval/issues"
# ===================================
# PDM settings
# ===================================
# [tool.pdm.build]
# includes = ["src", "tutorial"]
# ===================================
# Formatting, type check, unit-test
# ===================================
# black
[tool.black]
target-version = ['py310']
line-length = 80
exclude = '''/(manual_tests|docs)/'''
# mypy
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
show_error_codes = true
no_implicit_optional = true
warn_return_any = true
warn_unused_ignores = true
# For now, mypy is only run on ./src
# The following two shall be module specific
ignore_missing_imports = true
disable_error_code = ["name-defined"]
[[tool.mypy.overrides]]
module = [
"dataset",
"validation",
"utils",
"config",
]
# pytest
[tool.pytest.ini_options]
norecursedirs = ["manual_tests"] # Exclude folders
markers = [
"plots: marks SLOW plot tests (deselect with '-m \"not plots\"')",
"open_tutorial: marks the open_tutorial (which opens VSCode all the times)"
]