generated from automl/automl_template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
88 lines (81 loc) · 2.42 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
# For TOML reference
# https://learnxinyminutes.com/docs/toml/
[project]
name = "RL_exercises"
version = "2025"
description = "Exercises for the 2025 RL course at LUHAI."
authors = [{ name = "AutoRL@LUHAI", email = "[email protected]" }]
readme = "README.md"
requires-python = "~=3.11"
license = { file = "LICENSE" }
keywords = [
"Reinforcement Learning",
]
dependencies = [
"numpy",
"gymnasium[box2d]",
"torch",
"tqdm",
"matplotlib",
"minigrid",
"seaborn",
"pandas",
"rich",
"jupyterlab",
"tensorboard",
"hydra-core",
"hydra-submitit-launcher",
"hydra-colorlog",
"stable-baselines3",
"moviepy",
]
[project.optional-dependencies]
dev = ["pytest>=4.6",
"pytest-cov",
"pytest-xdist",
"pytest-timeout",
"ruff",
"pre-commit",
"isort"]
[tool.isort]
py_version = "38"
profile = "black" # Play nicely with black
src_paths = ["rlsolutions", "tests"]
known_types = ["typing", "abc"] # We put these in their own section "types"
known_test = ["tests"]
known_first_party = ["rlsolutions"]
sections = [
"FUTURE",
"TYPES",
"STDLIB",
"THIRDPARTY",
"FIRSTPARTY",
"TEST",
"LOCALFOLDER",
] # section ordering
multi_line_output = 3 # https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
[tool.pydocstyle]
convention = "numpy"
add-ignore = [ # http://www.pydocstyle.org/en/stable/error_codes.html
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary and description
"D210", # No whitespaces allowed surrounding docstring text
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D404", # First word of docstring should not be this
"D413", # Missing blank line after last section
"D415", # First line should end with a period, question mark, or exclamation point
]
[tool.ruff]
extend-exclude = []
[tool.ruff.lint]
ignore = [
# Conflicts with the formatter
"COM812", "ISC001"
]