-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (46 loc) · 1.27 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (46 loc) · 1.27 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.backends.legacy:build"
[project]
name = "fluent-python-journey"
version = "0.1.0"
description = "A deep, chapter-by-chapter engineering journey through Fluent Python (2nd Ed.)"
readme = "README.md"
requires-python = ">=3.12"
authors = [{ name = "Uttkarsh", email = "uttkarshsahurkar@gmail.com" }]
license = { text = "MIT" }
keywords = ["python", "learning", "fluent-python", "engineering", "portfolio"]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ANN", # flake8-annotations
]
ignore = [
"ANN101", # missing type annotation for self
"ANN102", # missing type annotation for cls
]
[tool.ruff.lint.per-file-ignores]
"benchmarks.py" = ["ANN"]
"**/exercises.py" = ["ANN"]
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
warn_return_any = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.black]
line-length = 88
target-version = ["py312"]