Skip to content

Commit

Permalink
make: move pre-commit to lint step
Browse files Browse the repository at this point in the history
pre-commit is mostly doing linting thingies.

Signed-off-by: Simon de Vlieger <[email protected]>
  • Loading branch information
supakeen committed Apr 23, 2024
1 parent 9c4a0d4 commit f2d12e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install yamllint
- name: Install apt dependencies
run: sudo apt-get install -y yamllint
- name: Install pip dependencies
run: sudo pip install -e ".[dev]"
- name: "Clone Repository"
uses: actions/checkout@v4
- name: Run linters
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: lint
lint:
@find . -name '*.yaml' | xargs yamllint
@pre-commit run --all-files

.PHONY: type
type:
Expand All @@ -13,4 +14,3 @@ format:
.PHONY: test
test:
@pytest
pre-commit run --all-files

0 comments on commit f2d12e0

Please sign in to comment.