Skip to content

Commit cf280d6

Browse files
authored
Merge pull request nf-core#1793 from nf-core/dev
Dev -> Master v2.5.1
2 parents cd0ac0b + ee6b104 commit cf280d6

File tree

9 files changed

+38
-14
lines changed

9 files changed

+38
-14
lines changed

.github/RELEASE_CHECKLIST.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
1. Check issue milestones to see outstanding issues to resolve if possible or transfer to the milestones for the next release e.g. [`v1.9`](https://github.com/nf-core/tools/issues?q=is%3Aopen+is%3Aissue+milestone%3A1.9)
44
2. Most importantly, pick an undeniably outstanding [name](http://www.codenamegenerator.com/) for the release where _Prefix_ = _Metal_ and _Dictionary_ = _Animal_.
5-
3. Check whether the GitHub Actions workflow scripts need updating of the Nextflow versions
5+
3. Check the [pipeline health page](https://nf-co.re/pipeline_health) to make sure that all repos look sane (missing `TEMPLATE` branches etc)
66
4. Create a PR to `dev` to bump the version in `CHANGELOG.md` and `setup.py`.
77
5. Make sure all CI tests are passing!
88
6. Create a PR from `dev` to `master`
99
7. Make sure all CI tests are passing again (additional tests are run on PRs to `master`)
1010
8. Request review (2 approvals required)
1111
9. Merge the PR into `master`
12-
10. Wait for CI tests on the commit to passed
13-
11. (Optional but a good idea) Run a manual sync on `nf-core/testpipeline` and check that CI is passing on the resulting PR.
14-
12. Create a new release copying the `CHANGELOG` for that release into the description section.
12+
10. Run `rich-codex` to regenerate docs screengrabs (actions `workflow_dispatch` button)
13+
11. Wait for CI tests on the commit to passed
14+
12. (Optional but a good idea) Run a manual sync on `nf-core/testpipeline` and check that CI is passing on the resulting PR.
15+
13. Create a new release copying the `CHANGELOG` for that release into the description section.
1516

1617
## After release
1718

.github/workflows/deploy-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131

3232
- name: Publish dist to PyPI
3333
if: github.repository == 'nf-core/tools'
34-
uses: pypa/gh-action-pypi-publish@master
34+
uses: pypa/gh-action-pypi-publish@release/v1
3535
with:
3636
password: ${{ secrets.pypi_password }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# nf-core/tools: Changelog
22

3+
## [v2.5.1 - Gold Otter Patch](https://github.com/nf-core/tools/releases/tag/2.5.1) - [2022-08-31]
4+
5+
- Patch release to fix black linting in pipelines ([#1789](https://github.com/nf-core/tools/pull/1789))
6+
- Add isort options to pyproject.toml ([#1792](https://github.com/nf-core/tools/pull/1792))
7+
- Lint pyproject.toml file exists and content ([#1795](https://github.com/nf-core/tools/pull/1795))
8+
- Update GitHub PyPI package release action to v1 ([#1785](https://github.com/nf-core/tools/pull/1785))
9+
310
## [v2.5 - Gold Otter](https://github.com/nf-core/tools/releases/tag/2.5) - [2022-08-30]
411

512
### Template

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ authors:
1313
given-names: Johannes
1414
- family-names: Wilm
1515
given-names: Andreas
16-
- family-names: Ulysse Garcia
17-
given-names: Maxime
16+
- family-names: Garcia
17+
given-names: Maxime Ulysse
1818
- family-names: Di Tommaso
1919
given-names: Paolo
2020
- family-names: Nahnsen
@@ -39,8 +39,8 @@ prefered-citation:
3939
given-names: Johannes
4040
- family-names: Wilm
4141
given-names: Andreas
42-
- family-names: Ulysse Garcia
43-
given-names: Maxime
42+
- family-names: Garcia
43+
given-names: Maxime Ulysse
4444
- family-names: Di Tommaso
4545
given-names: Paolo
4646
- family-names: Nahnsen

nf_core/lint/files_exist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def files_exist(self):
7373
.github/workflows/awstest.yml
7474
.github/workflows/awsfulltest.yml
7575
lib/WorkflowPIPELINE.groovy
76+
pyproject.toml
7677
7778
Files that *must not* be present:
7879
@@ -174,6 +175,7 @@ def files_exist(self):
174175
[os.path.join(".github", "workflows", "awsfulltest.yml")],
175176
[os.path.join("lib", f"Workflow{short_name[0].upper()}{short_name[1:]}.groovy")],
176177
["modules.json"],
178+
["pyproject.toml"],
177179
]
178180

179181
# List of strings. Fails / warns if any of the strings exist.

nf_core/lint/files_unchanged.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def files_unchanged(self):
5050
5151
.gitignore
5252
.prettierignore
53+
pyproject.toml
5354
5455
.. tip:: You can configure the ``nf-core lint`` tests to ignore any of these checks by setting
5556
the ``files_unchanged`` key as follows in your ``.nf-core.yml`` config file. For example:
@@ -110,7 +111,7 @@ def files_unchanged(self):
110111
[os.path.join("lib", "NfcoreTemplate.groovy")],
111112
]
112113
files_partial = [
113-
[".gitignore", ".prettierignore"],
114+
[".gitignore", ".prettierignore", "pyproject.toml"],
114115
]
115116

116117
# Only show error messages from pipeline creation

nf_core/pipeline-template/bin/check_samplesheet.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def _validate_pair(self, row):
9898
"""Assert that read pairs have the same file extension. Report pair status."""
9999
if row[self._first_col] and row[self._second_col]:
100100
row[self._single_col] = False
101-
if Path(row[self._first_col]).suffixes[-2:] != Path(row[self._second_col]).suffixes[-2:]:
101+
first_col_suffix = Path(row[self._first_col]).suffixes[-2:]
102+
second_col_suffix = Path(row[self._second_col]).suffixes[-2:]
103+
if first_col_suffix != second_col_suffix:
102104
raise AssertionError("FASTQ pairs must have the same file extensions.")
103105
else:
104106
row[self._single_col] = True
@@ -157,7 +159,7 @@ def sniff_format(handle):
157159
handle.seek(0)
158160
sniffer = csv.Sniffer()
159161
if not sniffer.has_header(peek):
160-
logger.critical(f"The given sample sheet does not appear to contain a header.")
162+
logger.critical("The given sample sheet does not appear to contain a header.")
161163
sys.exit(1)
162164
dialect = sniffer.sniff(peek)
163165
return dialect
@@ -195,7 +197,8 @@ def check_samplesheet(file_in, file_out):
195197
reader = csv.DictReader(in_handle, dialect=sniff_format(in_handle))
196198
# Validate the existence of the expected header columns.
197199
if not required_columns.issubset(reader.fieldnames):
198-
logger.critical(f"The sample sheet **must** contain the column headers: {', '.join(required_columns)}.")
200+
req_cols = ", ".join(required_columns)
201+
logger.critical(f"The sample sheet **must** contain these column headers: {req_cols}.")
199202
sys.exit(1)
200203
# Validate each row.
201204
checker = RowChecker()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Config file for Python. Mostly used to configure linting of bin/check_samplesheet.py with Black.
2+
# Should be kept the same as nf-core/tools to avoid fighting with template synchronisation.
3+
[tool.black]
4+
line-length = 120
5+
target_version = ["py37", "py38", "py39", "py310"]
6+
7+
[tool.isort]
8+
profile = "black"
9+
known_first_party = ["nf_core"]
10+
multi_line_output = 3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import find_packages, setup
44

5-
version = "2.5"
5+
version = "2.5.1"
66

77
with open("README.md") as f:
88
readme = f.read()

0 commit comments

Comments
 (0)