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
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
- name: Run lint
run: |
source .venv/bin/activate
chmod 755 pre-commit.sh
./pre-commit.sh
chmod 755 prek.sh
./prek.sh
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ pip install fastapi_oauth20
- 完整的授权流程实现
- 用户信息获取和处理
- 错误处理最佳实践

## Development

```shell
uv sync
uv run prek install
uv run prek run --all-files --show-diff-on-failure
```
3 changes: 0 additions & 3 deletions pre-commit.sh

This file was deleted.

3 changes: 3 additions & 0 deletions prek.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

prek run --all-files --verbose --show-diff-on-failure
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dev = [
"ty>=0.0.1a23",
]
lint = [
"pre-commit>=4.3.0",
"prek>=0.3.9",
]
docs = [
"mkdocs-material==9.6.7",
Expand Down
19 changes: 1 addition & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,18 @@ certifi==2025.10.5
# via
# httpcore
# httpx
cfgv==3.4.0
# via pre-commit
click==8.2.1
colorama==0.4.6 ; sys_platform == 'win32'
# via
# click
# pytest
coverage==7.11.1
# via pytest-cov
distlib==0.4.0
# via virtualenv
exceptiongroup==1.3.0 ; python_full_version < '3.11'
# via
# anyio
# pytest
fastapi==0.119.0
filelock==3.20.0
# via virtualenv
h11==0.16.0
# via httpcore
httpcore==1.0.9
Expand All @@ -39,25 +33,19 @@ httpx==0.28.1
# via
# fastapi-oauth20
# respx
identify==2.6.15
# via pre-commit
idna==3.11
# via
# anyio
# httpx
iniconfig==2.1.0
# via pytest
nodeenv==1.9.1
# via pre-commit
packaging==25.0
# via pytest
platformdirs==4.5.0
# via virtualenv
pluggy==1.6.0
# via
# pytest
# pytest-cov
pre-commit==4.3.0
prek==0.3.9
pydantic==2.12.2
# via fastapi
pydantic-core==2.41.4
Expand All @@ -70,8 +58,6 @@ pytest==8.4.2
# pytest-cov
pytest-asyncio==1.2.0
pytest-cov==7.0.0
pyyaml==6.0.3
# via pre-commit
respx==0.22.0
sniffio==1.3.1
# via anyio
Expand All @@ -92,8 +78,5 @@ typing-extensions==4.15.0
# pytest-asyncio
# starlette
# typing-inspection
# virtualenv
typing-inspection==0.4.2
# via pydantic
virtualenv==20.35.3
# via pre-commit
94 changes: 21 additions & 73 deletions uv.lock

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

Loading