Skip to content

AUT-2164: Add service for checking fraud emails and feature switch #33

AUT-2164: Add service for checking fraud emails and feature switch

AUT-2164: Add service for checking fraud emails and feature switch #33

name: Pre-merge checks for Python
on:
pull_request:
paths: ["**/*.py"]
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.dev.txt
pip install -r scripts/requirements.txt
- name: Pylint
run: |
pylint -f actions $(git ls-files '*.py')
- name: Flake8
run: |
flake8p --format github $(git ls-files '*.py')
- name: Black
run: |
black --check $(git ls-files '*.py')
- name: isort
run: |
isort --check-only $(git ls-files '*.py')