/happy-kostadin

Check for CRLF and LF endings in your code

Primary LanguagePythonApache License 2.0Apache-2.0

Happy Kostadin

If you have files with CRLF line endings it can create problems.

Install

pip install happy-kostadin

Using

Happy_kostadin is a CLI tool. Navigate to the project you want to check and run the following:

happy_kostadin

If you want to specify a path you can use the -p flag.

happy_kostadin -p your\path\here

Select what files to include

happy_kostadin uses the pyproject.toml in the folder it ran from. If in there there is the following it will only look for files ending the allowed post-fixes.

[tool.happy_kostadin]
allowed-post-fixes = [
  ".py",
  ".md",
  ".gitignore",
]

If this not present all files will scanned.

Credits

  • Tom Nijhof