diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4b7502..7a75088 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_install_hook_types: [commit-msg, pre-commit] default_stages: [commit, merge-commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -26,28 +26,28 @@ repos: - id: fix-byte-order-marker - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/PyCQA/docformatter - rev: v1.5.0 + rev: v1.7.5 hooks: - id: docformatter additional_dependencies: - docformatter[tomli] - repo: https://github.com/PyCQA/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle exclude: '^tests/' additional_dependencies: - pydocstyle[toml] - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.13 + rev: v1.5.5 hooks: - id: insert-license name: Insert license headers (shell-style comments) @@ -90,7 +90,7 @@ repos: - --comment-style - '..| |' - repo: https://github.com/fsfe/reuse-tool - rev: v1.0.0 + rev: v4.0.3 hooks: - id: reuse - repo: https://github.com/qoomon/git-conventional-commits diff --git a/CHANGELOG.md b/CHANGELOG.md index b4c54d2..68f8695 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,4 +88,4 @@ Release - Introduce support for Python 3.12 ### 3.2.1 -- Fix bug related to Python 3.12 \ No newline at end of file +- Fix bug related to Python 3.12 diff --git a/raillabel/filter/_filter_classes/__init__.py b/raillabel/filter/_filter_classes/__init__.py index a47563f..190e8a8 100644 --- a/raillabel/filter/_filter_classes/__init__.py +++ b/raillabel/filter/_filter_classes/__init__.py @@ -9,7 +9,7 @@ # iterate through the modules in the current package package_dir = str(Path(__file__).resolve().parent) -for (_, module_name, _) in iter_modules([package_dir]): +for _, module_name, _ in iter_modules([package_dir]): # import the module and iterate through its attributes module = import_module(f"{__name__}.{module_name}") diff --git a/raillabel/format/raillabel/_object_annotation.py b/raillabel/format/raillabel/_object_annotation.py index 3061d5a..ec49797 100644 --- a/raillabel/format/raillabel/_object_annotation.py +++ b/raillabel/format/raillabel/_object_annotation.py @@ -157,7 +157,7 @@ def _collect_annotation_classes(): global ANNOTATION_CLASSES package_dir = str(Path(__file__).resolve().parent) - for (_, module_name, _) in iter_modules([package_dir]): + for _, module_name, _ in iter_modules([package_dir]): module = import_module(f"raillabel.format.raillabel.{module_name}") for attribute_name in dir(module): diff --git a/raillabel/load_/loader_classes/__init__.py b/raillabel/load_/loader_classes/__init__.py index a47563f..190e8a8 100644 --- a/raillabel/load_/loader_classes/__init__.py +++ b/raillabel/load_/loader_classes/__init__.py @@ -9,7 +9,7 @@ # iterate through the modules in the current package package_dir = str(Path(__file__).resolve().parent) -for (_, module_name, _) in iter_modules([package_dir]): +for _, module_name, _ in iter_modules([package_dir]): # import the module and iterate through its attributes module = import_module(f"{__name__}.{module_name}")