-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
89 lines (74 loc) · 2.09 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
[tool.poetry]
name = "simbot-offline-inference"
version = "4.33.0"
description = ""
authors = ["Amit Parekh <[email protected]>"]
readme = "README.md"
packages = [
{ include = "simbot_offline_inference", from = "src" },
{ include = "arena_wrapper", from = "src" },
{ include = "arena_missions", from = "src" },
]
[tool.poe.tasks]
[tool.poe.tasks.format]
help = "Format using the pre-commit hooks"
cmd = "pre-commit run --all-files"
[tool.poe.tasks.typecheck]
help = "Check types with mypy"
cmd = "mypy ."
[tool.poe.tasks.lint]
help = "Lint with flake8"
cmd = "flake8 ."
[tool.poe.tasks.test]
help = "Run the fast Python tests"
cmd = "pytest --cov=src -m 'not slow'"
[tool.poe.tasks.test-everything]
help = "Run all the tests and get the coverage"
cmd = "pytest -v --durations=40 --color=yes --junitxml=pytest.xml --cov=src -m 'not slow' -n 2"
[tool.poetry.dependencies]
python = ">=3.9,<3.10"
flask = ">=2.2.2,<3"
unityparser = "2.2.1"
opencv-python-headless = ">=4.8.1.68"
scipy = ">=1.10.0"
jinja2 = ">=3.1.2"
flask-cors = ">=3.0.10"
gevent = ">=23.9"
shortuuid = ">=1.0.11"
typing-extensions = ">=4.8.0"
deepmerge = ">=1.1.0"
wandb = ">=0.16.0"
torchmetrics = ">=0.11.4"
[tool.poetry.group.emma.dependencies]
emma-experience-hub = { git = "https://github.com/emma-heriot-watt/experience-hub.git" }
[tool.poetry.group.lint.dependencies]
black = ">=23.3.0"
wemake-python-styleguide = ">=0.17.0"
mypy = ">=1.2.0"
pre-commit = ">=3.2.2"
poethepoet = ">=0.18.1"
isort = ">=5.12.0"
types-pyyaml = ">=6.0.12.9"
[tool.poetry.group.test.dependencies]
pytest = ">=7.2.2"
pytest-cases = ">=3.6.14"
pytest-cov = ">=4.0.0"
pytest-xdist = ">=3.2.1"
deepdiff = ">=6.3.0"
[tool.black]
line-length = 99
[tool.isort]
profile = "black"
combine_as_imports = true
lines_after_imports = 2
line_length = 99
extra_standard_library = ["typing_extensions"]
known_first_party = ["emma_*", "arena_*", "simbot_*"]
[tool.pyright]
include = ["src"]
exclude = ["src/arena_wrapper"]
# typeCheckingMode = "strict"
reportImportCycles = "error"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"