Skip to content

Commit

Permalink
Add Pre-commit Checker in scripts. Helps reduce CI calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed May 16, 2024
1 parent 44bdc38 commit 4cd6bdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check_pre_submit.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# black checks formating
echo ">>> Run the pre-submit format check with \`black .\`"
echo ">>> Run the pre-submit format check with \`black .\`."
black .

echo ">>> Run the pre-submit format check with \`mypy\`"
echo ">>> Run the pre-submit format check with \`mypy\`."

# mypy checks python versions compatibility
versions=("3.9" "3.10" "3.11")
Expand All @@ -15,4 +15,4 @@ done

# flake8 checks errors count in bittensor folder
error_count=$(flake8 bittensor/ --count)
echo ">>> Flake8 found ${error_count} errors"
echo ">>> Flake8 found ${error_count} errors."

0 comments on commit 4cd6bdb

Please sign in to comment.