fix: lstrip for query writes detection by Don-Leopardo [frappe] PR#26180
From: https://github.com/frappe/frappe/pull/26180
Date: 2024-04-30 09:39:22-03:00
- fix: lstrip for query writes detection (#26180)
Diagnostics
pre-commit failed for source commit: c0e779998d6c6b31ee05a9c61f39eb35289d3dcd
Run ruff linter..........................................................Failed
- hook id: ruff
- exit code: 1
frappe/database/database.py:66:21: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
frappe/database/database.py:67:22: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
frappe/database/database.py:69:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Found 3 errors.
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-26180
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-26180
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease