diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 000000000..9065b5e02 --- /dev/null +++ b/.github/workflows/black.yml @@ -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 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e70884cef..a90d8197a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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