Skip to content

Commit

Permalink
Run ruff check --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Dec 23, 2024
1 parent dddb093 commit 077f65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# which doesn't have argparse. Given that argparse is
# a dependency that eventually gets installed, we could
# try to bootstrap, but using optparse is just easier.
from __future__ import print_function

import optparse
import os
Expand Down
4 changes: 2 additions & 2 deletions scripts/regenerate-lock-files
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class LockFileBuilder:

def _overwrite_paths(self, output_path: Path):
rel_output_path = os.path.relpath(output_path, self.build_directory)
with open(output_path, "r") as f:
with open(output_path) as f:
content = f.read()
# Overwrite absolute path in --output-file argument.
content = content.replace(str(output_path), str(rel_output_path))
Expand All @@ -119,7 +119,7 @@ def show_files(build_directory: Path, include_sdist: bool, include_base: bool):

def show_file(path: Path):
print(path)
with open(path, 'r') as f:
with open(path) as f:
print(f.read())


Expand Down

0 comments on commit 077f65f

Please sign in to comment.