Commit graph

11 commits

Author SHA1 Message Date
Christopher Pickering
f5334bb931
restructured code. closes #111 2021-10-14 13:19:48 +03:00
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
Christopher Pickering
7c6df42dbb
added encoding to file writing 2021-10-05 08:47:31 +02:00
Christopher Pickering
b0b5147052
closes #7, closes #20, cleaned up regex, improved attribute logic, added tests 2021-09-20 11:33:23 +02:00
Christopher Pickering
94c1dd5958
changed build system to poetry, added more dj tags, added pyproject.toml support, fixed #11, closed #12, closed #1 2021-09-08 10:46:18 +02:00
Christopher Pickering
9120f70147
updated formatter and docs 2021-07-29 13:41:34 -05:00
Christopher Pickering
b6b4b74a93
fixed issue attribute regex matching empty tags 2021-07-27 14:54:57 -05:00
Christopher Pickering
a129edab1b
cleaned up mess 2021-07-27 10:58:08 -05:00
Christopher Pickering
416c63ff38
updated reformat rules 2021-07-26 12:22:26 -05:00
Christopher Pickering
46d7899978
updated settings layout 2021-07-26 09:05:55 -05:00
Christopher Pickering
cc0510780c
added reformatter 2021-07-23 15:58:24 -05:00