Skip to content

Commit

Permalink
Merge pull request #2883 from ewels/remove-python-linting-template
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels authored Mar 30, 2024
2 parents fe4383a + bbe232d commit fae6770
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 39 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Set topic variable correctly in the mastodon announcement ([#2848](https://github.com/nf-core/tools/pull/2848))
- Add a cleanup action to `download_pipeline.yml` to fix failures caused by inadequate storage space on the runner ([#2849](https://github.com/nf-core/tools/pull/2849))
- Update python to 3.12 ([#2805](https://github.com/nf-core/tools/pull/2805))
- Remove `pyproject.toml` from template root

### Linting

Expand Down
42 changes: 20 additions & 22 deletions nf_core/lint/files_exist.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,31 +66,30 @@ def files_exist(self) -> Dict[str, Union[List[str], bool]]:
conf/igenomes.config
.github/workflows/awstest.yml
.github/workflows/awsfulltest.yml
pyproject.toml
Files that *must not* be present, due to being renamed or removed in the template:
.. code-block:: bash
Singularity
parameters.settings.json
pipeline_template.yml # saving information in .nf-core.yml
.nf-core.yaml # NB: Should be yml, not yaml
bin/markdown_to_html.r
conf/aws.config
.github/workflows/push_dockerhub.yml
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
docs/images/nf-core-PIPELINE_logo.png
.github/workflows/push_dockerhub.yml
.markdownlint.yml
.nf-core.yaml # NB: Should be yml, not yaml
.yamllint.yml
bin/markdown_to_html.r
conf/aws.config
docs/images/nf-core-PIPELINE_logo.png
lib/Checks.groovy
lib/Completion.groovy
lib/Workflow.groovy
lib/WorkflowPIPELINE.groovy
lib/NfcoreTemplate.groovy
lib/Utils.groovy
lib/Workflow.groovy
lib/WorkflowMain.groovy
lib/WorkflowPIPELINE.groovy
parameters.settings.json
pipeline_template.yml # saving information in .nf-core.yml
Singularity
Files that *should not* be present:
Expand Down Expand Up @@ -176,30 +175,29 @@ def files_exist(self) -> Dict[str, Union[List[str], bool]]:
[Path(".github", "workflows", "awstest.yml")],
[Path(".github", "workflows", "awsfulltest.yml")],
[Path("modules.json")],
[Path("pyproject.toml")],
]

# List of strings. Fails / warns if any of the strings exist.
files_fail_ifexists = [
Path("Singularity"),
Path("parameters.settings.json"),
Path("pipeline_template.yml"), # saving information in .nf-core.yml
Path(".nf-core.yaml"), # yml not yaml
Path("bin", "markdown_to_html.r"),
Path("conf", "aws.config"),
Path(".github", "workflows", "push_dockerhub.yml"),
Path(".github", "ISSUE_TEMPLATE", "bug_report.md"),
Path(".github", "ISSUE_TEMPLATE", "feature_request.md"),
Path("docs", "images", f"nf-core-{short_name}_logo.png"),
Path(".github", "workflows", "push_dockerhub.yml"),
Path(".markdownlint.yml"),
Path(".nf-core.yaml"), # yml not yaml
Path(".yamllint.yml"),
Path("bin", "markdown_to_html.r"),
Path("conf", "aws.config"),
Path("docs", "images", f"nf-core-{short_name}_logo.png"),
Path("lib", "Checks.groovy"),
Path("lib", "Completion.groovy"),
Path("lib", "Workflow.groovy"),
Path("lib", "NfcoreTemplate.groovy"),
Path("lib", "Utils.groovy"),
Path("lib", "Workflow.groovy"),
Path("lib", "WorkflowMain.groovy"),
Path("lib", "NfcoreTemplate.groovy"),
Path("lib", f"Workflow{short_name[0].upper()}{short_name[1:]}.groovy"),
Path("parameters.settings.json"),
Path("pipeline_template.yml"), # saving information in .nf-core.yml
Path("Singularity"),
]
files_warn_ifexists = [Path(".travis.yml")]
files_fail_ifinconfig: List[Tuple[Path, Dict[str, str]]] = [
Expand Down
3 changes: 1 addition & 2 deletions nf_core/lint/files_unchanged.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def files_unchanged(self) -> Dict[str, Union[List[str], bool]]:
.gitignore
.prettierignore
pyproject.toml
.. tip:: You can configure the ``nf-core lint`` tests to ignore any of these checks by setting
Expand Down Expand Up @@ -106,7 +105,7 @@ def files_unchanged(self) -> Dict[str, Union[List[str], bool]]:
[Path("docs", "README.md")],
]
files_partial = [
[Path(".gitignore"), Path(".prettierignore"), Path("pyproject.toml")],
[Path(".gitignore"), Path(".prettierignore")],
]

# Only show error messages from pipeline creation
Expand Down
15 changes: 0 additions & 15 deletions nf_core/pipeline-template/pyproject.toml

This file was deleted.

0 comments on commit fae6770

Please sign in to comment.