Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: improve the CI code #55

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/on-pr-against-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
with:
junitxml-path: ./pytest-junit.xml
pytest-xml-coverage-path: ./coverage.xml
- name: Run Black style check on source code
run: black --check ./src ./tests
- name: Run isort import organizer on source code
- name: Run isort to check Python import order
run: isort --check --profile black ./src ./tests
- name: Run Flake8 linter
- name: Run Black to check the Python code style and quality
run: black --check ./src ./tests
- name: Run Flake8 to check the Python code style and quality
run: flake8 ./src ./tests

# ===================================================================================== #
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-pr-against-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
with:
junitxml-path: ./pytest-junit.xml
pytest-xml-coverage-path: ./coverage.xml
- name: Run Black style check on source code
run: black --check ./src ./tests
- name: Run isort import organizer on source code
- name: Run isort to check Python import order
run: isort --check --profile black ./src ./tests
- name: Run Flake8 linter
- name: Run Black to check the Python code style and quality
run: black --check ./src ./tests
- name: Run Flake8 to check the Python code style and quality
run: flake8 ./src ./tests

# ===================================================================================== #
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-push-to-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
- name: Run unit tests with pytest
# pytest-coverage.txt is required to properly report coverage in README.md.
run: pytest | tee ./pytest-coverage.txt
- name: Run Black style check on source code
run: black --check ./src ./tests
- name: Run isort import organizer on source code
- name: Run isort to check Python import order
run: isort --check --profile black ./src ./tests
- name: Run Flake8 linter
- name: Run Black to check the Python code style and quality
run: black --check ./src ./tests
- name: Run Flake8 to check the Python code style and quality
run: flake8 ./src ./tests
- name: Generate unit test coverage report
id: report-coverage
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-push-to-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
- name: Run unit tests with pytest
# pytest-coverage.txt is required to properly report coverage in README.md.
run: pytest | tee ./pytest-coverage.txt
- name: Run Black style check on source code
run: black --check ./src ./tests
- name: Run isort import organizer on source code
- name: Run isort to check Python import order
run: isort --check --profile black ./src ./tests
- name: Run Flake8 linter
- name: Run Black to check the Python code style and quality
run: black --check ./src ./tests
- name: Run Flake8 to check the Python code style and quality
run: flake8 ./src ./tests
- name: Generate unit test coverage report
id: report-coverage
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
files: \.(py|rst|sh|yaml|yml)$
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
Expand Down
Loading