add black formatting on push and PR

This commit is contained in:
Matt Tancik committed 2022-03-30 14:00:16 -07:00
1 parent 47459f4be7
commit 7d795a1585
1 file changed
+6 -2
+6 -2
View File
@@ -2,7 +2,7 @@ name: Lint
on: on:
push: push:
paths: [paths, pull_request]:
- '*.py' - '*.py'
jobs: jobs:
@@ -16,7 +16,11 @@ jobs:
architecture: x64 architecture: x64
- name: Checkout PyTorch - name: Checkout PyTorch
uses: actions/checkout@master 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 uses: vcoder4c/git_pylint@v3
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}