Skip to content

Commit

Permalink
Update linters (#153)
Browse files Browse the repository at this point in the history
### Changed

- Update linters
  • Loading branch information
henrikstranneheim authored Oct 3, 2024
1 parent 28a415e commit 3bdae49
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -18,4 +18,4 @@ jobs:
uses: psf/black@stable
with:
options: ". --check --line-length 100"
version: "~=24.1.0"
version: "~=24.8.0"
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/psf/black
rev: 24.1.0
rev: 24.8.0
hooks:
- id: black
args: [--line-length=100]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.6.8
hooks:
- id: ruff

14 changes: 13 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bcrypt = "^4.1.2"
bump2version = "^1.0.1"
click = "^8.1.7"
coloredlogs = "^15.0.1"
cryptography = "^42.0.8"
email-validator = "^2.1.1"
fastapi = ">=0.109.1"
google-auth = "^2.29.0"
Expand All @@ -33,7 +34,6 @@ sqlalchemy-utils = "^0.41.2"
starlette = "^0.37.2"
uvicorn = "^0.29.0"
uvloop = "^0.19.0"
cryptography = "^42.0.8"


[tool.poetry.group.dev.dependencies]
Expand All @@ -47,3 +47,15 @@ pytest = ">=5.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 100

[tool.isort]
profile = "black"

[tool.ruff]
line-length = 100
target-version = "py311"
exclude = ["alembic"]
ignore = ["E501"]

0 comments on commit 3bdae49

Please sign in to comment.