Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.241"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: "22.3.0"
rev: 24.4.2
hooks:
- id: black
language_version: python3
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ...existing code...
from utils.cache import invalidate_cache


# Add cache reset option when application starts
def initialize_app():
# ...existing code...
Expand Down
4 changes: 1 addition & 3 deletions sync-microservice/app/utils/watcher_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def format_debug_changes(changes: Set[Tuple[Change, str]]) -> str:
change_type = (
"deleted"
if change == Change.deleted
else "modified"
if change == Change.modified
else "added"
else "modified" if change == Change.modified else "added"
)
debug_changes.append(f" - {change_type}: {path}")
indented = "\n".join(" " + line for line in debug_changes)
Expand Down
Loading