-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (101 loc) · 2.79 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
113
114
115
116
117
118
119
120
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm[toml]>=3.4",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "raillabel-providerkit"
description = "A devkit for working with recorded and annotated train ride data from Deutsche Bahn."
readme = "README.md"
requires-python = ">=3.10, <3.14"
license = { text = "Apache-2.0" }
authors = [
{ name = "DB InfraGO AG" },
]
keywords = []
classifiers = [
"Development Status :: 1 - Planning",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"jsonschema>=4.4.0",
"fastjsonschema>=2.16.2",
"raillabel==4.1.0",
"pyyaml>=6.0.0",
"numpy>=1.24.4",
"pydantic<3.0.0",
]
[project.urls]
Homepage = "https://github.com/DSD-DBS/raillabel-providerkit"
Documentation = "https://dsd-dbs.github.io/raillabel-providerkit"
[project.optional-dependencies]
docs = [
"furo",
"sphinx",
"sphinx-copybutton",
"tomli; python_version<'3.14'",
]
test = [
"pytest",
"pytest-cov",
"json5"
]
[tool.ruff]
line-length = 101
target-version = "py310"
[tool.ruff.lint]
exclude = ["tests/*", "docs/*"]
select = ["ALL"]
ignore = [
"COM812", # conflicts with ruff formatter
"D100", # imo no docstrings are necessary in public modules
"D107", # __init__ docstrings are not necessary
"D203", # incompatible with D211
"D213", # incompatible with D212
"D413", # not relevant when using google or numpy docstring style
"FBT001", # flags in functions are not bad practice
"FBT002", # flags in functions are not bad practice
"ISC001", # conflicts with ruff formatter
"TCH001", # adds hard to understand compexity without providing a benefit for smaller projects
"TCH002", # same as TCH001
"TCH003", # same as TCH001
"SIM103", # less readable in some cases imo
]
[tool.mypy]
check_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_unreachable = true
python_version = "3.12"
ignore_missing_imports = true
disable_error_code = ["call-arg"]
exclude = ["tests/*"]
[tool.pytest.ini_options]
addopts = """
--strict-config
--strict-markers
"""
testpaths = ["tests"]
xfail_strict = true
[tool.setuptools]
platforms = ["any"]
zip-safe = false
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.setuptools.packages.find]
exclude = ["LICENSES"]
[tool.setuptools_scm]
# This section must exist for setuptools_scm to work