diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f292f1..4ca0429 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,7 @@ repos: rev: v5.0.0 hooks: - id: end-of-file-fixer + exclude: (^|/)requirements.*\.txt$ - id: trailing-whitespace - id: check-yaml - id: check-added-large-files diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 9f26195..0000000 Binary files a/requirements-dev.txt and /dev/null differ diff --git a/requirements.txt b/requirements.txt index c3fdbb7..a627c50 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..30c8733 --- /dev/null +++ b/setup.bat @@ -0,0 +1,18 @@ +@echo off + +IF NOT EXIST .venv ( + python -m venv .venv +) + +CALL .venv\Scripts\activate.bat + +pip install --upgrade pip +pip install pre-commit + +IF EXIST requirements.txt ( + pip install -r requirements.txt +) + +pre-commit install + +ECHO Setup complete diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..c0b8bf3 --- /dev/null +++ b/setup.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +if [ ! -d ".venv" ]; then + python3 -m venv .venv +fi + +source .venv/bin/activate + +pip install --upgrade pip +pip install pre-commit + +if [ -f "requirements.txt" ]; then + pip install -r requirements.txt +fi + +pre-commit install + +echo "Setup complete"