feat(docs + pre commit):

This commit is contained in:
Alexander Myasoedov
2025-02-11 15:34:12 +02:00
parent 152c87611f
commit 851a0f03a8
6 changed files with 315 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
name: Pre-Commit Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
-4
View File
@@ -29,10 +29,6 @@ jobs:
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
- name: Run unit tests
run: |
poetry run pytest .