-
Notifications
You must be signed in to change notification settings - Fork 126
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
pre-commit fmf subpath #2004
Comments
This means we need a way to propagate |
Might be easy enough. Docs to read about hooks: https://pre-commit.com/#new-hooks |
Indeed, if it was such a simple fix, I would have made a PR with the feature. If we can create a simple wrapper I think it's trivial, but otherwise I don't see how to extract a specific |
I'm afraid we will have to. If tmt could accept args everywhere it would be easy but it doesn't (we need to add it as the first option).... |
I did a bit of quick testing, and there is a more crucial issue that
Running the |
Which tmt version is that?
|
I have tried with both
|
@lukaszachy Let me know if you can confirm this behaviour |
Confirmed. Please create the issue for lint |
Ok, separated in #2006 |
As for the - id: tmt
name: tmt
entry: tmt
files: '.*\.fmf$'
verbose: true
pass_filenames: true
language: python
language_version: python3 and
It sort-of works, but it is not a good solution. We should still maybe make different executable that is not installed outside of a pypi environment (or maybe not even there?). Is it ok if this one is not using Also, what do you think about modernizing the build to PEP621 (requires dropping python 3.6 support and rhel8 at least and switching the versioning to git tags) |
I'd say rhel-8 support (so python 3.6) is required for now and we will start thinking about being python3.9+ once centos-8 is EOL or rhel-8 moves to AUS @LecrisUT If you find a way how to create helper script just for the pre-commit usage it would be nice. |
Allow to run
pre-commit
with fmf root in a subpathThe text was updated successfully, but these errors were encountered: