Add pre-commit (#140)

* Add pre-commit config files

* Add linting test on github action
This commit is contained in:
Shubhank Saxena
2021-05-26 20:28:17 +05:30
committed by GitHub
parent 94b26a8781
commit 8f228d6844
6 changed files with 53 additions and 1 deletions

15
.github/workflows/lint_test.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}