Skip to content

Commit 91fa765

Browse files
committed
ci: switch from black/isort to ruff
1 parent 9976a6f commit 91fa765

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13"]
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -26,13 +26,12 @@ jobs:
2626
cache-dependency-path: pyproject.toml
2727

2828
- name: Install (including dev dependencies)
29-
run: pip install .[aws,azure,dev]
29+
run: pip install .[aws,azure,dev] ruff
3030

31-
- name: Lint with flake8
32-
run: flake8 . --count --show-source --statistics
31+
- name: Lint and check formatting with Ruff
32+
run: |
33+
ruff check --extend-select I .
34+
ruff format --check .
3335
3436
- name: Test with pytest
3537
run: pytest
36-
37-
- name: Validate formatting with black
38-
run: black --check --diff .

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![ci](https://github.com/fidelity/awsrun/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fidelity/awsrun/actions/workflows/ci.yml)
2-
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
2+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
33

44
# awsrun & azurerun
55

0 commit comments

Comments
 (0)