-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (68 loc) · 1.75 KB
/
pyproject.toml
File metadata and controls
82 lines (68 loc) · 1.75 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
70
71
72
73
74
75
76
77
78
79
80
81
82
[project]
name = "conc_lessons"
version = "0.0.1"
description = "Concurrent Programming in Python"
readme = "README.md"
license = "MIT"
authors = [{ name = "Luiz Otávio" }]
requires-python = ">=3.14"
dependencies = [
"prompt-toolkit>=3.0.52",
]
[project.scripts]
conc_lessons = "conc_lessons.main:run"
[project.urls]
Homepage = "https://www.otaviomiranda.com.br/"
[tool.ruff]
line-length = 88
target-version = "py314"
fix = true
show-fixes = true
indent-width = 4
exclude = [".venv"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T201", # Checks for print statements,
"COM812", # Checks for the absence of trailing commas.
"INP001", # Checks for packages that are missing an __init__.py file.
"D", # All pydocstyle (D)
"ANN401", # Checks that function arguments are annotated with a more specific type than Any.
"ERA001", # Checks for commented-out Python code.
"A004", # Shadowing Python Builtin
"PLR0913", # Too many arguments in function definition (6 > 5)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ANN201", "S101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ruff.lint.isort]
known-first-party = ['conc_lessons']
[tool.pyright]
typeCheckingMode = "standard"
pythonVersion = "3.14"
include = ["src"]
exclude = [
"**/venv",
"**/.venv",
"**/env",
"**/.env",
"**/node_modules",
"**/__pycache__",
]
venv = ".venv"
venvPath = "."
executionEnvironments = [{ root = "src" }]
[tool.pytest.ini_options]
addopts = "-s --color=yes --tb=short"
pythonpath = ["src"]
testpaths = ["tests"]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools]
package-dir = { "" = "src" }