Skip to content

Commit

Permalink
Switch to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
devon-mar committed Jun 9, 2024
1 parent 329c6ee commit 478d340
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 359 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cache-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

- name: Run poetry install
run: poetry install
if: steps.cache-poetry-dependencies.outputs.cache-hit != 'true'

- uses: psf/black@stable

# https://github.com/PyCQA/flake8/pull/1438
- name: Install flake8
run: |
source $VENV
pip install flake8
- name: Lint with flake8
run: |
poetry run flake8 nornir_paramiko --count --max-line-length=120 --show-source --statistics
- uses: chartboost/ruff-action@v1

- name: mypy
run: poetry run mypy nornir_paramiko
Expand Down
Loading

0 comments on commit 478d340

Please sign in to comment.