Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
*.egg-info/
10 changes: 6 additions & 4 deletions scripts/install_pre-commit.sh → scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ if ! hash python3 &> /dev/null; then
exit 1
fi

VENV_DIR=$(mktemp -d)
VENV_DIR=$(mktemp -d -p /tmp venv-XXXXXX)

python3 -m venv "$VENV_DIR"

source "$VENV_DIR"/bin/activate

pip install --no-cache-dir --upgrade pip setuptools
pip install --upgrade pip setuptools

pip install pre-commit==4.3.0
pip install ".[dev]"

pre-commit install --install-hooks
flake8 .
black .
isort .

deactivate