Skip to content

Commit

Permalink
93 synchronize linting setup between gh actions and local development (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
jcadam14 authored Jan 19, 2024
1 parent fe34b42 commit 9531fb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- uses: chartboost/ruff-action@v1
with:
version: 0.0.278
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9531fb6

Please sign in to comment.