From 89df357a341cc40f28ad94231837a36986ebac76 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 26 Jan 2024 15:02:45 +0000 Subject: [PATCH 1/2] Addition of isort isort sorts package imports automatically. This will ensure that there is a consistent style in all repos. Is is developed and supported by the https://github.com/PyCQA ( Python Code Quality Authority) --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3fca6ff..f0918b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,3 +11,9 @@ repos: - id: flake8 args: ['--max-line-length=88', '--select=W291,W292,W293,F401'] language_version: python3 + +- repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + args: ["--profile", "black"] \ No newline at end of file From 3cc806fc68e0c20025193230a6f62f4817cef71d Mon Sep 17 00:00:00 2001 From: James Parkhurst Date: Fri, 2 Feb 2024 04:31:33 +0000 Subject: [PATCH 2/2] Blackened --- src/template/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/template/__init__.py b/src/template/__init__.py index 1ecf8c6..4d5004d 100644 --- a/src/template/__init__.py +++ b/src/template/__init__.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + def example(a, b): """ This is an example function that add the values of a and b