Skip to content

Commit

Permalink
Add aarch64_linux to the list of linted files
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Dec 9, 2023
1 parent f414455 commit bafda51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ merge_base_with = "origin/main"

[[linter]]
code = 'RUFF'
include_patterns = ['test/smoke_test/*.py', 's3_management/*.py']
include_patterns = ['test/smoke_test/*.py', 's3_management/*.py', 'aarch64_linux/*.py']
command = [
'python3',
'tools/linter/adapters/ruff_linter.py',
Expand Down
2 changes: 1 addition & 1 deletion aarch64_linux/build_aarch64_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def build_torchvision(host: RemoteHost, *,
# Remove .so files to force static linking
host.run_cmd("rm miniforge3/lib/libpng.so miniforge3/lib/libpng16.so miniforge3/lib/libjpeg.so")
# And patch setup.py to include libz dependency for libpng
host.run_cmd(['sed -i -e \'s/image_link_flags\.append("png")/image_link_flags += ["png", "z"]/\' vision/setup.py'])
host.run_cmd(['sed -i -e \'s/image_link_flags\\.append("png")/image_link_flags += ["png", "z"]/\' vision/setup.py'])

build_vars = ""
if branch == "nightly":
Expand Down
2 changes: 1 addition & 1 deletion aarch64_linux/embed_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def replace_tag(filename):
with open(filename, 'r') as f:
with open(filename) as f:
lines = f.read().split("\\n")
for i,line in enumerate(lines):
if not line.startswith("Tag: "):
Expand Down

0 comments on commit bafda51

Please sign in to comment.