Closed sweep-ai[bot] closed 10 months ago
pulling_ace/utils/pulling_ace_models.py
✗
Sandbox logs for
pre-commit install
1/2 ✓pre-commit installed at .git/hooks/pre-commit
trunk init
2/2 ❌ (`1`)✘ Invalid .trunk/trunk.yaml, no cli version found. See https://docs.trunk.io for more info.
.trunk/trunk.yaml
✗
Sandbox logs for
pre-commit install
1/2 ✓pre-commit installed at .git/hooks/pre-commit
trunk init
2/2 ❌ (`1`)✘ Invalid .trunk/trunk.yaml, no cli version found. See https://docs.trunk.io for more info.
pulling_ace/utils/pulling_ace_models.py
✗
Sandbox logs for
pre-commit install
1/2 ✓pre-commit installed at .git/hooks/pre-commit
trunk init
2/2 ❌ (`1`)✘ Invalid .trunk/trunk.yaml, no cli version found. See https://docs.trunk.io for more info.
pulling_ace/attacks/word_embedding_attack.py
✗
Sandbox logs for
pre-commit install
1/2 ✓pre-commit installed at .git/hooks/pre-commit
trunk init
2/2 ❌ (`1`)✘ Invalid .trunk/trunk.yaml, no cli version found. See https://docs.trunk.io for more info.
The command:
Run pipenv run black --check .
yielded the following error:
`##[error]Process completed with exit code 1.
[36;1mdocker run --rm beyond_the_nest:test 10[0m shell: /usr/bin/bash -e {0}
/usr/local/bin/python: Error while finding module specification for 'pulling_ace.cli' (ModuleNotFoundError: No module named 'pulling_ace')
Here are the logs:
would reformat pulling_ace/attacks/word_embedding_attack.py
Oh no! 💥 💔 💥
1 file would be reformatted, 19 files would be left unchanged.
I wasn't able to make changes. This could be due to an unclear request or a bug in my code. As a reminder, comments on a file only modify that file. Comments on a PR (at the bottom of the "conversation" tab) can modify the entire PR. Please try again or contact us on Discord
PR Feedback (click)
I created this PR to address this rule:
"Code should follow a consistent coding style and formatting."
Description
This PR addresses the coding style and formatting issues mentioned in the issue. The changes ensure that the code follows the PEP 8 guidelines for consistency and readability.
Summary of Changes
Modified
pulling_ace/utils/pulling_ace_models.py
:load_model_classification
andload_tokenizer
functions.Modified
pulling_ace/attacks/word_embedding_attack.py
:perfom_word_embedding_attack
function.Please review the changes and let me know if any further modifications are required.