Christopher Pickering
7e4ac76be0
fix(indent): fixed bad indent on short blocks
...
closes #309
2022-07-28 10:45:15 -05:00
Christopher Pickering
b2bd1ea298
feat(formatter): added option to add blank line before tags
...
closes #307
2022-07-28 09:53:33 -05:00
Christopher Pickering
946b8ad715
fix(linter): fixed false positive on T027
...
closes #301
2022-07-26 12:21:41 -05:00
Christopher Pickering
a196c68991
removed print
2022-07-26 08:24:00 -05:00
Christopher Pickering
9ed3393be0
fix(preserve blank lines): fixed duplicate blank lines being inserted after h-space,
...
Fixed extra blank lines being added to beginning of file
closes #300
2022-07-26 08:12:03 -05:00
Christopher Pickering
67306b4cd1
fix(white space): prevent duplicate blank lines from being added
...
closes #297 .
2022-07-25 07:55:30 -05:00
Christopher Pickering
0bebf846d3
fixed a few issues with #}
2022-07-18 07:47:23 -05:00
Christopher Pickering
47ef81f96b
fix(twig): fixed indent issue with comments. Added test
...
closes #290
2022-07-15 08:24:43 -05:00
Christopher Pickering
f38328c829
fix(linter): fix false positive on rule T001
...
closes #292
2022-07-14 15:34:20 -05:00
Christopher Pickering
c709efd658
feat(linter): added per-file-ignores as a config option for linter rules
...
closes #107
2022-07-08 11:06:01 -05:00
Christopher Pickering
611b1fa57a
fix(h026): fixes rule H026 for cases where id/class are part of another string
...
closes #281
2022-07-06 12:50:15 -05:00
Christopher Pickering
1b3159f661
feat(ignore rules): added option to ignore linter rules with inline comments
...
closes #113
2022-07-05 13:59:53 -05:00
Christopher Pickering
bbcf54a0f0
feat(new option): added option to attempt to keep blank lines in templates
...
--preser-blank-lines option can be used to try and keep existing blank lines during formatting.
closes #261
2022-06-30 07:53:24 -05:00
Christopher Pickering
e4fe62f52e
fix(h025): fixes rule H025 where tags have curly hash
...
Closes #270
2022-06-28 12:38:28 -05:00
Christopher Pickering
1e526f6739
test(preserve-leading-indent): added test
2022-06-16 13:33:59 -05:00
Christopher Pickering
f63cc4d8ea
fix(dj018): fix rule DJ018 for special attrib names
...
fixes #248
2022-05-18 08:46:48 -05:00
Christopher Pickering
e906b3e30a
fix(stdin encoding): added encoding to stdin text
...
Fixes #243
2022-05-18 08:35:54 -05:00
Christopher Pickering
886d59021a
feat(breaks): allowed p, head, and body tags that are short/empty to be on a single line
...
Added more tests.
2022-05-16 09:25:29 -05:00
Christopher Pickering
a124a4dd6d
test(html tests): restructured tests
2022-05-13 16:11:06 -05:00
Christopher Pickering
eec497d043
test(yaml): added more yaml tests
2022-05-13 15:49:24 -05:00
Christopher Pickering
98e20ee885
test(format): fixed test format
2022-05-13 15:40:21 -05:00
Christopher Pickering
aee34ea64c
test(restructured): restructured the tests
2022-05-13 15:36:55 -05:00
Christopher Pickering
a830bc47a2
fix(code tags): fixed indentation on code tags w/ trailing text
...
closes #244
2022-05-12 15:52:58 -05:00
Christopher Pickering
e531701238
fix(alpine.js): fixed formatting in alpine.js attributes
...
fixes #240
2022-05-09 12:19:28 -05:00
Christopher Pickering
1ce378c43d
fix(custom attributes): custom attributes separated by hyphen were split up during format
...
closes #236
2022-05-02 09:03:35 -05:00
Christopher Pickering
8e0b4b1b41
fix(stdin and gitignore): updated to prevent gitignore from skipping std temp paths
...
Disabled gitignore option for stdin paths.
closes #224
2022-04-25 08:26:13 -05:00
Christopher Pickering
ae9459a3fb
test(gitignore): fixed failing test
2022-04-05 11:24:31 -05:00
Christopher Pickering
aa9097660d
updated readme and docs
2022-03-30 10:03:44 -05:00
Anders Kaseorg
be07d18ebe
Fix spelling mistakes found by codespell
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-03-18 08:09:16 -05:00
Christopher Pickering
f9ff3477e1
closes #194 , added test
2022-03-14 09:24:28 -05:00
Christopher Pickering
1f82ffa5f6
fixed lint, disabled failing formatter test (rewrite in process)
2022-03-14 08:53:33 -05:00
Christopher Pickering
ffec79eedb
fixed #197 , added test
2022-03-14 08:48:12 -05:00
Christopher Pickering
5a2fde9f71
started fix for #189
2022-02-21 11:25:55 -06:00
Christopher Pickering
17063aa517
closes #188 , added tests
2022-02-18 14:15:36 -06:00
Christopher Pickering
2acb8c3c28
closes #175 , updated tests
2022-02-18 13:07:30 -06:00
Christopher Pickering
c340cdd3df
closes #124 , added test
2022-02-18 12:00:53 -06:00
Christopher Pickering
f48a724c77
closes #123 , added test
2022-02-18 11:44:02 -06:00
Christopher Pickering
b79449c386
closes #175 , added test
2022-02-18 11:16:55 -06:00
Christopher Pickering
64846b03a3
fixes #187 , added test
2022-02-18 11:04:02 -06:00
Christopher Pickering
3e0b13edcb
fixed #177 , added test
2022-01-31 16:16:17 -06:00
Christopher Pickering
a7e0d88e79
added import for py3.7, dropped 3.6 from pyproject
2022-01-24 12:17:20 -06:00
Christopher Pickering
4a953801fa
fixed #174 , fixed #173 , added tests
2022-01-24 12:03:44 -06:00
Christopher Pickering
2fb5da587b
passed tests and lint
2022-01-14 09:29:21 -06:00
Christopher Pickering
b943a414fd
fixed #171 , added test
2022-01-14 09:12:19 -06:00
Christopher Pickering
905923ba2b
fixed #169 , added test
2022-01-14 09:07:57 -06:00
Christopher Pickering
6e8230eee8
fix for #166 and #167 . added tests
2022-01-07 08:49:00 -06:00
Christopher Pickering
a1451fc78e
started fix for #167 . updated docs
2022-01-06 13:41:15 -06:00
Christopher Pickering
82526733c1
fixed #166 , added test
2022-01-05 09:48:00 -06:00
Christopher Pickering
64a806a3eb
fixed #160 , added test
2022-01-03 09:43:55 -06:00
Christopher Pickering
3c82cbc84b
fixed #164 , added test
2022-01-03 08:58:01 -06:00
Christopher Pickering
c7d73bed09
fixed settings, added docs note
2022-01-03 08:45:38 -06:00
TK
97967dc622
[pre-commit] Running pre-commit
2021-12-30 20:54:59 +01:00
TK
3692a9bf2e
extend docs with custom_html section, add test_custom_html, add test fixture
2021-12-30 19:40:37 +01:00
John Vandenberg
9b09505826
Specify acceptable entities
2021-12-14 19:47:57 +08:00
Christopher Pickering
bec3623a4d
fixed #154 , added test
2021-12-14 10:24:17 +01:00
Christopher Pickering
0dda66456c
passed test
2021-12-01 10:36:51 +01:00
Christopher Pickering
c6e643c254
added two linter rules
2021-11-29 13:30:31 +01:00
Christopher Pickering
1783c3babf
added option to format linter output messages. closes #153
2021-11-29 13:05:58 +01:00
Christopher Pickering
a10ac08686
added fix for #152
2021-11-29 12:19:07 +01:00
Christopher Pickering
8ff71789be
added fix for #151
2021-11-29 09:26:36 +01:00
Christopher Pickering
48c2f32081
fixed #149 , added test
2021-11-26 14:01:54 +01:00
Christopher Pickering
3281b55f61
fixed #148 , added test
2021-11-26 13:30:25 +01:00
Christopher Pickering
b2439ea9d9
fixed #147 , added tests
2021-11-26 13:06:05 +01:00
Christopher Pickering
a053175663
fixed #146 , added test, updated version
2021-11-26 09:45:00 +01:00
Christopher Pickering
ec60646b36
fixed #144 , added test
2021-11-24 09:18:58 +01:00
Christopher Pickering
a9b4880138
fixes #142 , added test
2021-11-23 10:16:40 +01:00
Christopher Pickering
d2a42f2be0
fixes #143 , added test
2021-11-23 10:06:38 +01:00
Christopher Pickering
3af4517ce7
fixes #141 , added test.
2021-11-23 10:02:08 +01:00
Christopher Pickering
9296dfaceb
fixes #140 , added test.
2021-11-22 15:21:18 +01:00
Christopher Pickering
e81cb9cc64
fixed #139 , updated tests
2021-11-19 09:43:59 +01:00
Christopher Pickering
615eb180d7
fixed #126
2021-11-16 12:46:07 +01:00
Christopher Pickering
507dae9b50
fixed #75 , added test
2021-11-16 11:49:25 +01:00
Christopher Pickering
b2b26e9ee1
fixed #26 , added test
2021-11-16 11:40:29 +01:00
Christopher Pickering
7c7cac916f
added rule H029, closes #125
2021-11-16 11:28:35 +01:00
Christopher Pickering
19acc02cda
added rule T028. closes #128
2021-11-16 11:17:51 +01:00
Christopher Pickering
fee2c1c72b
fixed #137 , added test
2021-11-16 10:58:57 +01:00
Christopher Pickering
c39693c7df
added rule T027. closes #134
2021-11-15 16:47:36 +01:00
Christopher Pickering
9a57551c7a
fixed test for github
2021-10-29 11:55:20 +03:00
Christopher Pickering
0111614913
closes #102 , added test.
2021-10-29 11:42:39 +03:00
Christopher Pickering
d1cc73d083
fixed #132 , added test
2021-10-29 10:02:48 +03:00
Christopher Pickering
4e62259936
fixed #130 , added tests
2021-10-29 09:54:20 +03:00
Christopher Pickering
77db0be1c2
adds a fix and test for #101
2021-10-28 14:39:38 +03:00
Christopher Pickering
dd134f9459
fixed #129 , added tests
2021-10-28 13:55:20 +03:00
Christopher Pickering
a12b2d63dd
fixed #131 , added test
2021-10-28 13:42:51 +03:00
Christopher Pickering
a0847aaec9
updated blank lines setup
2021-10-15 09:15:00 +03:00
Christopher Pickering
535eb9d659
closes #121 , added tests
2021-10-14 14:53:47 +03:00
Christopher Pickering
be5652f012
fixed #108 , added test
2021-10-14 14:20:30 +03:00
Christopher Pickering
7d4e4920bc
fixed #118 , added test
2021-10-14 14:15:25 +03:00
Christopher Pickering
35c7026a85
fixed #106 , added test
2021-10-14 13:40:23 +03:00
Christopher Pickering
84a182595c
fixed #110 , added test
2021-10-14 13:37:21 +03:00
Christopher Pickering
e0fed97e70
fixed #112 , added tests
2021-10-14 13:31:45 +03:00
Christopher Pickering
ca87bb7d22
closes #115 . added test
2021-10-14 13:30:24 +03:00
Christopher Pickering
f5334bb931
restructured code. closes #111
2021-10-14 13:19:48 +03:00
Christopher Pickering
3ab0eab278
fixed #116 , added test
2021-10-14 09:17:31 +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
46492fdd05
closes #98 , closes #99 , closes #97 , added tests
2021-10-11 16:08:32 +03:00
Christopher Pickering
d634ce61fa
closes #89 . added tests
2021-10-11 13:34:28 +03:00
Christopher Pickering
edcf3506aa
closes #93 , added test
2021-10-11 12:26:33 +03:00
Christopher Pickering
1c7f1d654d
fixed #94 , added tests
2021-10-11 11:59:19 +03:00
sur.la.route
086f9dad34
Merge pull request #96 from matthiask/mk/br-indent
...
Commit a test showing that <br> causes indentation (when it shouldn't)
2021-10-11 11:48:15 +03:00