From b3948a6efad8120310502ca5a30c12b16e3b43f2 Mon Sep 17 00:00:00 2001 From: Dowon Date: Mon, 30 Oct 2023 22:01:59 +0900 Subject: [PATCH] chore: add ruff rules --- .pre-commit-config.yaml | 4 ++-- adetailer/__version__.py | 2 +- adetailer/traceback.py | 2 +- pyproject.toml | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a164f4..d1b304b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,12 +8,12 @@ repos: - id: mixed-line-ending - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.292" + rev: "v0.1.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.9.1 + rev: 23.10.1 hooks: - id: black diff --git a/adetailer/__version__.py b/adetailer/__version__.py index 41c558b..d925798 100644 --- a/adetailer/__version__.py +++ b/adetailer/__version__.py @@ -1 +1 @@ -__version__ = "23.10.2.dev0" +__version__ = "23.11.0.dev0" diff --git a/adetailer/traceback.py b/adetailer/traceback.py index e3fcd9e..c13a4b5 100644 --- a/adetailer/traceback.py +++ b/adetailer/traceback.py @@ -92,7 +92,7 @@ def library_version(): for lib in libraries: try: d[lib] = version(lib) - except Exception: + except Exception: # noqa: PERF203 d[lib] = "Unknown" return d diff --git a/pyproject.toml b/pyproject.toml index b2407ed..31b6342 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,8 +26,10 @@ select = [ "I001", "ISC", "N", + "PERF", "PIE", "PT", + "PTH", "RET", "RUF", "SIM",