From f38b01eefc083729f7accab57274705e4b9e1fd6 Mon Sep 17 00:00:00 2001 From: Omar Al-Jarrah Date: Tue, 28 Nov 2023 16:29:27 +0300 Subject: [PATCH] Use python module for docformatter in Github workflow The command in the 'Format Code' step of our Github workflow has been updated to call the docformatter package as a python module. This change rectifies an issue where the docformatter couldn't be found when invoked via the sudo command, ensuring smooth execution of our code formatting in the future. --- .github/workflows/generator-publish-sources.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generator-publish-sources.yaml b/.github/workflows/generator-publish-sources.yaml index dc22eae5..64a33008 100644 --- a/.github/workflows/generator-publish-sources.yaml +++ b/.github/workflows/generator-publish-sources.yaml @@ -44,7 +44,7 @@ jobs: - name: Format Code run: | pip3 install -r requirements-dev.txt - sudo docformatter --recursive --black --in-place --close-quotes-on-newline --config pyproject.toml release + sudo python3 -m docformatter --recursive --black --in-place --close-quotes-on-newline --config pyproject.toml release isort release black release - name: Create PR