mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
807 B
43 lines
807 B
---
|
|
name: Run black (auto)
|
|
|
|
defaults:
|
|
run:
|
|
# To load bashrc
|
|
shell: bash -ieo pipefail {0}
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master, dev]
|
|
paths:
|
|
- "**/*.py"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Black
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Run black
|
|
uses: psf/black@stable
|
|
with:
|
|
options: ""
|
|
summary: false
|
|
version: "~= 22.3.0"
|
|
|
|
- name: Annotate diff changes using reviewdog
|
|
uses: reviewdog/action-suggester@v1
|
|
with:
|
|
tool_name: blackfmt
|
|
|