diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b826c4..c056b80 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -16,18 +16,18 @@ repos: - id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/ikamensh/flynt/ - rev: 1.0.1 + rev: 1.0.6 hooks: - id: flynt - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort args: [--profile, black] @@ -41,7 +41,7 @@ repos: # args: [--config-file, setup.cfg] - repo: https://github.com/MarcoGorelli/auto-walrus - rev: 0.3.4 + rev: 0.4.1 hooks: - id: auto-walrus @@ -52,20 +52,20 @@ repos: args: [--mapping, '2', --sequence, '2', --offset, '0'] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.2 hooks: - id: codespell args: [--toml, pyproject.toml] additional_dependencies: [tomli] -- repo: https://github.com/psf/black - rev: 24.10.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.0 hooks: - id: black args: [--config, pyproject.toml] - repo: https://github.com/pycqa/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 args: [--config, .flake8] diff --git a/file_tree_check/main.py b/file_tree_check/main.py index d3649bc..fb8204e 100644 --- a/file_tree_check/main.py +++ b/file_tree_check/main.py @@ -564,19 +564,15 @@ def main(): try: pars.search_expression = re.compile(pars.search_expression) except TypeError as e: - logger.warning( - f"Search Criteria {pars.search_expression} \ - is invalid, resuming without criteria: {e}" - ) + logger.warning(f"Search Criteria {pars.search_expression} \ + is invalid, resuming without criteria: {e}") pars.search_expression = None configuration = Configuration(pars) - logger.info( - f"Output file paths: Summary: {pars.summary_path},\ + logger.info(f"Output file paths: Summary: {pars.summary_path},\ Tree: {pars.tree_path},\ - CSV: {pars.csv_path}" - ) + CSV: {pars.csv_path}") logger.debug("Launching exploration of target directory.") paths = generate_tree(