-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (104 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
115 lines (104 loc) · 3.19 KB
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
[project]
name = "spdx-diff"
dynamic = ["version"]
description = "SPDX3 SBOM comparison tool for packages, kernel config, and PACKAGECONFIG"
readme = "README.md"
license = {text = "GPL-2.0"}
requires-python = ">=3.10"
authors = [
{name = "Kamel BOUHARA", email = "kamel.bouhara@bootlin.com"}
]
keywords = ["spdx", "sbom", "yocto", "embedded", "linux", "kernel", "packageconfig"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Build Tools",
]
[project.scripts]
spdx-diff = "spdx_diff.cli:main"
[project.urls]
Repository = "https://github.com/bootlin/spdx-diff"
Documentation = "https://github.com/bootlin/spdx-diff/blob/main/README.md"
"Bug Tracker" = "https://github.com/bootlin/spdx-diff/issues"
Changelog = "https://github.com/bootlin/spdx-diff/blob/main/CHANGELOG.md"
[dependency-groups]
test = [
"pytest>=8.0.0",
"pytest-cov>=7.0.0",
]
lint = [
"ruff==0.14.14",
"mypy>=1.18",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/spdx_diff/__init__.py"
[tool.hatch.build.targets.wheel]
only-packages = true
packages = ["src/spdx_diff"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"YTT", # flake8-2020
"ANN", # flake8-annotations
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"G", # flake8-logging-format
"PIE", # flake8-pie
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"PTH", # flake8-use-pathlib
"FLY", # flynt
"I", # isort
"N", # pep8-naming
"PERF", # Perflint
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"PL", # Pylint
"UP", # pyupgrade
"FURB", # refurb
"RUF", # Ruff-specific rules
"TRY", # tryceratops
"D",
]
ignore = [
"ANN401", # any-type
"COM812", # missing-trailing-comma
"D203", # incorrect-blank-line-before-class
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
"UP009", # utf8-encoding-declaration
"TRY003", # raise-vanilla-args
"D100", # undocumented-public-module
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D200", # unnecessary-multiline-docstring
"D212", # multi-line-summary-first-line
"D401", # non-imperative-mood
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.mypy]
strict = true
[tool.coverage.run]
patch = ["subprocess"]