chore(api): Introduce Ruff Formatter. (#7291)

This commit is contained in:
-LAN- 2024-08-15 12:54:05 +08:00 • committed by GitHub
commit 3571292fbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 1315 additions and 1335 deletions

View file

@ -69,7 +69,18 @@ ignore = [
]
[tool.ruff.format]
quote-style = "single"
exclude = [
"core/**/*.py",
"controllers/**/*.py",
"models/**/*.py",
"utils/**/*.py",
"migrations/**/*",
"services/**/*.py",
"tasks/**/*.py",
"tests/**/*.py",
"libs/**/*.py",
"configs/**/*.py",
]
[tool.pytest_env]
OPENAI_API_KEY = "sk-IamNotARealKeyJustForMockTestKawaiiiiiiiiii"