Skip to content

Commit

Permalink
Merge pull request #40 from Jorricks/add-pre-commit
Browse files Browse the repository at this point in the history
Add pre-commit
  • Loading branch information
ewels authored Mar 11, 2022
2 parents 405f7c7 + 7c3fd78 commit 41451ae
Show file tree
Hide file tree
Showing 19 changed files with 849 additions and 125 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
# Default ignores that we can extend
ignore=D100,D102,D205,E203,E231,E731,W504,I001,W503
max-line-length=120
26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint code
on:
push:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
Loading

0 comments on commit 41451ae

Please sign in to comment.