Skip to content

Commit 694f5c2

Browse files
committed
fix(craftax): satisfy build and documentation lint
1 parent c2f67a7 commit 694f5c2

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

docs/env/craftax.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Rendering
132132
``render_tile_size=16``, Classic frames are ``(144, 144, 3)`` and full Craftax
133133
frames are ``(208, 176, 3)``. ``render_tile_size=64`` selects the official human
134134
texture resolution. The standard ``render_width`` and ``render_height``
135-
options resize the resulting frame by nearest-neighbour sampling.
135+
options resize the resulting frame by nearest-neighbor sampling.
136136

137137
The renderer includes the official sprites, inventory digits, projectiles,
138138
light and night effects, sleep shading, and full-game floor visibility.

docs/spelling_wordlist.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,14 @@ Goalcycle
118118
GoalCycle
119119
gridworld
120120
Ndousse
121+
Craftax
122+
renderers
123+
autoreset
124+
AutoReset
125+
namedtuples
126+
reproducibility
127+
Threefry
128+
partitionable
129+
JAXlib
130+
grayscale
131+
gameplay

envpool/craftax/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ genrule(
153153
"oracle_textures/classic.bz2",
154154
"oracle_textures/full.bz2",
155155
],
156-
cmd = "$(location :generate_oracle_cache) --classic $(location oracle_textures/classic.bz2) --full $(location oracle_textures/full.bz2)",
156+
cmd = "$(execpath :generate_oracle_cache) --classic $(execpath oracle_textures/classic.bz2) --full $(execpath oracle_textures/full.bz2)",
157157
tools = [":generate_oracle_cache"],
158158
)
159159

third_party/craftax/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ genrule(
3737
"@craftax_upstream//:craftax/craftax_classic/constants.py",
3838
],
3939
outs = ["textures.cc"],
40-
cmd = "$(location :generate_assets) --classic $(location @craftax_upstream//:craftax/craftax_classic/constants.py) --full $(location @craftax_upstream//:craftax/craftax/constants.py) --output $@",
40+
cmd = "$(execpath :generate_assets) --classic $(execpath @craftax_upstream//:craftax/craftax_classic/constants.py) --full $(execpath @craftax_upstream//:craftax/craftax/constants.py) --output $@",
4141
tools = [":generate_assets"],
4242
)
4343

@@ -52,7 +52,7 @@ genrule(
5252
"constants.h",
5353
"info.h",
5454
],
55-
cmd = "$(location :generate_metadata) --classic $(location @craftax_upstream//:craftax/craftax_classic/constants.py) --full $(location @craftax_upstream//:craftax/craftax/constants.py) --world $(location @craftax_upstream//:craftax/craftax/world_gen/world_gen_configs.py) --output $(location constants.h) --info-output $(location info.h)",
55+
cmd = "$(execpath :generate_metadata) --classic $(execpath @craftax_upstream//:craftax/craftax_classic/constants.py) --full $(execpath @craftax_upstream//:craftax/craftax/constants.py) --world $(execpath @craftax_upstream//:craftax/craftax/world_gen/world_gen_configs.py) --output $(execpath constants.h) --info-output $(execpath info.h)",
5656
tools = [":generate_metadata"],
5757
)
5858

0 commit comments

Comments
 (0)