From 1dbba93866c3cb293eae1d39732c9f0ad987fe48 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 15 Jan 2025 00:05:48 +0100 Subject: [PATCH] Upgrade to ruff 0.9.1 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 +-- src/packaging/licenses/__init__.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5e4db59a..068b2e69 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: additional_dependencies: [pyparsing, nox] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + rev: v0.9.1 hooks: - id: ruff args: [ --fix ] diff --git a/pyproject.toml b/pyproject.toml index 985fd180..12db2105 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ extend-select = [ ] ignore = [ "B027", + "F821", "N818", "RUF003", "RUF012", @@ -95,6 +96,4 @@ ignore = [ "Q003", "COM812", "COM819", - "ISC001", - "ISC002", ] diff --git a/src/packaging/licenses/__init__.py b/src/packaging/licenses/__init__.py index 569156d6..6f7f9e62 100644 --- a/src/packaging/licenses/__init__.py +++ b/src/packaging/licenses/__init__.py @@ -37,8 +37,8 @@ from packaging.licenses._spdx import EXCEPTIONS, LICENSES __all__ = [ - "NormalizedLicenseExpression", "InvalidLicenseExpression", + "NormalizedLicenseExpression", "canonicalize_license_expression", ]