-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refine: apply pre-commit fixes (#298)
This PR applies the changes suggested by the following pre-commit hooks: 1. (autofix applied) pre-commit-hooks(end-of-file-fixer and trailing-whitespace) 2. (autofix applied) black 3. (manual fixes) flake8 4. (autofix applied) isort 5. (autofix applied) pyproject-fmt 6. (autofix applied) markdownlint-cli The pre-commit.ci check is green after all the fixes applied. The already available configurations for each tools are respected.
- Loading branch information
1 parent
b021bae
commit fcda1b5
Showing
45 changed files
with
415 additions
and
305 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
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
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 |
---|---|---|
|
@@ -4,10 +4,6 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "otaclient/**" | ||
- "tests/**" | ||
- ".github/workflows/test.yaml" | ||
push: | ||
branches: | ||
- main | ||
|
@@ -47,42 +43,3 @@ jobs: | |
with: | ||
pytest-xml-coverage-path: test_result/coverage.xml | ||
junitxml-path: test_result/pytest.xml | ||
|
||
python_lint_check: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 3 | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install test dependencies | ||
run: | | ||
python -m pip install -q --upgrade pip | ||
python -m pip install -q -r tests/requirements.txt | ||
- name: Lint codes without modification | ||
run: | | ||
$pythonLocation/bin/python -m black ./otaclient --check | ||
- name: Lint codes for syntax check | ||
run: | | ||
$pythonLocation/bin/python -m flake8 ./otaclient | ||
markdown_lint_check: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: markdownlint-cli | ||
uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
config_file: .markdownlint.yaml | ||
ignore_files: .markdownlintignore | ||
#ignore_path: examples/.markdownlintignore | ||
#rules: examples/rules/custom.js |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"MD013": false | ||
"MD041": false | ||
"MD024": | ||
"siblings_only": true |
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
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
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
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
Oops, something went wrong.
fcda1b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report