Skip to content

Conversation

@JeremieGince
Copy link
Owner

Description

This pull request introduces enhancements to the project's testing and formatting workflows, focusing on improving code quality and parallelizing test execution. The most significant changes include adding isort for import sorting, enabling parallel test execution with pytest-xdist, and updating related configurations and scripts.

Testing Workflow Enhancements:

  • .github/workflows/tests.yml: Added isort to the CI workflow to check and enforce import order. Enabled parallel test execution for notebooks by adding the -n=auto flag and specifying the kernel with --nbmake-kernel=python3.

  • run_pytests.py: Updated the pytest command to include the -n=auto flag for parallel test execution.

Dependency Updates:

  • pyproject.toml: Added pytest-xdist (for parallel test execution) and isort (for import sorting) as new dependencies.

Documentation Updates:


Checklist

Please complete the following checklist when submitting a PR. The PR will not be reviewed until all items are checked.

  • All new features include a unit test.
    Make sure that the tests passed and the coverage is
    sufficient by running python run_pytests.py --tests_folder=tests or
    pytest tests --cov=src --cov-report=term-missing.

  • All new functions and code are clearly documented.

  • The code is formatted using Black.
    You can do this by running black src tests.

  • The code is type-checked using Mypy.
    You can do this by running mypy src tests.

Added isort for import sorting and pytest-xdist for parallel test execution to the development dependencies and CI workflow. Updated the pull request template to include isort checks, modified the test workflow to run isort and use parallel execution for notebook tests, and updated run_pytests.py to enable parallel test runs.
Adjusted import order in tests/__init__.py, tests/conftest.py, and tests/test_dummy.py to improve readability and maintain a consistent style.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 19, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
21 21 100% 98% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 1c3aa25 by action🐍

@JeremieGince JeremieGince merged commit b8918fb into main Jun 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants