mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Add CI job for black formatting
This commit is contained in:
parent
7a7dcbe2e1
commit
f95121b884
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -24,6 +24,16 @@ jobs:
|
||||||
- name: Check format
|
- name: Check format
|
||||||
run: nix-shell --run 'git ls-files | grep -P "\.py$" | xargs py2-astparse'
|
run: nix-shell --run 'git ls-files | grep -P "\.py$" | xargs py2-astparse'
|
||||||
|
|
||||||
|
black-fmt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: cachix/install-nix-action@v16
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- name: Check format
|
||||||
|
run: nix-shell --run 'black --check .'
|
||||||
|
|
||||||
matrix_generate:
|
matrix_generate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
|
|
Loading…
Add table
Reference in a new issue