core(project): updated pyproject structure for formatting/linting

This commit is contained in:
RhodeCode Admin 2024-11-21 21:37:25 +01:00
parent 1149dc9093
commit 3d4c26c911

View file

@ -23,7 +23,7 @@ classifiers = [
'Operating System :: OS Independent',
'Topic :: Software Development :: Version Control',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
[project.entry-points."paste.app_factory"]
@ -65,7 +65,15 @@ dependencies = {file = ["requirements.txt"]}
optional-dependencies.tests = {file = ["requirements_test.txt"]}
[tool.ruff]
lint.select = [
# Line length max same as Black.
line-length = 120
# Assume Python 3.11
target-version = "py311"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
@ -74,17 +82,15 @@ lint.select = [
# isort
"I001"
]
lint.ignore = [
ignore = [
"E501", # line too long, handled by black
]
# Same as Black.
line-length = 120
[tool.ruff.lint.isort]
known-first-party = ["rhodecode"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"