You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/scripts/cleanup/code_quality.sh

21 lines
714 B

5 months ago
#!/bin/bash
# Navigate to the directory containing the 'tests' folder
# cd /path/to/your/code/directory
# Run autopep8 with max aggressiveness (-aaa) and in-place modification (-i)
# on all Python files (*.py) under the 'tests' directory.
autopep8 --in-place --aggressive --aggressive --recursive --experimental --list-fixes swarms/
# Run black with default settings, since black does not have an aggressiveness level.
# Black will format all Python files it finds in the 'tests' directory.
black .
# Run ruff on the 'tests' directory.
# Add any additional flags if needed according to your version of ruff.
ruff . --fix
ruff clean
# YAPF
yapf --recursive --in-place --verbose --style=google --parallel tests