mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-14 10:50:48 +08:00
add pre-commit support
This commit is contained in:
13
.pre-commit-config.yaml
Normal file
13
.pre-commit-config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.4.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
|
rev: v0.0.262
|
||||||
|
hooks:
|
||||||
|
- id: ruff
|
||||||
|
args: [ '--config', '.ruff.toml' ]
|
@ -63,4 +63,3 @@ git clone https://github.com/wu-clan/fastapi_best_architecture.git
|
|||||||
## Init the test data
|
## Init the test data
|
||||||
|
|
||||||
Execute the `backend/app/init_test_data.py` file
|
Execute the `backend/app/init_test_data.py` file
|
||||||
|
|
||||||
|
3
pre-commit.sh
Normal file
3
pre-commit.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
pre-commit run --all-files --verbose --show-diff-on-failure
|
@ -1,28 +1,29 @@
|
|||||||
fastapi==0.95.0
|
aiofiles==0.8.0
|
||||||
starlette==0.26.1
|
|
||||||
SQLAlchemy==2.0.8
|
|
||||||
python-jose==3.3.0
|
|
||||||
bcrypt==3.2.2
|
|
||||||
passlib==1.7.4
|
|
||||||
pydantic==1.10.5
|
|
||||||
loguru==0.6.0
|
|
||||||
redis==4.5.4
|
|
||||||
aioredis==2.0.1
|
aioredis==2.0.1
|
||||||
|
aiosmtplib==1.1.6
|
||||||
alembic==1.7.4
|
alembic==1.7.4
|
||||||
uvicorn[standard]==0.13.4
|
APScheduler==3.8.1
|
||||||
path==15.1.2
|
asyncmy==0.2.5
|
||||||
|
bcrypt==3.2.2
|
||||||
|
cryptography==39.0.1
|
||||||
|
email-validator==1.1.3
|
||||||
Faker==9.7.1
|
Faker==9.7.1
|
||||||
fast-captcha==0.1.3
|
fast-captcha==0.1.3
|
||||||
asyncmy==0.2.5
|
fastapi==0.95.0
|
||||||
APScheduler==3.8.1
|
|
||||||
tzlocal==2.1
|
|
||||||
fastapi-pagination==0.12.1
|
fastapi-pagination==0.12.1
|
||||||
email-validator==1.1.3
|
|
||||||
python-multipart==0.0.5
|
|
||||||
aiofiles==0.8.0
|
|
||||||
aiosmtplib==1.1.6
|
|
||||||
cryptography==39.0.1
|
|
||||||
gunicorn==20.1.0
|
gunicorn==20.1.0
|
||||||
supervisor==4.2.5
|
loguru==0.6.0
|
||||||
wait-for-it==2.2.1
|
passlib==1.7.4
|
||||||
|
path==15.1.2
|
||||||
|
pre-commit==3.2.2
|
||||||
|
pydantic==1.10.5
|
||||||
|
python-jose==3.3.0
|
||||||
|
python-multipart==0.0.5
|
||||||
|
redis==4.5.4
|
||||||
ruff==0.0.262
|
ruff==0.0.262
|
||||||
|
SQLAlchemy==2.0.8
|
||||||
|
starlette==0.26.1
|
||||||
|
supervisor==4.2.5
|
||||||
|
tzlocal==2.1
|
||||||
|
uvicorn[standard]==0.13.4
|
||||||
|
wait-for-it==2.2.1
|
||||||
|
Reference in New Issue
Block a user