-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
99 lines (86 loc) · 2.27 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
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
#
# SPDX-License-Identifier: Apache-2.0
[project]
name = "opossum-file"
version = "0.1"
description = "A cli tool for handling Opossum files"
requires-python = ">=3.13,<4"
readme = "README.md"
license = { file = "LICENSE" }
dependencies = ["click>=8.1.8,<9", "packageurl-python>=0.16.0", "pydantic>=2.10.6"]
[project.urls]
Repository = "https://github.com/opossum-tool/opossum-file"
[project.scripts]
opossum-file = "opossum_lib.cli:opossum_file"
[dependency-groups]
test = ["pytest>=8.3.5,<9", "faker>=37.0.1"]
dev = [
"mypy>=1.15.0",
"pre-commit>=4.2.0",
"ruff>=0.11.0",
"import-linter>=2.3",
"mdformat>=0.7.22",
"mdformat-config>=0.2.1",
"mdformat-gfm>=0.4.1",
"reuse>=5.0.2",
"taskipy>=1.14.1",
"pyinstaller>=6.12.0"
]
[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'
plugins = ["pydantic.mypy"]
[[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",
# naming
"N",
]
extend-select = ["E501"]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
[tool.taskipy.settings]
cwd = "."
runner = "uv run"
[tool.taskipy.tasks]
lint = "task lint-python && task lint-imports && task reuse"
lint-fix = "task lint-python-fix && task lint-imports && task reuse"
format = "task format-python && task format-markdown"
format-fix = "task format-python-fix && task format-markdown-fix"
verify = "task lint && task format && task typecheck && task test"
verify-fix = "task lint-fix && task format-fix && task typecheck && task test"
lint-python = "ruff check"
lint-python-fix = "ruff check --fix"
reuse="reuse lint"
lint-imports = "lint-imports"
format-python = "ruff format --check"
format-python-fix = "ruff format"
format-markdown = "mdformat ."
format-markdown-fix = "mdformat . --check"
typecheck="python -m mypy src/ tests/"
test="pytest"