Skip to content

Commit

Permalink
Use pre-commit instead of ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
koldakov committed Jan 11, 2024
1 parent 5359cd8 commit cafe7c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff pytest
python -m pip install -r requirements.txt
- name: Ruff
apt-get install --assume-yes make
make install
- name: Code check
run: |
ruff --output-format=github .
make code-check
- name: Pytest
run: |
make tests
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ messages-compile: # Generate .mo files for all locales

tests: # Run tests
@python -m pytest -p configs.plugins.env_vars

install: # Install dependencies
@apt-get update
apt-get install --assume-yes --no-install-recommends \
make
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

code-check: # Check the code
@pre-commit run --config=.pre-commit-config.yaml --all-files

0 comments on commit cafe7c1

Please sign in to comment.