Update installations and workflows
* Update pyproject.toml * Create a Workflow file to test formatting in PR
This commit is contained in:
committed by
Nicola Demo
parent
ed0a8bd5e7
commit
4c4482b155
19
.github/workflows/black-formatter-test.yml
vendored
Normal file
19
.github/workflows/black-formatter-test.yml
vendored
Normal 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"
|
||||
2
.github/workflows/black-formatter.yml
vendored
2
.github/workflows/black-formatter.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user