Skip to content

Commit

Permalink
Merge pull request #708 from google/py-fix-check-source
Browse files Browse the repository at this point in the history
python: fix check source script
  • Loading branch information
reyammer authored Sep 20, 2024
2 parents 8a4ddf3 + 3fd8825 commit 42cf9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/scripts/check_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
# From https://stackoverflow.com/a/246128
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

PYTHON_ROOT_DIR=$SCRIPT_DIR/..
PYTHON_ROOT_DIR=$SCRIPT_DIR/../

pushd $PYTHON_ROOT_DIR > /dev/null

echo "Running ruff..."
ruff check

echo "Running mypy..."
mypy magika tests
mypy src/magika tests

popd > /dev/null

0 comments on commit 42cf9a5

Please sign in to comment.