Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: 8.0.1
hooks:
- id: isort
args: [--profile, black]
Expand All @@ -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

Expand All @@ -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.3.1
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]
Expand Down
12 changes: 4 additions & 8 deletions file_tree_check/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading