-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
497 additions
and
291 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Pytest Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- test-linting | ||
|
||
jobs: | ||
pytest-lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
|
||
- name: Set up virtual environment in /tests-functional/ | ||
run: | | ||
python -m venv tests-functional/.venv | ||
echo "tests-functional/.venv/bin" >> $GITHUB_PATH # Add virtualenv to PATH for subsequent steps | ||
- name: Install dependencies based on requirements.txt | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run pytest-lint from Makefile | ||
run: make pytest-lint |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"include": ["tests-functional"], | ||
"venvPath": "./tests-functional", // Ensure the virtual environment (.venv) is located in ./tests-functional | ||
"venv": ".venv", | ||
"typeCheckingMode": "off" | ||
} |
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,31 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 # Latest version of Black | ||
hooks: | ||
- id: black | ||
args: [--line-length=150] | ||
files: ^tests-functional/.*\.py$ | ||
# Black: Automatically formats Python code to adhere to its strict style guidelines. | ||
# - Ensures consistent code formatting across the project. | ||
# - Helps maintain readability and avoids debates about style in code reviews. | ||
|
||
- repo: https://github.com/RobertCraigie/pyright-python | ||
rev: v1.1.388 # Version of Pyright used | ||
hooks: | ||
- id: pyright | ||
files: ^tests-functional/.*\.py$ | ||
# Pyright: A static type checker for Python. | ||
# - Validates type hints and ensures type correctness in code. | ||
# - Identifies type mismatches, missing imports, and potential runtime errors. | ||
# - Ensures better type safety and helps catch bugs early. | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.1.1 # Latest version of Flake8 | ||
hooks: | ||
- id: flake8 | ||
args: ["--max-line-length=150"] | ||
files: ^tests-functional/.*\.py$ | ||
# Flake8: A lightweight Python linter for style and syntax checking. | ||
# - Detects unused imports, undefined variables, and redefined functions (e.g., F811). | ||
# - Checks for adherence to Python coding standards (PEP 8). | ||
# - Helps maintain clean, bug-free code. |
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.