(base) gheise@mac mev-inspect-py % git branch 0x-bug 0x-v2 aave-liquidations-v3 aave-zero-bug add-liquidation-addresses add-liquidation-timestamp classifier-helpers coingecko-api compound-tokens compound-v2 * compound-v3 double-arb-bug geth main migrations-fix swapmodel token-decimals (base) gheise@mac mev-inspect-py % git checkout main M mev_inspect/classifiers/specs/compound.py Switched to branch 'main' Your branch is up to date with 'origin/main'. (base) gheise@mac mev-inspect-py % git branch -D compound-v3 Deleted branch compound-v3 (was 9604e01). (base) gheise@mac mev-inspect-py % git checkout -b liquidation-classifiers Switched to a new branch 'liquidation-classifiers' (base) gheise@mac mev-inspect-py % git status On branch liquidation-classifiers Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: mev_inspect/classifiers/specs/aave.py modified: mev_inspect/classifiers/specs/compound.py modified: mev_inspect/inspect_block.py modified: mev_inspect/liquidations.py modified: mev_inspect/schemas/classifiers.py Untracked files: (use "git add ..." to include in what will be committed) .hypothesis/ = no changes added to commit (use "git add" and/or "git commit -a") (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:3: in from mev_inspect.schemas.classifiers import Classifier, ClassifierSpec mev_inspect/schemas/classifiers.py:45: in class LiquidationClassifier(Classifier): mev_inspect/schemas/classifiers.py:55: in LiquidationClassifier ) -> Optional[Liquidation]: E NameError: name 'Liquidation' is not defined command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/aave.py", line 17 E """Inspect list of classified traces and identify liquidation""" E ^ E IndentationError: expected an indented block command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/aave.py", line 47 E ) E ^ E SyntaxError: unmatched ')' command terminated with exit code 4 (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/aave.py", line 26 E continue E ^ E SyntaxError: 'continue' not properly in loop command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS mev_inspect/classifiers/specs/aave.py:10: in class AaveLiquidationClassifier(LiquidationClassifier): mev_inspect/classifiers/specs/aave.py:14: in AaveLiquidationClassifier child_traces: List[Trace] E NameError: name 'List' is not defined command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS mev_inspect/classifiers/specs/aave.py:11: in class AaveLiquidationClassifier(LiquidationClassifier): mev_inspect/classifiers/specs/aave.py:15: in AaveLiquidationClassifier child_traces: List[Trace] E NameError: name 'Trace' is not defined command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS mev_inspect/classifiers/specs/aave.py:12: in class AaveLiquidationClassifier(LiquidationClassifier): mev_inspect/classifiers/specs/aave.py:17: in AaveLiquidationClassifier ) -> Optional[Liquidation]: E NameError: name 'Liquidation' is not defined command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:6: in from .aave import AAVE_CLASSIFIER_SPECS mev_inspect/classifiers/specs/aave.py:13: in class AaveLiquidationClassifier(LiquidationClassifier): mev_inspect/classifiers/specs/aave.py:55: in AaveLiquidationClassifier ) -> Tuple[str, int]: E NameError: name 'Tuple' is not defined command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:9: in from .compound import COMPOUND_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/compound.py", line 5 E LiquidationClassifier, E ^ E SyntaxError: invalid syntax command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:9: in from .compound import COMPOUND_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/compound.py", line 50 E ) E IndentationError: unexpected indent command terminated with exit code 4 (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % ./mev test Running tests Skipping virtualenv creation, as specified in config file. ImportError while loading conftest '/app/tests/conftest.py'. tests/conftest.py:6: in from mev_inspect.classifiers.trace import TraceClassifier mev_inspect/classifiers/trace.py:15: in from .specs import ALL_CLASSIFIER_SPECS mev_inspect/classifiers/specs/__init__.py:9: in from .compound import COMPOUND_CLASSIFIER_SPECS E File "/app/mev_inspect/classifiers/specs/compound.py", line 52 E """Find the call to `seize` in the child traces (successful liquidation)""" E ^ E IndentationError: expected an indented block command terminated with exit code 4 (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 - files were modified by this hook error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 28:50: if not isinstance(trace, DecodedCallTrace) error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py: Cannot parse: 52:4: """Find the call to `seize` in the child traces (successful liquidation)""" reformatted /Users/gheise/mev-inspect-py/mev_inspect/schemas/classifiers.py reformatted /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/aave.py Oh no! 💥 💔 💥 2 files reformatted, 1 file left unchanged, 2 files failed to reformat. isort....................................................................Failed - hook id: isort - files were modified by this hook /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./mev_inspect/schemas/classifiers.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/mev_inspect/schemas/classifiers.py.isorted' -> '/Users/gheise/mev-inspect-py/mev_inspect/schemas/classifiers.py' warn(f"Unable to parse file {file_name} due to {error}") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./mev_inspect/crud/prices.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/mev_inspect/crud/prices.py.isorted' warn(f"Unable to parse file {file_name} due to {error}") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./mev_inspect/classifiers/specs/aave.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/aave.py.isorted' -> '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/aave.py' warn(f"Unable to parse file {file_name} due to {error}") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") Skipped 2 files /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") Fixing /Users/gheise/mev-inspect-py/mev_inspect/schemas/classifiers.py Fixing /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/aave.py /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") Skipped 2 files pylint...................................................................Failed - hook id: pylint - exit code: 2 ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ----------------------------------- Your code has been rated at 8.32/10 -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/classifiers/specs/compound.py:52: error: expected an indented block Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 28:50: if not isinstance(trace, DecodedCallTrace) error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py: Cannot parse: 52:4: """Find the call to `seize` in the child traces (successful liquidation)""" Oh no! 💥 💔 💥 3 files left unchanged, 2 files failed to reformat. isort....................................................................Passed pylint...................................................................Failed - hook id: pylint - exit code: 2 ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 8.32/10 (previous run: 8.32/10, +0.00) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/classifiers/specs/compound.py:52: error: expected an indented block Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py: Cannot parse: 77:38: seize_trace: DecodedCallTrace,, Oh no! 💥 💔 💥 3 files left unchanged, 2 files failed to reformat. isort....................................................................Passed pylint...................................................................Failed - hook id: pylint - exit code: 2 ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 8.32/10 (previous run: 8.32/10, +0.00) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/classifiers/specs/compound.py:77: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 - files were modified by this hook error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash reformatted /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py Oh no! 💥 💔 💥 1 file reformatted, 3 files left unchanged, 1 file failed to reformat. isort....................................................................Failed - hook id: isort - files were modified by this hook /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./mev_inspect/classifiers/specs/compound.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py.isorted' -> '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py' warn(f"Unable to parse file {file_name} due to {error}") Skipped 2 files /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") Fixing /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py Skipped 2 files pylint...................................................................Failed - hook id: pylint - exit code: 6 ************* Module mev_inspect.classifiers.specs.compound mev_inspect/classifiers/specs/compound.py:16:27: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:19:22: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/compound.py:25:57: E0602: Undefined variable '_get_debt_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:32:56: E0602: Undefined variable '_get_received_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:56:39: E0602: Undefined variable 'Classification' (undefined-variable) mev_inspect/classifiers/specs/compound.py:61:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:62:27: E0602: Undefined variable 'DecodeCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:62:8: W0613: Unused argument 'liquidation_trace' (unused-argument) mev_inspect/classifiers/specs/compound.py:78:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:79:27: E0602: Undefined variable 'DecodeCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:87:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:87:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:79:8: W0613: Unused argument 'liquidation_trace' (unused-argument) ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 5.11/10 (previous run: 8.32/10, -3.22) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/liquidations.py:62: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash Oh no! 💥 💔 💥 4 files left unchanged, 1 file failed to reformat. isort....................................................................Passed pylint...................................................................Failed - hook id: pylint - exit code: 6 ************* Module mev_inspect.classifiers.specs.compound mev_inspect/classifiers/specs/compound.py:16:27: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:19:22: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/compound.py:25:57: E0602: Undefined variable '_get_debt_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:32:56: E0602: Undefined variable '_get_received_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:56:39: E0602: Undefined variable 'Classification' (undefined-variable) mev_inspect/classifiers/specs/compound.py:61:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:62:27: E0602: Undefined variable 'DecodeCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:62:8: W0613: Unused argument 'liquidation_trace' (unused-argument) mev_inspect/classifiers/specs/compound.py:78:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:79:27: E0602: Undefined variable 'DecodeCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:87:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:87:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:79:8: W0613: Unused argument 'liquidation_trace' (unused-argument) ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 5.11/10 (previous run: 5.11/10, +0.00) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/liquidations.py:62: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash Oh no! 💥 💔 💥 4 files left unchanged, 1 file failed to reformat. isort....................................................................Failed - hook id: isort - files were modified by this hook /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") Fixing /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./alembic/versions/083978d6e455_create_miner_payments_table.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/alembic/versions/083978d6e455_create_miner_payments_table.py.isorted' warn(f"Unable to parse file {file_name} due to {error}") Skipped 2 files /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/api.py:475: UserWarning: /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py unable to sort due to existing syntax errors warn(f"{actual_file_path} unable to sort due to existing syntax errors") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./mev_inspect/classifiers/specs/compound.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py.isorted' -> '/Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py' warn(f"Unable to parse file {file_name} due to {error}") /Users/gheise/Library/Caches/pypoetry/virtualenvs/mev-inspect-uEL1ukhj-py3.9/lib/python3.9/site-packages/isort/main.py:103: UserWarning: Unable to parse file ./alembic/versions/9b8ae51c5d56_add_swap_arbitrage_join_table.py due to [Errno 2] No such file or directory: '/Users/gheise/mev-inspect-py/alembic/versions/9b8ae51c5d56_add_swap_arbitrage_join_table.py.isorted' warn(f"Unable to parse file {file_name} due to {error}") Skipped 2 files pylint...................................................................Failed - hook id: pylint - exit code: 6 ************* Module mev_inspect.classifiers.specs.compound mev_inspect/classifiers/specs/compound.py:3:0: E0611: No name 'DecodeCallTrace' in module 'mev_inspect.schemas.classifiers' (no-name-in-module) mev_inspect/classifiers/specs/compound.py:17:27: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:20:22: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/compound.py:26:57: E0602: Undefined variable '_get_debt_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:33:56: E0602: Undefined variable '_get_received_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:57:39: E0602: Undefined variable 'Classification' (undefined-variable) mev_inspect/classifiers/specs/compound.py:62:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:70:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:78:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:86:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:86:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:3:0: W0611: Unused DecodeCallTrace imported from mev_inspect.schemas.classifiers (unused-import) ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 5.43/10 (previous run: 5.11/10, +0.32) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/liquidations.py:62: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 - files were modified by this hook error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash reformatted /Users/gheise/mev-inspect-py/mev_inspect/classifiers/specs/compound.py Oh no! 💥 💔 💥 1 file reformatted, 3 files left unchanged, 1 file failed to reformat. isort....................................................................Passed pylint...................................................................Failed - hook id: pylint - exit code: 6 ************* Module mev_inspect.classifiers.specs.compound mev_inspect/classifiers/specs/compound.py:3:0: E0611: No name 'DecodeCallTrace' in module 'mev_inspect.schemas.classifiers' (no-name-in-module) mev_inspect/classifiers/specs/compound.py:17:33: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:26:57: E0602: Undefined variable '_get_debt_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:33:56: E0602: Undefined variable '_get_received_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:59:39: E0602: Undefined variable 'Classification' (undefined-variable) mev_inspect/classifiers/specs/compound.py:65:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:73:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:73:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:65:8: W0613: Unused argument 'seize_trace' (unused-argument) mev_inspect/classifiers/specs/compound.py:82:21: E0602: Undefined variable 'DecodedCallTrace' (undefined-variable) mev_inspect/classifiers/specs/compound.py:90:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:90:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:82:8: W0613: Unused argument 'seize_trace' (unused-argument) mev_inspect/classifiers/specs/compound.py:3:0: W0611: Unused DecodeCallTrace imported from mev_inspect.schemas.classifiers (unused-import) ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 5.59/10 (previous run: 5.43/10, +0.16) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/liquidations.py:62: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py % git add mev_inspect (base) gheise@mac mev-inspect-py % poetry run pre-commit The currently activated Python version 3.8.5 is not supported by the project (^3.9). Trying to find and use a compatible version. Using python3.9 (3.9.9) black....................................................................Failed - hook id: black - exit code: 123 error: cannot format /Users/gheise/mev-inspect-py/mev_inspect/liquidations.py: Cannot parse: 62:60: if trace.transaction_hash == parent.transaction_hash Oh no! 💥 💔 💥 4 files left unchanged, 1 file failed to reformat. isort....................................................................Passed pylint...................................................................Failed - hook id: pylint - exit code: 6 ************* Module mev_inspect.classifiers.specs.compound mev_inspect/classifiers/specs/compound.py:26:57: E0602: Undefined variable '_get_debt_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:33:56: E0602: Undefined variable '_get_received_data' (undefined-variable) mev_inspect/classifiers/specs/compound.py:59:39: E0602: Undefined variable 'Classification' (undefined-variable) mev_inspect/classifiers/specs/compound.py:73:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:73:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:65:8: W0613: Unused argument 'seize_trace' (unused-argument) mev_inspect/classifiers/specs/compound.py:90:37: E0602: Undefined variable 'Transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:90:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/compound.py:82:8: W0613: Unused argument 'seize_trace' (unused-argument) ************* Module mev_inspect.classifiers.specs.aave mev_inspect/classifiers/specs/aave.py:25:53: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:32:52: E0602: Undefined variable 'self' (undefined-variable) mev_inspect/classifiers/specs/aave.py:62:49: E0602: Undefined variable 'get_transfer' (undefined-variable) mev_inspect/classifiers/specs/aave.py:78:49: E0602: Undefined variable 'get_transfer' (undefined-variable) ************* Module mev_inspect.inspect_block mev_inspect/inspect_block.py:36:0: E0611: No name 'liquidations' in module 'mev_inspect' (no-name-in-module) ------------------------------------------------------------------ Your code has been rated at 6.70/10 (previous run: 5.59/10, +1.12) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) mypy.....................................................................Failed - hook id: mypy - exit code: 2 mev_inspect/liquidations.py:62: error: invalid syntax Found 1 error in 1 file (errors prevented further checking) (base) gheise@mac mev-inspect-py %