Skip to content

ci(format): Use verbose options #26

ci(format): Use verbose options

ci(format): Use verbose options #26

Workflow file for this run

name: Code format
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
code-format-check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
SOURCES: "crowdsec-opencti-internal-enrichment-connector"
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.SOURCES }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd ${{ env.SOURCES }}
python -m pip install --upgrade pip
python -m pip install -r tests/test-requirements.txt
- name: Code format check
run: |
black --check -v ./${{ env.SOURCES }}
- name: isort check
run: |
isort --profile black --check -v ./${{ env.SOURCES }}
- name : flake8 check
run: |
flake8 --ignore=E,W -v ./${{ env.SOURCES }}