-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
68 lines (57 loc) · 1.43 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
[tool.poetry]
name = "pytorch-lightning-sam-callback"
version = "0.0.0-dev"
description = ""
authors = ["Masahiro Wada <argon.argon.argon@gmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.7"
pytorch-lightning = "^1.6.0"
torch = "^1.8.0"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.19.0"
pyright = "^1.1.238"
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
pytest-xdist = "^2.5.0"
pytest-black = "^0.3.12"
pre-commit = "^2.18.1"
conventional-commit = "^0.4.2"
isort = "^5.10.1"
flake8 = "^4.0.1"
commitizen = "^2.27.0"
[tool.poetry.group.example.dependencies]
torchvision = "^0.12.0"
lightning-bolts = "^0.6.0"
[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cpu"
secondary = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.pyright]
include = ["pytorch_lightning_sam_callback"]
stubPath ="stubs"
typeCheckingMode = "strict"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.10"
pythonPlatform = "Linux"
reportUnknownArgumentType = false
reportUnknownMemberType = false
reportUnknownParameterType = false
reportUnknownVariableType = false
[tool.pytest.ini_options]
addopts = "--strict --durations=0 --color=yes"
testpaths = [
"tests"
]
[tool.poetry-version-plugin]
source = "git-tag"
[tool.poe.tasks]
test = "pytest"
check = "pre-commit run -a"
install-pre-commit = "pre-commit install"