Morgan Courbet
|
0e223bcb15
|
Refactor mixed_line_ending.py
|
2017-07-20 21:38:35 +02:00 |
|
Morgan Courbet
|
f9915cbbe2
|
Remove _check_filenames in mixed_line_ending.py
|
2017-07-20 20:32:04 +02:00 |
|
Morgan Courbet
|
4d3d8e1831
|
Remove -v/--verbose option on mixed_line_ending.py
|
2017-07-20 20:30:56 +02:00 |
|
Morgan Courbet
|
ef4a323728
|
Refactor pre_commit_hooks/mixed_line_ending.py
|
2017-07-20 19:37:43 +02:00 |
|
Morgan Courbet
|
4be276c1a6
|
Remove non relevant comments and make others more explicit
|
2017-07-20 18:59:38 +02:00 |
|
Morgan Courbet
|
f58b552c37
|
Refactor pre_commit_hooks/mixed_line_ending.py
|
2017-07-20 18:54:56 +02:00 |
|
Morgan Courbet
|
ab2a849052
|
Clean up against add-trailing-comma
|
2017-07-18 20:17:06 +02:00 |
|
Morgan Courbet
|
55658c4bbc
|
Merge remote-tracking branch 'upstream/master' into mixed-line-ending
|
2017-07-18 19:40:39 +02:00 |
|
Anthony Sottile
|
e9aea74a77
|
Upgrade add-trailing-comma to 0.4.1
|
2017-07-15 13:06:38 -07:00 |
|
Anthony Sottile
|
2a902e0a07
|
Use asottile/add-trailing-comma
|
2017-07-12 18:58:30 -07:00 |
|
Morgan Courbet
|
19377889df
|
Add support for CR line ending for mixed_line_ending.py
'--fix=cr' is not yet implemented though
|
2017-07-10 21:53:08 +02:00 |
|
Morgan Courbet
|
4fc9624b6a
|
Refactor _detect_line_ending
|
2017-07-10 21:27:09 +02:00 |
|
Morgan Courbet
|
8bc4af45ba
|
Refactor file opening
|
2017-07-09 11:17:08 +02:00 |
|
Morgan Courbet
|
d16d04a4d7
|
Fix the 5 remaining tests for Python 3.4 & 3.5
Fixes nagromc/pre-commit-hooks#1
|
2017-07-09 11:16:20 +02:00 |
|
Morgan Courbet
|
ba63d1b9db
|
Refactor _process_no_fix
|
2017-07-08 10:30:09 +02:00 |
|
Anthony Sottile
|
8ad9e7c94c
|
Report full version in check-ast
|
2017-07-05 12:38:21 -07:00 |
|
Morgan Courbet
|
3dbeeeefe5
|
Improve test coverage
|
2017-07-04 22:55:49 +02:00 |
|
Morgan Courbet
|
609d01178c
|
Improve logging for force line ending
|
2017-07-04 21:26:02 +02:00 |
|
Morgan Courbet
|
a1e1421a99
|
Refactor mixed_line_ending
|
2017-07-04 21:23:03 +02:00 |
|
Morgan Courbet
|
614893f36d
|
Fix _process_fix_auto to return the right value
|
2017-07-04 21:18:29 +02:00 |
|
Morgan Courbet
|
c6c4c4a2fa
|
Refactor mixed_line_ending
|
2017-07-04 21:07:00 +02:00 |
|
Morgan Courbet
|
a1ffbfaa59
|
Add mixed line detection
|
2017-07-04 20:50:49 +02:00 |
|
Morgan Courbet
|
4270b56e50
|
Refactor MixedLineDetection
|
2017-07-04 20:49:11 +02:00 |
|
Morgan Courbet
|
b1294b8614
|
Add unit test for mixed_line_ending
|
2017-07-03 20:04:03 +02:00 |
|
Morgan Courbet
|
f477582ae6
|
Add logs to mixed_line_ending.py
|
2017-07-03 18:52:18 +02:00 |
|
Chris Kuehl
|
13991f09d2
|
Add a checker for executables without shebangs
|
2017-07-02 21:14:25 -07:00 |
|
Anthony Sottile
|
aa50988889
|
Merge pull request #199 from pre-commit/rebase_conflict
Support rebase conflicts in check-merge-conflicts
|
2017-07-02 19:43:55 -07:00 |
|
Morgan Courbet
|
22b228210e
|
Reuse variable definition
|
2017-06-29 21:46:25 +02:00 |
|
Morgan Courbet
|
2b28f4f051
|
Rename variable names
|
2017-06-29 21:42:19 +02:00 |
|
Morgan Courbet
|
0a8b929f07
|
Change files according to --fix option
|
2017-06-29 21:16:17 +02:00 |
|
Morgan Courbet
|
aaf134c2bc
|
Add line ending conversion
|
2017-06-28 22:15:31 +02:00 |
|
Morgan Courbet
|
466f9e1732
|
Add line ending detection
|
2017-06-27 21:56:18 +02:00 |
|
Morgan Courbet
|
ad0062a3bb
|
Add filenames option
|
2017-06-26 21:42:27 +02:00 |
|
Morgan Courbet
|
b2b0d5929a
|
Use enum instead of raw argparse result
|
2017-06-26 21:31:44 +02:00 |
|
Daniel Gallagher
|
7102e0c8a3
|
file-contents-sorter should add newline at end of files missing newlines
Make an explicit 'else' path for readability
|
2017-06-26 08:10:32 -07:00 |
|
Daniel Gallagher
|
7cfec24f77
|
Fix bug with the file-contents-sorter hook when processing file that does not end in a newline
|
2017-06-25 14:40:03 -07:00 |
|
Anthony Sottile
|
50871f83cc
|
Merge pull request #206 from dlgallagher/requirements_txt_fixer_followup
Some style tweaks (requirements_txt_fixer)
|
2017-06-25 14:53:25 -04:00 |
|
Daniel Gallagher
|
4c421e2ed1
|
Put argument parsing back into main()
|
2017-06-25 10:22:10 -07:00 |
|
Daniel Gallagher
|
844d9830de
|
Some style tweaks
|
2017-06-25 10:14:58 -07:00 |
|
Daniel Gallagher
|
d188f2ecf8
|
Merge branch 'master' into file_contents_sorter_hook
|
2017-06-25 09:39:21 -07:00 |
|
Anthony Sottile
|
d419bef35c
|
Merge pull request #205 from dlgallagher/fix_requirements_txt_fixer_on_empty_requirements_files
Fix NoneTypeError when requirements file is empty
|
2017-06-24 00:35:39 -04:00 |
|
Daniel Gallagher
|
7ccfa05f2f
|
Fix NoneTypeError when requirements file is empty
|
2017-06-23 17:19:21 -07:00 |
|
Daniel Gallagher
|
b6eff3d39e
|
Add sort-simple-yaml hook (originally private hook from yelp_pre_commit_hooks)
|
2017-06-23 16:26:00 -07:00 |
|
Daniel Gallagher
|
b941d0e6df
|
Respond to review feedback
|
2017-06-23 14:58:24 -07:00 |
|
Daniel Gallagher
|
9425c5d6b5
|
First commit of file-contents-sorter precommit hook
|
2017-06-23 00:33:13 -07:00 |
|
Morgan Courbet
|
93194b9c6a
|
Change --fix option from mixed_line_ending
To make it easier to use in the program (single string instead of a list
of strings)
|
2017-06-18 12:31:22 +02:00 |
|
Morgan Courbet
|
51866649a6
|
Split argument parsing from main mixed line ending function
|
2017-06-18 12:25:42 +02:00 |
|
Morgan Courbet
|
afaa97cd11
|
Add enum to mixed_line_ending --fix option
|
2017-06-17 19:45:39 +02:00 |
|
Morgan Courbet
|
16b7c7af5d
|
Use Enum to list line ending types in mixed_line_ending
|
2017-06-15 20:36:34 +02:00 |
|
Morgan Courbet
|
3d4fb41d8a
|
Add mixed-line-ending processor
|
2017-06-13 21:56:00 +02:00 |
|