chore: rearrange functions [frappe]
From: https://github.com/frappe/erpnext/commit/7f1d916f04e0129136137cd0dc52b142a5ba0f51
Date: 2023-10-18 08:59:28+05:30
By: Deepesh Garg
chore: rearrange functions
This is a commit that is not part of any pull request.
Diagnostics
pre-commit failed for source commit: 7f1d916f04e0129136137cd0dc52b142a5ba0f51
Check python ast.........................................................Failed
- hook id: check-ast
- exit code: 1
erpnext/stock/doctype/purchase_receipt/purchase_receipt.py: failed parsing with CPython 3.10.13:
Traceback (most recent call last):
File "/root/.cache/pre-commit/repojpsxqxbe/py_env-python3.10/lib/python3.10/site-packages/pre_commit_hooks/check_ast.py", line 20, in main
ast.parse(f.read(), filename=filename)
File "/usr/local/lib/python3.10/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "erpnext/stock/doctype/purchase_receipt/purchase_receipt.py", line 396
if (
^
IndentationError: unexpected indent
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
erpnext/stock/doctype/purchase_receipt/purchase_receipt.py:396:6: E999 IndentationError: unexpected indent
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-commit-7f1d916f04e012
# Make changes then rebase
git rebase -i upstream/develop --reapply-cherry-picks
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease