Commit Graph

34 Commits

Author SHA1 Message Date
Elf M. Sternberg a8451c83bf Added a command, '--revision', the lets you test files that were changed
and committed already.  This is mostly a helpful addition to "Oh, I didn't
lint those!"

Also, added the basic '--pr', which gives you the list of files
changed in the very last commit, so you don't have to specify which
revision you mean.
2016-10-07 10:35:40 -07:00
Elf M. Sternberg 1a942e6b1c Bug revision version bump. 2016-10-06 09:11:52 -07:00
Elf M. Sternberg 9b40abe4ae Python 3 compatibility bug. 2016-10-06 09:08:18 -07:00
Elf M. Sternberg f70aea7ec3 Code re-org for my sanity. 2016-10-05 14:58:07 -07:00
Elf M. Sternberg 74d217d6fe First version commited to pypi. Fixed bug that prevented clean installation
on OSX.  Bumped version to 0.0.6, and tagged.
2016-10-05 11:14:46 -07:00
Elf M. Sternberg 4895dde1b6 Fixed a spelling error. 2016-10-04 10:38:53 -07:00
Elf M. Sternberg f2ae3371e7 I ought to pass my own lint style checks, ne? 2016-10-03 12:31:01 -07:00
Elf M. Sternberg 13b0378b67 Fixed reportage matrix.
Now it doesn't print things the user doesn't care about, like empty
lint passes, or broken linters that aren't relevant to the current
project.

Added a test pass to ensure it doesn't blow up when running against
an empty stage.
2016-10-03 12:13:35 -07:00
Elf M. Sternberg dd4aeb1cad Readability added. 2016-09-30 12:10:52 -07:00
Elf M. Sternberg 1db5feac16 Adding a check for readability. 2016-09-29 18:36:27 -07:00
Elf M. Sternberg efd187e955 Python 3 compatibility tests passing. 2016-09-29 16:02:55 -07:00
Elf M. Sternberg b28b437fb2 W00t! Working unit tests to assert things, like "That kind works"
and "It doesn't die pathetically," and "It shows stuff."  Fix TOX
to not include you home directory, so now git_lint will only include
your home directory if one exists.

It turns out that shutils doesn't have 'which()' prior to Python3.
Buggeration.
2016-09-29 15:14:46 -07:00
Elf M. Sternberg d21607ed6f We have a working test harness. 2016-09-29 12:38:23 -07:00
Elf M. Sternberg 3f6fec6ba3 That was silly. 2016-09-28 15:37:23 -07:00
Elf M. Sternberg f2f223cb23 Looking really good... 2016-09-28 15:22:34 -07:00
Elf M. Sternberg 1228491425 Since I broke my printers out into a their own module, I needed to
import future there too.

If the current working directory is the base directory, the filter
was broken.  Damn the outside world (∑) for being complicated.
2016-09-28 15:17:51 -07:00
Elf M. Sternberg 3d7c0c1a3f Still cleaning up the working paths. 2016-09-28 14:57:02 -07:00
Elf M. Sternberg 9029eef623 It's all coming together. 2016-09-28 14:26:06 -07:00
Elf M. Sternberg 33c3d7a189 Trying to restructure this to be more sensible. 2016-09-28 10:01:02 -07:00
Elf M. Sternberg 157e05d5a9 Back to really/long/file/paths, but the trimmer was in the wrong spot. Must think more on this. 2016-09-26 16:09:05 -07:00
Elf M. Sternberg 60e3e8d328 Aw, yeah, starting to look like a grown-up now. 2016-09-26 16:00:22 -07:00
Elf M. Sternberg c89743dd23 Git lint passes its own linting. Yay! 2016-09-26 15:52:46 -07:00
Elf M. Sternberg ac7df1d17b Dry run now works. 2016-09-26 15:51:31 -07:00
Elf M. Sternberg bacbdd7179 The staging wrapper works beautifully. 2016-09-26 15:26:04 -07:00
Elf M. Sternberg c4200eb3a4 Removing unused files. 2016-09-26 15:01:59 -07:00
Elf M. Sternberg d153fba7d0 Rough draft complete. I think. 2016-09-26 14:58:43 -07:00
Elf M. Sternberg 24ba4d41f4 Config is now order-preserving; switched to named tuples for config details. 2016-09-26 13:56:28 -07:00
Elf M. Sternberg ec439aab81 Fixing merge. 2016-09-26 11:46:47 -07:00
Elf M. Sternberg caca552ecd Merge problem ahead... 2016-09-26 11:44:31 -07:00
Elf M. Sternberg 06bd394b1f Much better! Almost have the output exactly the way I want it, and
it's starting to report valid values, too.
2016-09-24 15:42:58 -07:00
Elf M. Sternberg f2873bc07c Conversion to Python is complete. Goodbye, Hy, you were a brilliant and
functional step toward helping me organize my thoughts, but it's time
to make this into something other Pythonistas can read.  Sad, but true.
2016-09-23 17:50:04 -07:00
Elf M. Sternberg 56037fe109 Much progress. 2016-09-23 15:27:15 -07:00
Elf M. Sternberg c7b89daec9 Conversion continues. 2016-09-23 13:11:06 -07:00
Elf M. Sternberg 454a2ce4e1 Used cookiecutter to generate a better skeleton for the project, prior
to digging in.  I realized that I was wrapping my pre-commit hook in a
handler to call it outside of the git-commit phase, and what I really
wanted was to be able to 'git lint' my repo at any time.  This is going
to be a new development branch until further notice.
2016-09-19 14:41:01 -07:00