Skip to content

fix: rearrange functions [frappe]

Bot Dokos requested to merge ft-commit-8c61fe2ca5cbee into develop

From: https://github.com/frappe/erpnext/commit/8c61fe2ca5cbee253784917ec90c5e01c6c0b8a7
Date: 2023-10-17 20:36:09+05:30
By: Deepesh Garg

fix: rearrange functions

This is a commit that is not part of any pull request.



Diagnostics

pre-commit failed for source commit: 8c61fe2ca5cbee253784917ec90c5e01c6c0b8a7
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 367
        					warehouse_account_name = warehouse_account[d.warehouse]["account"]
        				^
    IndentationError: unexpected indent

flake8...................................................................Failed
- hook id: flake8
- exit code: 1

erpnext/stock/doctype/purchase_receipt/purchase_receipt.py:367:6: E999 IndentationError: unexpected indent



Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-commit-8c61fe2ca5cbee

# 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

Merge request reports