diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 414a8b77..a6f924c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: ^(.gitignore|generate_sbom.py|extract_file_info.py|pe_info.py) repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.1 hooks: # Run the linter - id: ruff diff --git a/docs/windows_installer_tutorial/setupstepper.py b/docs/windows_installer_tutorial/setupstepper.py index d017756c..edab4cd0 100644 --- a/docs/windows_installer_tutorial/setupstepper.py +++ b/docs/windows_installer_tutorial/setupstepper.py @@ -54,7 +54,7 @@ def launch_installer() -> Application: # Start application with proper arguments msiprefix = "msiexec /i " if (arguments["-type"] == "msi") else "" - app = app.start(f"{msiprefix}\"{arguments['-path']}\"") + app = app.start(f'{msiprefix}"{arguments["-path"]}"') # Wait for the application to start sleep(1.5 if (arguments["-type"] == "msi") else 0.75) diff --git a/surfactant/cmd/ui.py b/surfactant/cmd/ui.py index 83dda83b..a3602fa7 100644 --- a/surfactant/cmd/ui.py +++ b/surfactant/cmd/ui.py @@ -53,7 +53,7 @@ def generate(): config_file.flush() output_file_name = ( - f'{datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S_%f")}_generate.json' + f"{datetime.datetime.now().strftime('%Y_%m_%d_%H_%M_%S_%f')}_generate.json" ) with open(f"results/{output_file_name}", "w") as _: @@ -86,7 +86,7 @@ def merge(): # pylint: disable=broad-exception-caught, no-value-for-parameter try: req = flask.request.get_json() - output_file_name = f'{datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S_%f")}_merge.json' + output_file_name = f"{datetime.datetime.now().strftime('%Y_%m_%d_%H_%M_%S_%f')}_merge.json" with open(f"results/{output_file_name}", "w") as _: args = req["inputs"]