Skip to content

Commit

Permalink
makefile and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
edbeeching committed Jan 23, 2024
1 parent b9a804b commit 374eafe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.PHONY: quality style test unity-test

check_dirs := src tests godot_rl
check_dirs := tests godot_rl

# Format source code automatically
style:
python -m black --line-length 119 --target-version py310 $(check_dirs) setup.py
python -m isort $(check_dirs) setup.py
black --line-length 120 --target-version py310 tests godot_rl
isort -w 120 tests godot_rl
# Check that source code meets quality standards
quality:
python -m black --check --line-length 119 --target-version py310 $(check_dirs) setup.py
python -m isort --check-only $(check_dirs) setup.py
python -m flake8 --max-line-length 119 $(check_dirs) setup.py
black --check --line-length 120 --target-version py310 tests godot_rl
isort -w 120 --check-only tests godot_rl
flake8 --max-line-length 120 tests godot_rl

# Run tests for the library
test:
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ test =
dev =
pytest>=6.0
pytest-xdist
black[jupyter]~=22.0
flake8>=3.8.3
isort>=5.0.0
black
flake8
isort
pyyaml>=5.3.1

sf =
Expand Down
2 changes: 0 additions & 2 deletions tests/benchmark_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
results = {}

for framerate, port in zip(framerates, ports):

env = GodotEnv(
env_path=env_path,
port=port,
Expand All @@ -44,7 +43,6 @@
action_space = env.action_space
start = time.time()
for i in range(N_STEPS):

actions = [action_space.sample() for _ in range(n_envs)]
_ = env.step(actions)

Expand Down

0 comments on commit 374eafe

Please sign in to comment.