Skip to content

Commit

Permalink
Ruff do you love me?
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Mar 25, 2024
1 parent f426441 commit bc49a03
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ def install_antlrjar():

jars = Path('jars')
jars.mkdir(exist_ok=True)
with (jars / FILE).open('wb') as ouf:
with urlopen(URL) as inf:
ouf.write(inf.read())
with (jars / FILE).open('wb') as ouf, urlopen(URL) as inf: # noqa: S310
ouf.write(inf.read())

print(f'Remember to add set ANTLR4_JAR="{(jars / FILE).resolve()}" in your environment')
print(f'Remember to add set ANTLR4_JAR="{(jars / FILE).resolve()}" in your environment') # noqa: T201


if __name__ == '__main__':
Expand Down

0 comments on commit bc49a03

Please sign in to comment.