-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
134 lines (124 loc) · 3.7 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["setuptools>=65.0", "setuptools-scm>=7.0"]
build-backend = "setuptools.build_meta"
[project]
name = "komodo"
authors = [{ name="Equinor ASA", email="[email protected]" },]
description = "Komodo is a software distribution system."
dynamic = ["version"]
requires-python = ">=3.8"
license = {file = "LICENSE"}
readme = "README.md"
classifiers = [
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
dependencies = [
"importlib_metadata",
"jinja2",
"packaging",
"PyGithub >= 1.55",
"pysnyk",
"PyYAML",
"requests",
"urllib3<2; '.el7.' in platform_release", #Pinned under v2 due to RHEL7 incompability
"urllib3; '.el7.' not in platform_release",
"ruamel.yaml",
"pkginfo",
]
[project.optional-dependencies]
dev = [
"furo",
"myst_parser",
"pylint",
"pytest",
"ruff",
"sphinx",
"sphinxcontrib-apidoc",
"types-pyyaml"
]
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools_scm]
write_to = "komodo/_version.py"
[project.scripts]
kmd = "komodo.cli:cli_main"
komodo-check-pypi = "komodo.check_up_to_date_pypi:main"
komodo-check-symlinks = "komodo.symlink.sanity_check:sanity_main"
komodo-clean-repository = "komodo.release_cleanup:main"
komodo-create-symlinks = "komodo.symlink.create_links:symlink_main"
komodo-insert-proposals = "komodo.insert_proposals:main"
komodo-lint = "komodo.lint:lint_main"
komodo-lint-maturity = "komodo.lint_maturity:main"
komodo-lint-package-status = "komodo.lint_package_status:main"
komodo-lint-symlink-config = "komodo.lint_symlink_config:main"
komodo-lint-upgrade-proposals = "komodo.lint_upgrade_proposals:main"
komodo-non-deployed = "komodo.deployed:deployed_main"
komodo-post-messages = "komodo.post_messages:main"
komodo-show-version = "komodo.show_version:main"
komodo-snyk-test = "komodo.snyk_reporting:main"
komodo-suggest-symlinks = "komodo.symlink.suggester.cli:main"
komodo-transpiler = "komodo.release_transpiler:main"
komodo-check-unused = "komodo.check_unused_package:main"
[tool.pylint.messages_control]
disable = [
"bad-inline-option",
"consider-using-sys-exit",
"deprecated-pragma",
"duplicate-code",
"file-ignored",
"fixme",
"line-too-long",
"locally-disabled",
"logging-not-lazy",
"logging-fstring-interpolation", # Do not remove; it greatly decreases readability
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-return",
"protected-access",
"raise-missing-from",
"raw-checker-failed",
"redefined-outer-name",
"suppressed-message",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-locals",
"too-many-statements",
"use-a-generator",
"use-implicit-booleaness-not-comparison",
"use-symbolic-message-instead",
"useless-object-inheritance",
"too-many-lines",
"too-many-positional-arguments",
]
[tool.pylint.MASTER]
ignore-paths = [
'^.*\\_version.py'
]
[tool.ruff]
src = ["src"]
line-length = 88
[tool.ruff.lint]
select = [
"W", # pycodestyle
"I", # isort
"B", # flake-8-bugbear
"SIM", # flake-8-simplify
"F", # pyflakes
"UP", # pyupgrade
"PERF", # perflint
"C4", # flake8-comprehensions
]
ignore = ["PERF203"]
[tool.ruff.lint.isort]
known-first-party = ["komodo"]