-
|
Hello, I put this in my However when I start What I mess ? |
Beta Was this translation helpful? Give feedback.
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? |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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"] |
Beta Was this translation helpful? Give feedback.
Here is the pre-commit configuration I am using: