-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (39 loc) · 1.09 KB
/
pyproject.toml
File metadata and controls
46 lines (39 loc) · 1.09 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
[project]
name = "python fun"
version = "0.1.0"
description = "A simple Python fun"
authors = [{ name = "Your Name", email = "you@example.com" }]
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
# -----------------------------
# 🔧 Formatting and linting tools
# -----------------------------
[tool.black]
line-length = 100
target-version = ["py312"]
skip-string-normalization = false
[tool.flake8]
max-line-length = 100
ignore = [
"E203", # whitespace before ':'
"E266", # too many leading '#' for block comment
"E501", # line too long handled by Black
"W503", # line break before binary operator
]
exclude = [".git", "__pycache__", "venv", ".venv", "build", "dist"]
[tool.ruff]
line-length = 100
target-version = "py312"
fix = true
lint.select = ["E", "F", "I", "N", "UP", "B"]
lint.ignore = ["E501", "E203"]
exclude = [".git", "__pycache__", "venv", ".venv", "build", "dist"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
addopts = "-ra -q"
testpaths = ["tests"]