# HG changeset patch # User RhodeCode Admin # Date 2024-11-21 20:37:25 # Node ID 83572a1bd4a0ee10c9d7b60dd7b245c8608c8d29 # Parent ad0048ebcd9d5e8220fdb79421c444ac62669c53 core(project): updated pyproject structure for formatting/linting diff --git a/pyproject.toml b/pyproject.toml --- a/pyproject.toml +++ b/pyproject.toml @@ -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.tx 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"