-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
50 lines (44 loc) · 1.39 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
[tool.poetry]
name = "reinforcement-learning"
version = "0.1.0"
description = ""
authors = ["hnakashima <nakashima.alg57@gmail.com>"]
readme = "README.md"
packages = [{include = "reinforcement_learning"}]
[tool.poetry.dependencies]
python = "3.11.5"
matplotlib = "^3.6.2"
tqdm = "^4.64.1"
numpy = "^1.26.3"
pydantic = "^2.6.0"
torch = "^2.2.0"
gymnasium = "^0.29.1"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
ruff = "^0.2.0"
taskipy = "^1.12.0"
mypy = "^1.7.1"
types-tqdm = "^4.66.0.3"
setuptools = "^68.2.2"
pytest-cov = "^4.1.0"
pre-commit = "^3.5.0"
pytest-mock = "^3.12.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.taskipy.tasks]
format = "python -m ruff format ."
check_format = "python -m ruff format . --check"
test = "python -m pytest -v --cov --cov-branch --no-cov-on-fail --cov-report=html"
# lint
lint_src = "python -m ruff check reinforcement_learning"
lint_tests = "python -m ruff check tests"
lint_examples = "python -m ruff check examples"
lint = "task lint_src; task lint_tests; task lint_examples"
fix_lint = "task lint_src --fix; task lint_tests --fix; task lint_examples --fix"
# mypy
mypy_src = "python -m mypy reinforcement_learning"
mypy_tests = "python -m mypy tests"
mypy_examples = "python -m mypy examples"
mypy = "task mypy_src; task mypy_tests; task mypy_examples"
all = "task format; task test; task lint; task mypy --no-incremental"