-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (62 loc) · 1.48 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (62 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ===========================
# Project Info
# ===========================
[project]
name = "python-fastapi-template"
version = "1.0.0"
description = "Personal template for Python FastAPI projects"
requires-python = ">=3.10"
# ===========================
# Production Dependencies
# (the project needs these to run)
# ===========================
dependencies = [
"sqlalchemy",
"pymysql",
"python-dotenv",
"cryptography",
"fastapi",
"uvicorn",
]
# ===========================
# Development Dependencies
# (tools that help US while coding)
# ===========================
[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
"mypy",
]
# ===========================
# Ruff - Linting
# ===========================
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors (syntax and style)
"W", # pycodestyle warnings
"F", # pyflakes (unused imports, variables)
"I", # isort (import ordering)
"N", # pep8-naming (naming conventions)
"UP", # pyupgrade (modernize syntax)
]
[tool.ruff.format]
quote-style = "double"
# ===========================
# Pytest - Testing
# ===========================
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
# ===========================
# MyPy - Type Checking
# ===========================
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true