Skip to content

Commit

Permalink
Merge pull request #42 from jelmer/ruff
Browse files Browse the repository at this point in the history
Migrate to ruff
  • Loading branch information
jelmer authored Nov 28, 2023
2 parents 3909e21 + 697365b commit 18ec845
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
python setup.py develop
- name: Style checks
run: |
python -m pip install flake8
python -m flake8 prometheus_xmpp
python -m pip install ruff
python -m ruff check .
- name: Typing checks
run: |
pip install -U mypy types-pytz types-jinja2 types-PyYAML
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PYTHON = python3

all: check flake8
all: check ruff

check:
$(PYTHON) -m unittest tests.test_suite

flake8:
flake8 prometheus_xmpp/
ruff:
ruff check .

typing:
mypy prometheus_xmpp/

.PHONY: all flake8 check
.PHONY: all ruff check

docker:
buildah build -t docker.io/jvernooij/prometheus-xmpp-alerts -t ghcr.io/jelmer/prometheus-xmpp-alerts .
Expand Down

0 comments on commit 18ec845

Please sign in to comment.