Skip to content

Commit

Permalink
Add github action for running pre-commit (#23)
Browse files Browse the repository at this point in the history
* Add github action for running pre-commit

* Update black version
  • Loading branch information
manzato authored Jul 27, 2021
1 parent ece8c01 commit b5f77b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Code quality

on:
pull_request:
push:
branches: [foxy-devel]

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ repos:
- id: check-json

- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.7b0
hooks:
- id: black

0 comments on commit b5f77b4

Please sign in to comment.