-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
87 lines (76 loc) · 2.58 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
[tool.poetry]
name = "troubadix"
version = "24.11.1.dev1"
description = "A linting and QA check tool for NASL files"
authors = ["Greenbone <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
repository = "https://github.com/greenbone/troubadix"
homepage = "https://github.com/greenbone/troubadix"
# Full list: https://pypi.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{ include = "troubadix" }, { include = "tests", format = "sdist" }]
[tool.poetry.dependencies]
python = "^3.10"
pontos = ">=22.7,<25.0"
codespell = "^2.0.0"
python-magic = "^0.4.25"
chardet = ">=4,<6"
validators = "^0.34.0"
gitpython = "^3.1.31"
charset-normalizer = "^3.2.0"
[tool.poetry.group.dev.dependencies]
autohooks = ">=21.7.0"
autohooks-plugin-black = ">=21.12.0"
ruff = ">=0.5.6,<0.9.0"
autohooks-plugin-ruff = "^24.1.0"
[tool.black]
line-length = 80
target-version = ['py310', 'py311', 'py312']
exclude = '''
/(
\.git
| \.hg
| \.venv
| \.circleci
| \.github
| \.vscode
| _build
| build
| dist
| docs
)/
'''
[tool.ruff]
line-length = 100
target-version = "py310"
lint.extend-select = ["I", "E", "W"]
[tool.autohooks]
mode = "poetry"
pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.ruff']
[tool.pontos.version]
version-module-file = "troubadix/__version__.py"
[tool.poetry.scripts]
troubadix = 'troubadix.troubadix:main'
troubadix-changed-oid = 'troubadix.standalone_plugins.changed_oid:main'
troubadix-last-modification = 'troubadix.standalone_plugins.last_modification:main'
troubadix-version-updated = 'troubadix.standalone_plugins.version_updated:main'
troubadix-no-solution = 'troubadix.standalone_plugins.no_solution:main'
troubadix-changed-packages = 'troubadix.standalone_plugins.changed_packages.changed_packages:main'
troubadix-changed-cves = 'troubadix.standalone_plugins.changed_cves:main'
troubadix-allowed-rev-diff = 'troubadix.standalone_plugins.allowed_rev_diff:main'
troubadix-file-extensions = 'troubadix.standalone_plugins.file_extensions:main'
troubadix-deprecate-vts = 'troubadix.standalone_plugins.deprecate_vts:main'
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"