-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
77 lines (67 loc) · 1.34 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
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
#
# SPDX-License-Identifier: Apache-2.0
[project]
name = "opossum.lib.py"
version = "0.1"
description = "A library for handling Opossum files with Python"
requires-python = ">=3.13,<4"
readme = "README.md"
license = {file = "LICENSE"}
dependencies = [
"spdx-tools>=0.8.3,<0.9",
"networkx~=3.4",
"click>=8.1.8,<9",
"pydantic>=2.10.5",
]
[project.urls]
Repository = "https://github.com/opossum-tool/opossum.lib.py"
[project.scripts]
opossum-file = "opossum_lib.cli:opossum_file"
[dependency-groups]
test = ["pytest>=8.3.4,<9"]
dev = [
"mypy>=1.14.1,<2",
"pre-commit>=4.0.1,<5",
"ruff>=0.9.1",
]
[tool.uv]
default-groups = [
"test",
"dev",
]
package = true
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
mypy_path='src:tests'
[[tool.mypy.overrides]]
module = [
'networkx.*',
'license_expression.*'
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
extend-select = ["E501"]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true