mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
* define the basic architecture * Update script and deployment file locations * Update the route registration * Fix CI download dependencies * Updated ruff to 0.3.3 * Update app subdirectory naming * Update the model import * fix pre-commit pdm lock * Update the service directory naming * Add CRUD method documents * Fix the issue of circular import * Update the README document * Update the SQL statement for create tables * Update docker scripts and documentation * Fix docker scripts * Update the backend README.md * Add the security folder and move the redis client * Update the configuration item * Fix environment configuration reads * Update the default configuration * Updated README description * Updated the user registration API * Fix test cases * Update the celery configuration * Update and fix celery configuration * Updated the celery structure * Update celery tasks and api * Add celery flower * Update the import style * Update contributors
55 lines
886 B
TOML
55 lines
886 B
TOML
line-length = 120
|
|
unsafe-fixes = true
|
|
cache-dir = ".ruff_cache"
|
|
target-version = "py310"
|
|
|
|
[lint]
|
|
select = [
|
|
"E",
|
|
"F",
|
|
"I",
|
|
"TCH",
|
|
# W
|
|
"W505",
|
|
# PT
|
|
"PT018",
|
|
# SIM
|
|
"SIM101",
|
|
"SIM114",
|
|
# PGH
|
|
"PGH004",
|
|
# PL
|
|
"PLE1142",
|
|
# RUF
|
|
"RUF100",
|
|
# UP
|
|
"UP007"
|
|
]
|
|
preview = true
|
|
ignore-init-module-imports = true
|
|
ignore = ["FURB101"]
|
|
|
|
[lint.flake8-pytest-style]
|
|
mark-parentheses = false
|
|
parametrize-names-type = "list"
|
|
parametrize-values-row-type = "list"
|
|
parametrize-values-type = "tuple"
|
|
|
|
[lint.flake8-unused-arguments]
|
|
ignore-variadic-names = true
|
|
|
|
[lint.isort]
|
|
lines-between-types = 1
|
|
order-by-type = true
|
|
|
|
[lint.per-file-ignores]
|
|
"**/api/v1/*.py" = ["TCH"]
|
|
"**/model/*.py" = ["TCH003"]
|
|
"**/model/__init__.py" = ["F401"]
|
|
"**/tests/*.py" = ["E402"]
|
|
|
|
[format]
|
|
preview = true
|
|
quote-style = "single"
|
|
docstring-code-format = true
|