-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
73 lines (65 loc) · 1.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[tool.poetry]
name = "cool_project"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "3.7.13"
torch = "^1.12"
torchvision = "^0.13.0"
tqdm = "^4.64.0"
numpy = "1.21"
rich = "^12.5.1"
loguru = "^0.6.0"
pytorch-lightning = "^1.7.1"
pydantic = "^1.9.2"
python-dotenv = "^0.20.0"
torchmetrics = "^0.9.3"
wandb = "^0.13.1"
devtools = "^0.9.0"
[tool.poetry.dev-dependencies]
pytest = "^7.1.1"
black = "^22.3.0"
mypy = "^0.961"
pycln = "^2.0.1"
isort = "^5.10.1"
pre-commit = "^2.19.0"
pre-commit-hooks = "^4.3.0"
jupyter = "^1.0.0"
ipykernel = "^6.15.1"
[tool.mypy]
files = ["cool_project/"]
pretty = true
strict = true
# strict = false
show_error_codes = true
exclude = "(/tests/)|(/docs/)|(/examples/)"
# generated-members=["numpy.*","torch.*","torchvision.*","pytorch_lightning.*"]
ignore_missing_imports = true
# https://github.com/konradhalas/dacite/issues/133
[[tool.mypy.overrides]]
module = "pytorch_lightning.*"
implicit_reexport = true
[tool.pytest.ini_options]
# log_cli = true
addopts = [
# show summary of all tests that did not pass
"-ra",
# idk
"-s",
# Make tracebacks shorter
"--tb=native",
# enable all warnings
# "-Wd",
]
testpaths = ["tests"]
filterwarnings = ["ignore::DeprecationWarning"]
[tool.isort]
profile = "black"
line_length = 79
[tool.black]
line-length = 79 # override the default of 88
[build-system]
requires = ["poetry>=1.1.6"]
build-backend = "poetry.masonry.api"