Skip to content

Commit

Permalink
Added black.yml for github actions integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
za committed Jan 26, 2024
1 parent 692f1c9 commit f69e455
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
9 changes: 6 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Black
description: Format Python code with Black
language: python
- name: Format python code with black
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./scripts"
version: "~= 22.0"
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down

0 comments on commit f69e455

Please sign in to comment.