Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: Run formatter
run: uv run ruff format --check
- name: Run type checker
run: uv run mypy .
run: uv run ty check
16 changes: 5 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ repos:
# Run the formatter
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.1
- repo: local
hooks:
- id: mypy
additional_dependencies: [
pydantic>=2.7.0,
pydantic-settings>=2.8.1,
types-passlib,
types-requests,
requests>=2.31.0,
httpx>=0.28.1,
]
- id: ty
name: ty check
entry: ty check .
language: system

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand Down
2 changes: 2 additions & 0 deletions app/utils/requests_extensions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from requests import PreparedRequest
from requests.structures import CaseInsensitiveDict
from requests.auth import AuthBase


Expand All @@ -7,5 +8,6 @@ def __init__(self, token):
self.token = token

def __call__(self, r: PreparedRequest):
r.headers = r.headers or CaseInsensitiveDict()
r.headers["Authorization"] = "Bearer " + self.token
return r
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dev = [
"pytest-cov>=6.2.1",
]
lint = [
"mypy>=1.16.1",
"pre-commit>=4.2.0",
"ruff>=0.12.1",
"ty>=0.0.1a12",
Expand Down
40 changes: 0 additions & 40 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.