Skip to content

static-analysis

static-analysis #2704

# This workflow runs static analysis on RepoBee
name: static-analysis
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.dev.txt
pip install -e .[DEV]
- name: Lint with MyPy
run: mypy src/
- name: Lint with flake8
run: flake8 . --statistics
- name: Lin with pylint
run: pylint --rcfile=.pylintrc src/ tests/
- name: Lint with Bandit
run: bandit -r src/ -ll --exclude src/repobee_testhelpers/localapi.py
- name: Check with Black
run: black --check .