tools: gmail #2726
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format | |
on: | |
push: | |
branches: [main] | |
pull_request: {} | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: psf/[email protected] | |
- uses: isort/isort-action@v1 | |
with: | |
isort-version: "5.12.0" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade --user pip | |
- name: Install code quality packages | |
run: | | |
pip install poetry | |
poetry env use 3.11 | |
poetry install --only=dev | |
- name: Remove unused standard library imports from non-`__init__.py` files | |
run: | |
poetry run autoflake --in-place --recursive --ignore-init-module-imports . |