-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
110 lines (96 loc) · 2.34 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[tool.poetry]
name = "lepiszcze"
version = "0.0.1"
description = ""
authors = [
"Kamil Tagowski <kamil.tagowski@gmail.com>",
"Albert Sawczyn <albertsawczyn@gmail.com>",
"Denis Janiak <denis.janiak7@gmail.com>",
"Łukasz Augustyniak <luk.augustyniak@gmail.com>",
"Roman Bartusiak <riomus@gmail.com>",
]
packages = [
{ include = "lepiszcze" },
]
[tool.poetry.dependencies]
python = ">=3.9.0, <3.10"
dvc = { version = "2.10.1", extras = ["s3"] }
mlflow = "1.19.0"
torchmetrics = "0.7.3"
clarinpl-embeddings = "0.0.1rc244740591597"
wandb = "0.12.14"
flair = "0.10"
torch = "1.11.0"
transformers = "4.18.0"
protobuf = "3.20.0"
[tool.poetry.dev-dependencies]
pytest = "6.2.5"
mypy = "0.950"
black = "21.10b0"
typing-extensions = "3.10.0"
isort = { version = "5.10.1", extras = ["pyproject"] }
pyflakes = "2.4.0"
poethepoet = "0.11.0"
types-requests = "2.26.1"
coverage = {extras = ["toml"], version = "^6.2"}
jupyter = "^1.0.0"
[tool.poe.tasks]
black = "black --check ./"
isort = "isort . -c"
black_fix = "black ./"
isort_fix = "isort . "
pyflakes = "pyflakes ."
mypy = "mypy --strict ."
coverage_test = "coverage run -m pytest"
coverage_report = "coverage report -m"
test = ["coverage_test", "coverage_report"]
check = ["black", "isort", "mypy", "pyflakes"]
fix = ["black_fix", "isort_fix"]
all = ["check", "test"]
force-torch-cuda = "python -m pip install torch==1.11.0+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
[tool.poetry.extras]
developer = ["black", "mypy", "typing-extensions"]
[build-system]
requires = ["poetry>=1.1.5"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
testpaths = "tests"
[tool.black]
line-length = 100
exclude = "flair"
[tool.isort]
line_length = 100
known_first_party = "leaderboard"
known_third_party = ["click", "pytest"]
profile = "black"
skip = "flair"
[tool.mypy]
python_version = "3.9"
strict = true
exclude = "flair"
[[tool.mypy.overrides]]
module = [
"flair.*",
"mlflow",
"numpy",
"pandas",
"sklearn.*",
"srsly",
"tqdm.*",
"yaml"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"spacy.*",
"torch.testing",
"torch",
"datasets"
]
implicit_reexport = true
# due to https://github.com/huggingface/transformers/issues/13390#issuecomment-934830946
[[tool.mypy.overrides]]
module = [
"transformers"
]
follow_imports = "skip"