|
Hello, I put this in my However when I start What I mess ? |
Replies: 3 comments 6 replies
|
Hi there, could you provide the relevant line/lines of the utils/test.py file with the link that is being checked? |
|
Ah, I think I misunderstood your question initially and got sidetracked. Your question probably is; why is lychee checking the python file, if you include The answer is that the file arguments take precedence over configured file extensions. You probably run In other words Btw, you could also try to exclude the specific link which lychee doesn't properly detect or the single file. This way you could still do link checking in your python files. |
|
Thank you for your answer @thomas-zahner. Make sens ! - repo: https://github.com/lycheeverse/lychee.git
rev: lychee-v0.22.0
hooks:
- id: lychee
args: ["-c", ".lychee.toml"]What is the best to do what you suggest in your previous message ? - repo: https://github.com/lycheeverse/lychee.git
rev: lychee-v0.22.0
hooks:
- id: lychee
args: ["--extensions", "md", -c", ".lychee.toml"] |
Here is the pre-commit configuration I am using: