Skip to content

Commit 5ac5492

Browse files
authored
Merge pull request #62 from Farama-Foundation/chore/update-hooks
Update actions and pre commit
2 parents f6c3095 + 12230d7 commit 5ac5492

33 files changed

+62
-26
lines changed

.github/workflows/build-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ jobs:
2323
- uses: actions/setup-python@v5
2424

2525
- name: Install dependencies
26-
run: python -m pip install --upgrade pip setuptools build
27-
26+
run: pipx install build
2827
- name: Build sdist and wheels
29-
run: python -m build
30-
28+
run: pyproject-build
3129
- name: Store wheels
3230
uses: actions/upload-artifact@v4
3331
with:

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v4
18-
- run: python -m pip install pre-commit
19-
- run: python -m pre_commit --version
20-
- run: python -m pre_commit install
21-
- run: python -m pre_commit run --all-files
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
- run: pipx install pre-commit
19+
- run: pre-commit run --all-files

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-symlinks
88
- id: destroyed-symlinks
@@ -17,13 +17,13 @@ repos:
1717
- id: detect-private-key
1818
- id: debug-statements
1919
- repo: https://github.com/codespell-project/codespell
20-
rev: v2.2.6
20+
rev: v2.3.0
2121
hooks:
2222
- id: codespell
2323
args:
2424
- --ignore-words-list=reacher, mor, nowe
2525
- repo: https://github.com/PyCQA/flake8
26-
rev: 6.1.0
26+
rev: 7.1.1
2727
hooks:
2828
- id: flake8
2929
args:
@@ -34,16 +34,16 @@ repos:
3434
- --show-source
3535
- --statistics
3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v3.15.0
37+
rev: v3.18.0
3838
hooks:
3939
- id: pyupgrade
4040
args: ["--py37-plus"]
4141
- repo: https://github.com/PyCQA/isort
42-
rev: 5.12.0
42+
rev: 5.13.2
4343
hooks:
4444
- id: isort
4545
- repo: https://github.com/python/black
46-
rev: 23.9.1
46+
rev: 24.10.0
4747
hooks:
4848
- id: black
4949
- repo: https://github.com/pycqa/pydocstyle

momaland/envs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Environment modules for momaland."""
2+
23
import momaland.envs.beach

momaland/envs/beach/mobeach_v0.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Beach domain environment for multi-objective optimization."""
2+
23
from momaland.envs.beach.beach import env, parallel_env, raw_env
34

45

momaland/envs/breakthrough/breakthrough.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Observation Values | [0,1] |
1212
| Reward Shape | (num_objectives=4,) |
1313
"""
14+
1415
from __future__ import annotations
1516

1617
from typing_extensions import override

momaland/envs/breakthrough/mobreakthrough_v0.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Breakthrough environment with multiple objectives."""
2+
23
from momaland.envs.breakthrough.breakthrough import env, raw_env
34

45

momaland/envs/connect4/connect4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Observation Values | [0,1] |
1212
| Reward Shape | (2,) or (2+board_width,) |
1313
"""
14+
1415
from __future__ import annotations
1516

1617
import os

momaland/envs/connect4/moconnect4_v0.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Connect 4 environment with multiple objectives."""
2+
23
from momaland.envs.connect4.connect4 import env, raw_env
34

45

momaland/envs/crazyrl/catch/catch_v0.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CrazyRL/Catch environment for MOMARL."""
2+
23
from momaland.envs.crazyrl.catch.catch import env, parallel_env, raw_env
34

45

0 commit comments

Comments
 (0)