Skip to content

Commit

Permalink
Use python module for docformatter in Github workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Omar Al-Jarrah committed Nov 28, 2023
1 parent 3bc26c9 commit f38b01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generator-publish-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f38b01e

Please sign in to comment.