mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-14 19:08:27 +00:00
Add Black formatting GitHub workflow
This commit is contained in:
parent
88d3cf87e2
commit
51f35e2566
1 changed files with 20 additions and 0 deletions
20
.github/workflows/black.yml
vendored
Normal file
20
.github/workflows/black.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Black formatting
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
black:
|
||||
name: Black
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check Black formatting for Python scripts
|
||||
uses: psf/black@stable
|
||||
with:
|
||||
options: --check --diff --verbose
|
||||
src: .
|
Loading…
Reference in a new issue