From 464446d5a91b5ae0998eab4211b96b4b244b8328 Mon Sep 17 00:00:00 2001 From: Nebula Date: Tue, 26 Jul 2022 23:05:23 +0000 Subject: [PATCH] add autopep8 action --- .github/workflows/lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..adbe8765 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +name: Lint script + +on: + push: + paths-ignore: + - 'README.md' + branches: + - "main" + +jobs: + autopep8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: autopep8 + uses: peter-evans/autopep8@v1 + with: + args: --recursive --in-place --aggressive --aggressive . + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + commit-message: Lint script with autopep8 + title: Lint script with autopep8 + body: This is an auto-generated PR linted by autopep8. + labels: autopep8, automated pr, lint + reviewers: itsnebulalol + branch: lint \ No newline at end of file