-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Follow PEP 8 standard (#142) * QML Architecture Updates (#145) --------- Co-authored-by: @GreshmaShaji Co-authored-by: Florian Kiwit Co-authored-by: @Marvmann
- Loading branch information
Showing
133 changed files
with
8,466 additions
and
8,850 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ jobs: | |
defaults: | ||
run: | ||
shell: bash -el {0} | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
@@ -29,8 +31,31 @@ jobs: | |
python-version: '3.9.16' | ||
token: ${{ secrets.QUARK_GH_GITHUB_COM_TOKEN }} | ||
|
||
- name: Install pylint | ||
run: pip install pylint | ||
- name: Install pylint and autopep8 | ||
run: pip install pylint autopep8 | ||
|
||
- name: Disable Git LFS locking | ||
run: git config lfs.https://github.com/QUARK-framework/QUARK.git/info/lfs.locksverify false | ||
|
||
- name: Run autopep8 (fix PEP8 issues automatically) | ||
run: autopep8 --in-place --recursive --aggressive --max-line-length 120 -v . | ||
|
||
- name: Clean the workspace | ||
if: github.event_name == 'pull_request' | ||
run: git reset --hard | ||
|
||
- name: Commit changes if any | ||
if: github.event_name == 'push' | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
if git diff-index --quiet HEAD; then | ||
echo "No changes to commit" | ||
else | ||
git commit -m "Apply autopep8 formatting" | ||
git push origin HEAD:${{ github.ref }} | ||
fi | ||
- name: Run pylint | ||
uses: wearerequired/lint-action@v2 | ||
|
Oops, something went wrong.