From 399b5db03de3b5126f1a2b5e7123176fd7e76f07 Mon Sep 17 00:00:00 2001 From: Juan Pablo Cadena Aguilar Date: Sun, 6 Oct 2024 14:58:14 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20(ruff):=20Fix=20workflo?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/code_quality.yml | 10 ++++------ pyproject.toml | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 0abfd1b..86770da 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -34,12 +34,10 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - - name: Diagnose isort Configuration - run: | - isort . --verbose - isort --show-config - isort app/crud/specification.py --diff - isort --version + - name: Run Ruff + uses: astral-sh/ruff-action@v1 + with: + args: 'check --fix' # Check code formatting using isort - name: Run isort diff --git a/pyproject.toml b/pyproject.toml index dda3efe..0330c96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -282,7 +282,6 @@ allow-dunder-method-names = ["__tablename__", "__table_args__"] # PLW3201 # Preserve types, even if a file imports `from __future__ import annotations`. keep-runtime-typing = true - [tool.mypy] exclude = ''' (