djLint/tests
Mathias Jakobsen ed3951838f
Add require_pragma option
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.
2021-10-13 15:30:10 +01:00
..
config_blank_lines_after_tag fixed #94, added tests 2021-10-11 11:59:19 +03:00
config_custom_tags changed build system to poetry, added more dj tags, added pyproject.toml support, fixed #11, closed #12, closed #1 2021-09-08 10:46:40 +02:00
config_excludes Fixed #22: Added configuration options to define excluded paths 2021-09-21 13:02:33 +02:00
config_extension changed build system to poetry, added more dj tags, added pyproject.toml support, fixed #11, closed #12, closed #1 2021-09-08 10:46:40 +02:00
config_ignores closes #30, closes #28 2021-09-30 10:02:05 +02:00
config_indent closes #29 2021-09-28 13:42:13 +02:00
config_pragmas Add require_pragma option 2021-10-13 15:30:10 +01:00
config_profile closes #30, closes #28 2021-09-30 10:02:05 +02:00
custom_rules added option for custom rules file 2021-10-04 15:26:22 +02:00
custom_rules_bad added option for custom rules file 2021-10-04 15:26:22 +02:00
multiple_files Allowed more than one path at a time 2021-09-21 20:15:25 +02:00
__init__.py added tests 2021-07-13 10:45:57 -05:00
bad.html updated formatter and docs 2021-07-29 13:41:34 -05:00
bad.html.dj added more rules. 2021-07-12 17:07:52 -05:00
bad.html.dj2 code cleanup 2021-07-13 12:25:29 -05:00
conftest.py changed build system to poetry, added more dj tags, added pyproject.toml support, fixed #11, closed #12, closed #1 2021-09-08 10:46:40 +02:00
test_config.py Add require_pragma option 2021-10-13 15:30:10 +01:00
test_django.py closes #98, closes #99, closes #97, added tests 2021-10-11 16:08:32 +03:00
test_djlint.py fixed #62 2021-10-06 09:42:08 +02:00
test_golang.py added start of golang config 2021-10-04 16:31:09 +02:00
test_handlebars.py cleaned up code. closed #81, closed #74 2021-10-07 11:34:51 +02:00
test_html.py closes #98, closes #99, closes #97, added tests 2021-10-11 16:08:32 +03:00
test_linter.py closes #89. added tests 2021-10-11 13:34:28 +03:00
test_nunjucks.py closes #67, closes #59 2021-10-06 14:20:47 +02:00