mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
add black formatting on push and PR
This commit is contained in:
1 parent
47459f4be7
commit
7d795a1585
1 file changed
+6
-2
@@ -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 }}
|
||||||
Reference in new issue
Block a user