Update installations and workflows

* Update pyproject.toml
* Create a Workflow file to test formatting in PR
This commit is contained in:
Dario Coscia
2025-02-24 11:14:07 +01:00
committed by Nicola Demo
parent ed0a8bd5e7
commit 4c4482b155
3 changed files with 48 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
name: Black Formatter (PR Check)
on:
pull_request:
branches:
- "**" # Run on pull requests for all branches
jobs:
linter:
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Black formatter (check mode)
uses: psf/black@stable
with:
options: "--check -l 80"
src: "./pina"

View File

@@ -27,4 +27,4 @@ jobs:
There appear to be some python formatting errors in ${{ github.sha }}. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/black
branch: actions/black