-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Format Python code using black - Format html, css, js files using prettier - Add CI jobs to enforce consistent code formatting Signed-off-by: Michael Adler <[email protected]>
- Loading branch information
1 parent
84fd3b2
commit 2ed48b9
Showing
9 changed files
with
352 additions
and
269 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -28,16 +28,25 @@ jobs: | |
|
||
- name: install dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y python3-gi flake8 pylint python3-pydbus | ||
sudo apt-get update && sudo apt-get install -y python3-gi flake8 pylint python3-pydbus black | ||
pip3 install --break-system-packages fsfe-reuse | ||
git clean -f -d | ||
- name: execute linters | ||
run: | | ||
reuse lint | ||
flake8 | ||
flake8 --max-line-length=88 | ||
pylint linux-entra-sso.py | ||
- name: check Python code formatting | ||
run: black --diff --check . | ||
|
||
- name: run prettier | ||
uses: creyD/[email protected] | ||
with: | ||
dry: true | ||
prettier_options: '--check **/*.{js,html,css}' | ||
|
||
build-xpi: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"tabWidth": 4 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# SPDX-FileCopyrightText: Copyright (c) Siemens AG, 2024 |
Oops, something went wrong.