Skip to content

Commit ec60f53

Browse files
authored
Merge pull request nf-core#1795 from mirpedrol/lint-pyproject
lint pyproject.toml file exists and content
2 parents f330044 + d5cbde0 commit ec60f53

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
- Patch release to fix black linting in pipelines ([#1789](https://github.com/nf-core/tools/pull/1789))
1616
- Add isort options to pyproject.toml ([#1792](https://github.com/nf-core/tools/pull/1792))
17+
- Lint pyproject.toml file exists and content ([#1795](https://github.com/nf-core/tools/pull/1795))
1718
- Update GitHub PyPI package release action to v1 ([#1785](https://github.com/nf-core/tools/pull/1785))
1819

1920
## [v2.5 - Gold Otter](https://github.com/nf-core/tools/releases/tag/2.5) - [2022-08-30]

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

0 commit comments

Comments
 (0)