From 243cb492aa910eaecde79de52c6e9be465acf763 Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Mon, 16 Sep 2024 11:07:08 -0400 Subject: [PATCH] Run pre-commit on all files (#3884) --- .devcontainer/README.MD | 2 +- evaluation/logic_reasoning/.cache_program/rules.krb | 2 +- .../regression/cases/node-cli-rewrite/start/string_cli.py | 6 ++++++ .../regression/cases/python-cli-help/start/string_cli.py | 6 ++++++ frontend/public/safari-pinned-tab.svg | 6 +++--- pyproject.toml | 2 ++ 6 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.devcontainer/README.MD b/.devcontainer/README.MD index d9fe31f38f..001c24beb4 100644 --- a/.devcontainer/README.MD +++ b/.devcontainer/README.MD @@ -1 +1 @@ -The files in this directory configure a development container for GitHub Codespaces. \ No newline at end of file +The files in this directory configure a development container for GitHub Codespaces. diff --git a/evaluation/logic_reasoning/.cache_program/rules.krb b/evaluation/logic_reasoning/.cache_program/rules.krb index aed3e3b685..f9928fd5cb 100644 --- a/evaluation/logic_reasoning/.cache_program/rules.krb +++ b/evaluation/logic_reasoning/.cache_program/rules.krb @@ -49,4 +49,4 @@ fact8 facts.Smart(Dave, True) facts.Kind(Dave, True) assert - facts.Quiet(Dave, True) \ No newline at end of file + facts.Quiet(Dave, True) diff --git a/evaluation/regression/cases/node-cli-rewrite/start/string_cli.py b/evaluation/regression/cases/node-cli-rewrite/start/string_cli.py index e398862ac3..6784551305 100644 --- a/evaluation/regression/cases/node-cli-rewrite/start/string_cli.py +++ b/evaluation/regression/cases/node-cli-rewrite/start/string_cli.py @@ -29,21 +29,27 @@ if __name__ == '__main__': if command == 'reverse': from commands.reverse import reverse_string + print(reverse_string(input_string)) elif command == 'uppercase': from commands.uppercase import to_uppercase + print(to_uppercase(input_string)) elif command == 'lowercase': from commands.lowercase import to_lowercase + print(to_lowercase(input_string)) elif command == 'spongebob': from commands.spongebob import spongebob_case + print(spongebob_case(input_string)) elif command == 'length': from commands.length import string_length + print(string_length(input_string)) elif command == 'scramble': from commands.scramble import scramble_string + print(scramble_string(input_string)) else: print('Invalid command!') diff --git a/evaluation/regression/cases/python-cli-help/start/string_cli.py b/evaluation/regression/cases/python-cli-help/start/string_cli.py index cd008d7565..2deb02b0a6 100644 --- a/evaluation/regression/cases/python-cli-help/start/string_cli.py +++ b/evaluation/regression/cases/python-cli-help/start/string_cli.py @@ -10,21 +10,27 @@ if __name__ == '__main__': if command == 'reverse': from commands.reverse import reverse_string + print(reverse_string(input_string)) elif command == 'uppercase': from commands.uppercase import to_uppercase + print(to_uppercase(input_string)) elif command == 'lowercase': from commands.lowercase import to_lowercase + print(to_lowercase(input_string)) elif command == 'spongebob': from commands.spongebob import spongebob_case + print(spongebob_case(input_string)) elif command == 'length': from commands.length import string_length + print(string_length(input_string)) elif command == 'scramble': from commands.scramble import scramble_string + print(scramble_string(input_string)) else: print('Invalid command!') diff --git a/frontend/public/safari-pinned-tab.svg b/frontend/public/safari-pinned-tab.svg index 8d1a6120f8..fb271c3449 100644 --- a/frontend/public/safari-pinned-tab.svg +++ b/frontend/public/safari-pinned-tab.svg @@ -9,8 +9,8 @@ @@ -29,4 +29,4 @@ - \ No newline at end of file + diff --git a/pyproject.toml b/pyproject.toml index 815a4cd959..a3d94c1404 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,7 @@ reportlab = "*" [tool.coverage.run] concurrency = ["gevent"] + [tool.poetry.group.runtime.dependencies] jupyterlab = "*" notebook = "*" @@ -115,6 +116,7 @@ ignore = ["D1"] [tool.ruff.lint.pydocstyle] convention = "google" + [tool.poetry.group.evaluation.dependencies] streamlit = "*" whatthepatch = "*"