From 9531fb6ff76c0c675fb437127cb4eba03c98e302 Mon Sep 17 00:00:00 2001 From: jcadam14 <41971533+jcadam14@users.noreply.github.com> Date: Fri, 19 Jan 2024 09:11:02 -0700 Subject: [PATCH] 93 synchronize linting setup between gh actions and local development (#94) Closes #93 Updated the actions for black and ruff to have versions. Black can take a compatible version definition using ~=. However ruff-action has a strict regex that only allows a specific version to be defined, no concept of keeping the latest compatible major version. --- .github/workflows/linters.yml | 6 +++++- pyproject.toml | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 2f24298..99576ba 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -8,8 +8,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: psf/black@stable + with: + version: "~= 23.7.0" ruff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: chartboost/ruff-action@v1 \ No newline at end of file + - uses: chartboost/ruff-action@v1 + with: + version: 0.0.278 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 53de168..b260890 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,8 +21,8 @@ alembic = "^1.12.0" pydantic-settings = "^2.0.3" [tool.poetry.group.dev.dependencies] -ruff = "^0.0.278" -black = "^23.7.0" +ruff = "0.0.278" +black = "~23.7.0" httpx = "^0.24.1" pytest = "^7.4.0" pytest-asyncio = "^0.21.1"