forked from Jengrik/python-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
47 lines (43 loc) · 1003 Bytes
/
pyproject.toml
File metadata and controls
47 lines (43 loc) · 1003 Bytes
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
# pyproject.toml — Configuración básica para el curso "python-course"
[tool.black]
line-length = 100
target-version = ["py311"]
# Evita que Black toque artefactos y el venv
extend-exclude = """
/(
\.venv
| venv
| env
| build
| dist
| \.mypy_cache
| \.pytest_cache
| \.ipynb_checkpoints
)/
"""
[tool.isort]
profile = "black"
line_length = 100
# No intentar ordenar imports dentro de estos directorios
skip = [".venv", "venv", "env", "build", "dist", ".mypy_cache", ".pytest_cache"]
[tool.flake8]
max-line-length = 100
extend-ignore = [
"E203", # compatible con Black en slicing
"W503" # compatible con Black para binary operators
]
exclude = [
".venv", "venv", "env",
".git", "__pycache__",
".mypy_cache", ".pytest_cache",
"build", "dist",
".ipynb_checkpoints"
]
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
# Si quieres warnings más claros, descomenta:
# filterwarnings = [
# "error::DeprecationWarning",
# "ignore:.*distutils.*:DeprecationWarning"
# ]