Skip to content

Commit

Permalink
upgrade github actions (#24)
Browse files Browse the repository at this point in the history
* changes resulting from upgrading black formatter

* change setup-python@v4 to setup-python@v5

* update upload-artifact@v4 and download-artifact@v4 to v5

* update changelog
  • Loading branch information
bmx8177 authored Feb 22, 2024
1 parent 6004159 commit 57bfade
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -27,7 +27,7 @@ jobs:
run: |
python -m build --sdist --wheel .
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -47,7 +47,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down
1 change: 1 addition & 0 deletions crema/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Initialize the crema package."""

try:
from importlib.metadata import version, PackageNotFoundError

Expand Down
1 change: 1 addition & 0 deletions crema/confidence.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""The :py:class:`Confidence` class is used to define a collection of
peptide-spectrum matches with calculated false discovery rates (FDR) and q-values.
"""

import logging
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions crema/crema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This is the command line interface for crema
"""

import os
import sys
import time
Expand Down
1 change: 1 addition & 0 deletions crema/dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""The :py:class:`PsmDataset` class is used to define a collection of
peptide-spectrum matches.
"""

import logging

from .confidence import TdcConfidence
Expand Down
1 change: 1 addition & 0 deletions crema/params.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""The :py:class:`Params` class is used to define the details and arguments
necessary for running crema from the command line.
"""

import argparse
import textwrap
from . import __version__
Expand Down
1 change: 1 addition & 0 deletions crema/parsers/comet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for Comet output"""

import re
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/parsers/msamanda.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for the MSAmanda tab-delimited format"""

import re
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/parsers/msfragger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for the MSFragger tab-delimited format"""

import re
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/parsers/msgf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for the MSGF+ tab-delimited format"""

import re
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/parsers/mztab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains the parser for PSMs in mzTab format"""

import logging

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions crema/parsers/pepxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module contains the parser for PSMs in pepXML format.
This code is heavily based on Will Fondrie's Mokapot pepxml parser code
"""

import logging
from lxml import etree
from functools import partial
Expand Down
1 change: 1 addition & 0 deletions crema/parsers/tide.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for the Tide tab-delimited format"""

import re
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/parsers/txt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A parser for generic delmited text files."""

import logging

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions crema/qvalues.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module estimates q-values.
"""

import logging

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions crema/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions that are used in multiple modules"""

import pandas as pd
import logging

Expand Down
1 change: 1 addition & 0 deletions crema/writers/txt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Writer to save results in a tab-delmited format"""

from pathlib import Path
from collections import defaultdict

Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## [Unreleased]
### Fixed

## [0.0.10] - 2024-02-01
## [0.0.10] - 2024-02-21
- Upgraded Github action versions
- Updated CLI documentation
- Removed protein field requirement from create\_pairing\_from\_file function

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Setup the crema package.
"""

import setuptools

setuptools.setup()
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures that are used in multiple tests"""

from pathlib import Path

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/system_tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""These tests verify that the crema CLI works as expected."""

from pathlib import Path
import subprocess

Expand Down
1 change: 1 addition & 0 deletions tests/system_tests/test_crux_tdc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""These tests verify that confidence estimates are correctly produced via tdc through various parsers"""

import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/test_confidence.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These tests verify the confidence implementations function as expected
"""

import pytest
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/test_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These are unit tests for the PSM Dataset Class:
"""

import pytest
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/test_parsers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These are unit tests for functions within parsers.py:
"""

import pytest
import pandas as pd

Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/test_qvalues.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These tests verify that our q-value calculations are correct.
"""

import logging

import pytest
Expand Down

0 comments on commit 57bfade

Please sign in to comment.