From 7d795a15851baf15f1e59cff3c99082a72bb3af2 Mon Sep 17 00:00:00 2001 From: Matt Tancik Date: Wed, 30 Mar 2022 14:00:16 -0700 Subject: [PATCH] add black formatting on push and PR --- .github/workflows/lint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c85be673b..1e2de93e0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,7 @@ name: Lint on: push: - paths: + [paths, pull_request]: - '*.py' jobs: @@ -16,7 +16,11 @@ jobs: architecture: x64 - name: Checkout PyTorch uses: actions/checkout@master - - name: Python Pylin GitHub Action + - name: Run Black + uses: psf/black@stable + with: + options: "--check --verbose --line-length=120" + - name: Python Pylint GitHub Action uses: vcoder4c/git_pylint@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file