Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Paolo Tranquilli d2ed5c47f9 fix typo 2022-02-24 14:28:21 +01:00
Paolo Tranquilli 9667315d49 pre-commit: add qhelp check
Also the instructions on customizing `pre-commit`'s behaviour have been
updated to use the `--config` option.
2022-02-24 10:55:53 +01:00
Paolo Tranquilli e15c1f7c45 fix typo in `docs/pre-commit-hook-setup.md` 2022-02-22 17:47:35 +01:00
Paolo Tranquilli 33cce2b5ac add pre-commit configuration
This enables use of the `pre-commit` framework to run quick pre-commit
checks. In particular this allows to automatically fix:
* trailing white spaces
* absence or multiple newlines at the end of files
* QL code formatting
* file sync

More could be added in the future: anything that can be checked fast
can be added in the configuration (for example well-formedness of
`qldoc` files).

This is a purely opt-in feature. Instructions for enabling it and
possibly configuring its behaviour are in `pre-commit-hook-setup.md`.
2022-02-22 17:40:07 +01:00
Mathias Vorreiter Pedersen f18486aa60
Update docs/pre-commit-hook-setup.md
Co-authored-by: Jonas Jensen <jbj@github.com>
2021-01-05 17:00:23 +01:00
Mathias Vorreiter Pedersen ae388ec796
Update docs/pre-commit-hook-setup.md
Co-authored-by: Cornelius Riemenschneider <criemen@github.com>
2021-01-05 16:27:53 +01:00
Mathias Vorreiter Pedersen 11e2bc3b78 Respond to review comments. 2021-01-05 16:21:24 +01:00
Mathias Vorreiter Pedersen 229ab7623e - Add pre-commit hook script to misc/scripts
- Refer to it in CONTRIBUTING.md
- Add setup note in docs folder
2021-01-05 13:47:30 +01:00