From bf69a0a6e5abf73ed3da20a9f838401790f3b199 Mon Sep 17 00:00:00 2001 From: henrikstranneheim Date: Wed, 2 Oct 2024 08:29:44 +0200 Subject: [PATCH 1/2] feat(update): lint --- .github/workflows/black.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 13 ++++++++++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index e7f3863..f0ac4cf 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -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 @@ -18,4 +18,4 @@ jobs: uses: psf/black@stable with: options: ". --check --line-length 100" - version: "~=24.1.0" + version: "~=24.8.0" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e860672..8616cac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index f27ded0..9dde3fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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] @@ -47,3 +47,14 @@ 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" +ignore = ["E501"] \ No newline at end of file From 4fbd5a0d7602d2cbb1bacd3f052676ded64174a0 Mon Sep 17 00:00:00 2001 From: henrikstranneheim Date: Wed, 2 Oct 2024 08:31:20 +0200 Subject: [PATCH 2/2] feat(update): lint --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 9dde3fc..5605f87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,4 +57,5 @@ profile = "black" [tool.ruff] line-length = 100 target-version = "py311" +exclude = ["alembic"] ignore = ["E501"] \ No newline at end of file