I don't think we need this file anymore either <ht...
# infrastructure
m
I don't think we need this file anymore either https://github.com/nf-core/modules/pull/8918
I like that the infra and the ops team are both asked for reviews, this works well
🚀
(the CODEOWNERS for ALL files but modules / subworkflows)
@Júlia Mir can we continue the discussion here
So basically due to some inconsistencies between the pre-commit in modules and in the pipelines/TEMPLATE, I've been noticing some pre-commit issues, which is why I started https://github.com/nf-core/modules/pull/8902 (already merged). And now on this PR, I just want to finish the last issue which is that pre-commit is still sometimes complaining, so my idea was to continue pairing whatever we have on modules and in the TEMPLATE
definitively agreeing that we shouldn't ignore the modules and subworkflows
Unsure about what the
(?x)^(
should exclude
j
I would say only the
.snap
files, since these are generated by nf-test and we don't want to touch them
but all the files generated by nf-core can be formatted. Then at a pipeline level you can ignore all files comming from the modules repo
m
I'm actually thinking that since we allow for patching modules, we should not skip modules
j
🤔 this makes sense, but I worry we will often find inconsistencies between the pre-commit in modules and the pre-commit in the pipelines
it's easier to fix in modules but it needs a tools release + template update to be fixed in pipelines
m
true
ok, so just exclude the snaps then
so I can probably simplify this bit now:
Copy code
exclude: |
          (?x)^(
              .*\.snap$
          )$
j
looks good 👍🏻 I think it can be done in a single line now, but I also like it in multiple lines in case we add more files, it reads better 😄
m
ok, then let's keep it that way
ok, so I'd say the last things that needs to be fixed is this warning:
Copy code
[WARNING] The 'rev' field of repo 'https://github.com/nf-core/tools' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.
This tend to get people try to fix this via
pre-commit autoupdate
, and make changes we actually want to avoid
👀 1
j
I have never seen this warning 😮
what are the specific changes in the
pre-commit
branch? should we merge this to
dev
and add it to the next release?
m
No idea, but with the dev branch that would be the same issue
it's a mutable reference
I'd say we need to point to a release tag and update it whenever we release
👍🏻 1
and I'm guessing this warning is what triggered these changes https://github.com/nf-core/modules/commit/6814d041f9ce66491b94808396f70391015e8c25
I dismissed Matthias and Edmund request for changes
j
yes, go ahead 🙂
🙏 1
m
ok, prepared https://github.com/nf-core/modules/pull/8926, so we don't forget about it
👍🏻 1