-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (73 loc) · 1.85 KB
/
pyproject.toml
File metadata and controls
82 lines (73 loc) · 1.85 KB
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.ruff]
indent-width = 4
line-length = 88
target-version = "py39"
extend-include = ["*.ipynb"]
lint.select = [
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
# "D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EM", # flake8-errmsg
"ERA", # eradicate
"F", # Pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"N", # pep8-naming
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PLC", # Pylint
"PLE", # Pylint
"PLR", # Pylint
"PLW", # Pylint
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"RUF100", # Ruff-specific
"S", # flake8-bandit
"SIM", # flake8-simplify
# "T20", # flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
exclude = [
"__init__.py",
"setup.py",
]
lint.ignore = [
"S301", # pickle
"S311", # Standard pseudo-random generators
]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"X", "X1", "X_train", "X_val", "X_test", "X_predict",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
[tool.ruff.lint.extend-per-file-ignores]
"test/**" = ["S101", "PLR2004", "ANN"]
"python/example_rmux.py" = ["PLR2004"]
"python/example_maze.py" = ["PLR2004"]
"python/notebooks/example_cartpole.ipynb" = ["E501", "SIM115"]
"python/notebooks/example_maze.ipynb" = ["E501", "PLR2004"]
"python/notebooks/example_regression.ipynb" = ["PLR2004"]
"python/notebooks/example_rmux.ipynb" = ["PLR2004"]
"python/notebooks/example_tuning.ipynb" = ["E501", "ANN201"]
[tool.codespell]
ignore-words-list = [
"larg",
]