-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
70 lines (63 loc) · 1.64 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "lightly-insights"
version = "0.1.0"
authors = ["Lightly.ai"]
description = "Get quick insights about your ML dataset."
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.7"
tqdm = "*"
pillow = "*"
labelformat = "^0.1.1"
jinja2 = "^3.1.2"
matplotlib = ">=3.5"
[tool.poetry.group.dev.dependencies]
mypy = "*"
black = "*"
isort = "*"
flake8 = "*"
pytest = "*"
pytest-mock = "*"
build = "*"
twine = "*"
types-Pillow = "*"
[tool.pytest.ini_options]
pythonpath = [
".", "src/"
]
[tool.isort]
profile = "black"
[tool.mypy]
ignore_missing_imports = true
python_version = 3.7
warn_unused_configs = true
strict_equality = true
# Disallow dynamic typing
#disallow_any_unimported = true # because mypy fails to follow some imports, e.g. for PIL.Image.Image and matplotlib.Figure
#disallow_any_expr = true # because intermediate expressions do not need to be typed
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_subclassing_any = true
# Disallow untyped definitions
#disallow_untyped_calls = true # otherwise all external functions called must be typed e.g. calls to torch functions
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
# None and optional handling
no_implicit_optional = true
strict_optional = true
# Configuring warnings
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_redundant_casts = true
warn_unreachable = true
# Print format
show_error_codes = true
show_error_context = true