Skip to content

add assert and manual for environment variables, fix readme, fix pre-commit #3

add assert and manual for environment variables, fix readme, fix pre-commit

add assert and manual for environment variables, fix readme, fix pre-commit #3

name: Python Code Quality Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install pre-commit==2.20.0 ruff==0.1.5 black==23.12.0
- name: Run pre-commit on all files
run: pre-commit run --all-files -v