-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (64 loc) · 1.68 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
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "YOUR_PACKAGE_NAME" # Type your package name
version = "0.1.0"
description = "YOUR_PACKAGE_DESCRIPTION" # Type your package description
requires-python = ">= 3.11" # Type your Python version
license = { file = "LICENSE" }
dependencies = [ # Type your dependencies
"gymnasium",
"tensorboard",
"wandb",
"tyro",
]
[project.optional-dependencies]
dev = [ # Recommended development dependencies
"black",
"ruff",
"pre-commit",
"pytest",
]
[tool.setuptools.packages.find]
include = ["YOUR_PACKAGE_NAME"] # Type your package name
[tool.black]
target-version = ["py311"] # Type your Python version
line-length = 100
skip-magic-trailing-comma = false
[tool.ruff]
target-version = "py311" # Type your Python version
line-length = 100
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint]
preview = true
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"I", # isort
"UP", # pyupgrade
"ANN", # flake8-annotations
"A", # flake8-builtins
"C4", # flake8-comprehensions
"G", # flake8-logging-format
"Q", # flake8-quotes
"SLF", # flake8-self
"SIM", # flake8-simplify
"TCH", # flake8-tidy-imports
"PD", # flake8-pandas
"RUF", # ruff-specific-rules
]
ignore = [
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
"ANN204", # missing-return-type-special-method
"ANN401", # any-type
"UP038", # non-pep604-isinstance
]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true