Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit f56b95a

Browse files
committed
Update Ruff linting and use UV installer
1 parent 28b2dd6 commit f56b95a

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

fief_client/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"Fief client for Python."
2+
23
from fief_client.client import (
34
Fief,
45
FiefAccessTokenACRTooLow,

fief_client/integrations/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI integration."""
2+
23
import functools
34
import http
45
import http.server

fief_client/integrations/fastapi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""FastAPI integration."""
2+
23
import uuid
34
from inspect import Parameter, Signature, isawaitable
45
from typing import (

fief_client/integrations/flask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Flask integration."""
2+
23
import uuid
34
from functools import wraps
45
from typing import Callable, List, Optional

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ commit_extra_args = ["-e"]
3131
path = "fief_client/__init__.py"
3232

3333
[tool.hatch.envs.default]
34+
installer = "uv"
3435
features = [
3536
"fastapi",
3637
"flask",
@@ -59,12 +60,12 @@ test = "pytest --cov fief_client/ --cov-report=term-missing"
5960
test-cov-xml = "pytest --cov fief_client/ --cov-report=xml"
6061
lint = [
6162
"ruff format . ",
62-
"ruff --fix .",
63+
"ruff check --fix .",
6364
"mypy fief_client/",
6465
]
6566
lint-check = [
6667
"ruff format --check .",
67-
"ruff .",
68+
"ruff check .",
6869
"mypy fief_client/",
6970
]
7071

tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def encrypted_id_token(generate_token: Callable[..., str]) -> str:
102102
class GetAPIRequestsMock(Protocol):
103103
def __call__(
104104
self, *, hostname: str = "https://bretagne.fief.dev", path_prefix: str = ""
105-
) -> ContextManager[respx.MockRouter]:
106-
...
105+
) -> ContextManager[respx.MockRouter]: ...
107106

108107

109108
@pytest_asyncio.fixture(scope="module")

0 commit comments

Comments
 (0)