Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions bot workflow to fix code linting from a PR comment #2082

Merged
merged 8 commits into from
Sep 28, 2023

Conversation

vladsavelyev
Copy link
Member

@vladsavelyev vladsavelyev commented Sep 27, 2023

Fixes #1988

A bot command triggered on a comment "@multiqc-bot fix linting". Inspired by nf-core/tools, though installs and runs pre-commit hooks on all files instead of running separate actions, so we control all linting through the single file .pre-commit-config.yaml.

I also updated the linters' versions.

@vladsavelyev vladsavelyev added the core: infrastructure Something to do with the MultiQC infra label Sep 27, 2023
@vladsavelyev vladsavelyev added this to the MultiQC v1.17 milestone Sep 27, 2023
@vladsavelyev vladsavelyev added the awaits-review Awaiting final review and merge. label Sep 28, 2023
Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 👏🏻

CSP.txt Show resolved Hide resolved
@ewels ewels changed the title Add GitHub Actions bot workflow to fix linting Add GitHub Actions bot workflow to fix code linting from a PR comment Sep 28, 2023
@ewels
Copy link
Member

ewels commented Sep 28, 2023

@multiqc-bot changelog

@ewels ewels merged commit 143fab0 into master Sep 28, 2023
10 checks passed
@ewels ewels deleted the fix-linting-ci branch September 28, 2023 22:52

- name: Run pre-commit
run: |
pre-commit run --all-files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs an || true as if it does anything it raises an exit code 1 and the rest of the workflow is cancelled 😅

a-frantz added a commit to a-frantz/MultiQC that referenced this pull request Oct 2, 2023
* master:
  Just run CI on the oldest + newest supported Python versions (MultiQC#2074)
  Picard: fix parsing mixed strings/numbers, account for trailing tab (MultiQC#2083)
  FastQC: add top overrepresented sequences table (MultiQC#2075)
  Add GitHub Actions bot workflow to fix code linting from a PR comment (MultiQC#2082)
  Use custom exception type instead of `UserWarning` when no samples are found. (MultiQC#2049)
  Lint modules for missing `self.add_software_version` (MultiQC#2081)
  Changelog bot: Update docs (MultiQC#2077)
  Changelog action: remove `.capitalize()`, add changelog entry (MultiQC#2080)
  Add action to populate the change log from PR titles triggered by `@multiqc-bot changelog` (MultiQC#2025)

# Conflicts:
#	CHANGELOG.md
#	multiqc/modules/ngsderive/ngsderive.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaits-review Awaiting final review and merge. core: infrastructure Something to do with the MultiQC infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add GitHub Actions bot workflow to fix linting
3 participants