Skip to content

Commit

Permalink
Change: Update supported Python versions
Browse files Browse the repository at this point in the history
Officially drop Python 3.7 and 3.8 and support Python 3.12.
bjoernricks committed Oct 18, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 68ef77f commit ee2b58e
Showing 3 changed files with 257 additions and 419 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
@@ -11,11 +11,10 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
name: Linting
uses: greenbone/workflows/.github/workflows/lint-python.yml@main
with:
@@ -26,11 +25,10 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
name: Run tests
uses: greenbone/workflows/.github/workflows/test-python.yml@main
with:
637 changes: 238 additions & 399 deletions poetry.lock

Large diffs are not rendered by default.

33 changes: 17 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -7,7 +7,10 @@ name = "autohooks-plugin-ruff"
version = "23.6.2.dev1"
description = "An autohooks plugin for python code formatting via ruff"
license = "GPL-3.0-or-later"
authors = ["Greenbone AG <info@greenbone.net>", "jorgegomzar <jorge.gomzar@gmail.com"]
authors = [
"Greenbone AG <info@greenbone.net>",
"jorgegomzar <jorge.gomzar@gmail.com",
]
readme = "README.md"
homepage = "https://github.com/greenbone/autohooks-plugin-ruff"
repository = "https://github.com/greeenbone/autohooks-plugin-ruff"
@@ -18,28 +21,21 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.7",
"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",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "autohooks" },
{ include = "poetry.lock", format = "sdist"},
]
keywords = [
"git",
"formatting",
"linting",
"hooks",
"ruff",
{ include = "poetry.lock", format = "sdist" },
]
keywords = ["git", "formatting", "linting", "hooks", "ruff"]

[tool.poetry.dependencies]
python = ">=3.7.2,<4.0.0"
python = "^3.9"
ruff = ">=0.0.272"
autohooks = ">=23.4.0"

@@ -49,15 +45,20 @@ autohooks = ">=23.4.0"
autohooks-plugin-black = ">=23.4.0"
autohooks-plugin-isort = ">=23.3.0"
autohooks-plugin-pylint = ">=23.4.0"
coverage = "^7.2.7"
coverage = ">=7.2.7"

[tool.autohooks]
mode = "poetry"
pre-commit = ["autohooks.plugins.black", "autohooks.plugins.isort", "autohooks.plugins.pylint", "autohooks.plugins.ruff"]
pre-commit = [
"autohooks.plugins.black",
"autohooks.plugins.isort",
"autohooks.plugins.pylint",
"autohooks.plugins.ruff",
]

[tool.black]
line-length = 80
target-version = ['py39', 'py310', 'py311']
target-version = ['py39', 'py310', 'py311', 'py312']
exclude = '''
/(
\.git
@@ -79,7 +80,7 @@ line_length = 80
version-module-file = "autohooks/plugins/ruff/__version__.py"

[tool.ruff]
exclude = [".pytest_cache",".venv"]
exclude = [".pytest_cache", ".venv"]
line-length = 80
ignore = ["E731"]

0 comments on commit ee2b58e

Please sign in to comment.