-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from compomics/minor-changes
Minor changes
- Loading branch information
Showing
8 changed files
with
721 additions
and
520 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,51 @@ | ||
name: Test and Lint Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
|
||
steps: | ||
# Checkout the code from the repository | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Python environment for each version in the matrix | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Install dependencies | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install .[dev] # Install both runtime and dev dependencies | ||
# Run linting with ruff (this will catch print statements) | ||
- name: Lint with ruff | ||
run: | | ||
pip install ruff # Ensure ruff is available if not installed through dev dependencies | ||
ruff check mumble tests # Lint your package and test directories | ||
# Run formatting checks with black | ||
- name: Check formatting with black | ||
run: | | ||
pip install black # Ensure black is available if not installed through dev dependencies | ||
black --check . # Check if code is correctly formatted | ||
# Run tests with pytest | ||
- name: Run tests with pytest | ||
run: | | ||
pip install pytest | ||
pytest --maxfail=1 --disable-warnings -q |
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 @@ | ||
__version__ = "0.1.2" | ||
__version__ = "0.2.0" | ||
__all__ = ["PSMHandler"] | ||
|
||
from mumble.mumble import PSMHandler |
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.