Skip to content

Commit 57bfade

Browse files
authored
upgrade github actions (#24)
* 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
1 parent 6004159 commit 57bfade

26 files changed

+29
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.x'
2222
- name: Install dependencies
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python -m build --sdist --wheel .
2929
- name: Store the distribution packages
30-
uses: actions/upload-artifact@v3
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: python-package-distributions
3333
path: dist/
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: Download all the dists
50-
uses: actions/download-artifact@v3
50+
uses: actions/download-artifact@v4
5151
with:
5252
name: python-package-distributions
5353
path: dist/

crema/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Initialize the crema package."""
2+
23
try:
34
from importlib.metadata import version, PackageNotFoundError
45

crema/confidence.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The :py:class:`Confidence` class is used to define a collection of
22
peptide-spectrum matches with calculated false discovery rates (FDR) and q-values.
33
"""
4+
45
import logging
56
import numpy as np
67
import pandas as pd

crema/crema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This is the command line interface for crema
33
"""
4+
45
import os
56
import sys
67
import time

crema/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The :py:class:`PsmDataset` class is used to define a collection of
22
peptide-spectrum matches.
33
"""
4+
45
import logging
56

67
from .confidence import TdcConfidence

crema/params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The :py:class:`Params` class is used to define the details and arguments
22
necessary for running crema from the command line.
33
"""
4+
45
import argparse
56
import textwrap
67
from . import __version__

crema/parsers/comet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for Comet output"""
2+
23
import re
34
import logging
45

crema/parsers/msamanda.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for the MSAmanda tab-delimited format"""
2+
23
import re
34
import logging
45

crema/parsers/msfragger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for the MSFragger tab-delimited format"""
2+
23
import re
34
import logging
45

crema/parsers/msgf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for the MSGF+ tab-delimited format"""
2+
23
import re
34
import logging
45

crema/parsers/mztab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains the parser for PSMs in mzTab format"""
2+
23
import logging
34

45
import pandas as pd

crema/parsers/pepxml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module contains the parser for PSMs in pepXML format.
33
This code is heavily based on Will Fondrie's Mokapot pepxml parser code
44
"""
5+
56
import logging
67
from lxml import etree
78
from functools import partial

crema/parsers/tide.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for the Tide tab-delimited format"""
2+
23
import re
34
import logging
45

crema/parsers/txt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A parser for generic delmited text files."""
2+
23
import logging
34

45
import pandas as pd

crema/qvalues.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module estimates q-values.
33
"""
4+
45
import logging
56

67
import numpy as np

crema/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility functions that are used in multiple modules"""
2+
23
import pandas as pd
34
import logging
45

crema/writers/txt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Writer to save results in a tab-delmited format"""
2+
23
from pathlib import Path
34
from collections import defaultdict
45

docs/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## [Unreleased]
44
### Fixed
55

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

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Setup the crema package.
33
"""
4+
45
import setuptools
56

67
setuptools.setup()

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Fixtures that are used in multiple tests"""
2+
23
from pathlib import Path
34

45
import pytest

tests/system_tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""These tests verify that the crema CLI works as expected."""
2+
23
from pathlib import Path
34
import subprocess
45

tests/system_tests/test_crux_tdc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""These tests verify that confidence estimates are correctly produced via tdc through various parsers"""
2+
23
import unittest
34

45
import numpy as np

tests/unit_tests/test_confidence.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
These tests verify the confidence implementations function as expected
33
"""
4+
45
import pytest
56
import numpy as np
67

tests/unit_tests/test_dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
These are unit tests for the PSM Dataset Class:
33
"""
4+
45
import pytest
56
import numpy as np
67
import pandas as pd

tests/unit_tests/test_parsers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
These are unit tests for functions within parsers.py:
33
"""
4+
45
import pytest
56
import pandas as pd
67

tests/unit_tests/test_qvalues.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
These tests verify that our q-value calculations are correct.
33
"""
4+
45
import logging
56

67
import pytest

0 commit comments

Comments
 (0)