-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
59 lines (49 loc) · 1.49 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "todo-list-api"
version = "0.0.0"
description = "An application that helps a user manage their todo list using a RESTful API and Postgres database."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE.txt"}
keywords = ["python", "web_app", "api", "postgres"]
authors = [
{name = "Morgan Sell", email = "[email protected]" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
[tool.pytest.ini_options]
testpaths = ["."]
addopts = "--cov=src --cov-report=term-missing"
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["src/main.py"]
[tool.coverage.report]
fail_under = 80
show_missing = true
[tool.ruff]
line-length = 88 # match black's line length
fix = false # black handles it
exclude = ["tests/"]
[tool.ruff.lint]
# E: Enforces pycodestyle error codes (like PEP 8).
# F: Runs pyflakes for identifying unused imports and variables.
# B: Runs flake8-bugbear for finding potential bugs.
# W: Warnings for pycodestyle
select = ["E", "F", "W", "B"]
# E501: ignore line length (handled by black)
ignore = ["E501"]
[tool.black]
line-length = 88 # Standard PEP8 line length
target-version = ["py311"]
skip-string-normalization = false # If true, black won't normalize quotes
[tool.isort]
profile = "black" # Use black's import sorting style
line_length = 88
known_third_party = ["pytest"]