Skip to content

fix: avoid attrs.asdict as it uses deepcopy #1190

fix: avoid attrs.asdict as it uses deepcopy

fix: avoid attrs.asdict as it uses deepcopy #1190

Workflow file for this run

name: Python Linting
on:
push:
branches: [master]
paths:
- "**/*.py"
- ".github/workflows/*.yml"
pull_request:
paths:
- "**/*.py"
- ".github/workflows/*.yml"
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Lint with flake8
run: |
flake8 . --count --show-source --statistics
- name: Lint with black
run: |
black --check .
- name: Check imports with isort
run: isort --check remoulade
- name: Check typing with mypy
run: |
mypy --install-types --non-interactive --show-traceback
- name: Check syntax with pyupgrade
run: |
pyupgrade --py38-plus **/*.py
linter:
name: black-format
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
# Change reviewdog reporter if you need [github-pr-check, github-check].
reporter: github-pr-check