Skip to content

Commit c03a60e

Browse files
committed
Fix ruff config
1 parent 42e88af commit c03a60e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Release 2.3.0a1 (WIP)
1+
## Release 2.3.0a2 (WIP)
22

33
### Breaking Changes
44
- Updated defaults hyperparameters for TD3/DDPG to be more consistent with SAC
@@ -9,7 +9,7 @@
99

1010

1111
### Bug fixes
12-
- Added test dependencies to `setup.py`
12+
- Added test dependencies to `setup.py` (@power-edge)
1313

1414
### Documentation
1515
- Added README to tests

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: mypy
1616
lint:
1717
# stop the build if there are Python syntax errors or undefined names
1818
# see https://www.flake8rules.com/
19-
ruff ${LINT_PATHS} --select=E9,F63,F7,F82 --show-source
19+
ruff ${LINT_PATHS} --select=E9,F63,F7,F82 --output-format=full
2020
# exit-zero treats all errors as warnings.
2121
ruff ${LINT_PATHS} --exit-zero
2222

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
line-length = 127
44
# Assume Python 3.8
55
target-version = "py38"
6+
7+
[tool.ruff.lint]
68
# See https://beta.ruff.rs/docs/rules/
79
select = ["E", "F", "B", "UP", "C90", "RUF"]
810
# Ignore explicit stacklevel`
911
ignore = ["B028"]
1012

11-
[tool.ruff.per-file-ignores]
13+
[tool.ruff.lint.per-file-ignores]
1214
"./rl_zoo3/import_envs.py"= ["F401"]
1315
# "./rl_zoo3/plots/plot_train.py"= ["E501"]
1416

1517

16-
[tool.ruff.mccabe]
18+
[tool.ruff.lint.mccabe]
1719
# Unlike Flake8, default to a complexity level of 10.
1820
max-complexity = 15
1921

rl_zoo3/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0a1
1+
2.3.0a2

0 commit comments

Comments
 (0)