mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-24 23:14:45 +00:00
This patch adds a configuration option for requiring files to have a pragma comment at the beginning of the file in order to reformat the file. This behaviour is useful for a slow adoption of the tool instead of requiring the whole codebase to be converted at once. The patch also contains tests for the different kinds of supported pragma comments, based on the profile defined for the project.
3 lines
41 B
TOML
3 lines
41 B
TOML
[tool]
|
|
[tool.djlint]
|
|
require_pragma=true
|