Add `lint --only <files>` option to reuse
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reviewing the linked reuse-tool PR #903 and the add-license-headers hook that currently invokes lint across the repository. Confirm how the hook passes files to lint, then verify that a lint --only option limits checks to those files and improves the hook's behavior.
Written by the indexing model from the issue text.
Description
📝 Description of the feature
Work on this PR to add the lint --only <files> option:
https://github.com/fsfe/reuse-tool/pull/903
This should significantly speed up the time it takes to check files in the add-license-headers hook. Right now, lint has to check all files in the repository each time it is run
💡 Steps for implementing the feature
No response
🔗 Useful links and references
No response
Note
Before contributing and starting any work, please make sure you agree with the CLA and sign it in your PR.
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ansys/pre-commit-hooks
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ansys/pre-commit-hooks#115 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ansys/pre-commit-hooks#411 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
ansys/pre-commit-hooks#389 · 2 reactions ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ansys/pre-commit-hooks#282 · 1 comment · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
ansys/pre-commit-hooks#277 · 1 reaction ·
All issues in ansys/pre-commit-hooks
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100