-
Notifications
You must be signed in to change notification settings - Fork 23
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
Introduce lint job in CI #277
Conversation
This commit adds a lint job to the CI pipeline. It uses an up to date Markdown linter https://github.com/DavidAnson/markdownlint-cli2. I looked for an alternative from the Python ecosystem (to stay more consistent with this project), but the only result was an outdated and unmaintained project. It would be possible to add a `make format` command as was suggested in the original GitHub issue, but this would require Node.js to be available in the dev environment, so I thought setting up CI only would be good enough for now. Note: it should be as easy as adding the following to the Makefile: ``` format: npx markdownlint-cli2-fix "**/*.md" ``` Closes openfisca#267
Switch CLI package since markdownlint-cli2-fix is not available over NPM
There is no native Markdown alternative for abbreviations
Unify `python` language code to `py`
Most frequently used in the existing documentation base
Triggered a linting error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @RobinCsl! I handled all detected Markdown errors and added a bit of documentation in the README on how to use the commands make lint
and make format
.
Thank you for having implemented two separate jobs in CI, this really adds to the readability of the feedback 👍 I will proceed with making the lint
job mandatory as well 🙂
Thanks for the hint! I tried to implement it this way but had to switch to |
Introduce lint job in CI
This commit adds a lint job to the CI pipeline. It uses an up
to date Markdown linter https://github.com/DavidAnson/markdownlint-cli2.
I looked for an alternative from the Python ecosystem (to stay
more consistent with this project), but the only result was an
outdated and unmaintained project.
It would be possible to add a
make format
command as wassuggested in the original GitHub issue, but this would require
Node.js to be available in the dev environment, so I thought
setting up CI only would be good enough for now.
Note: it should be as easy as adding the following to the Makefile:
Closes #267