Age | Commit message (Collapse) | Author |
|
Previously, commit date objects were just represented by the string
returned by git. Now, commit.date is an actual python datetime object.
This did require us to include the arrow package as a dependency as
there are some issue with timezone-aware date parsing in python.
Also added __eq__ methods for GitCommit and GitCommitMessage as that
allows for easy comparison.
|
|
Updated all dependencies to the latest version. This brings us to back
to 2016 :-)
The only dependency not getting an update is 'sh' because the 0.12.x
release series seems to be very buggy (performance issues, regressions, etc).
This commit does contain a guard for checking '_ok_code' during sh
invocation as that was an issue with 1.12.x (submitted
https://github.com/amoffat/sh/issues/343). Might as well patch it
already if we ever do go to sh==1.12.x.
|
|
- importlib is now only used for python 2.6 and not included for all
builds. This fixes issues with python3.
- run_tests.sh: --clean option: clean up the working directory (delete
cache, dist, build, etc)
- run_tests.sh: --install-virtualenvs and --remove-virtualenvs options
to install/remove virtualenvs for other python versions. This code
used to live in the Vagrantfile but has been moved to run_tests.sh so
that it can be used more easily during development.
|
|
This is the initial commit adding support for user-defined rules. It's a
rather large commit, but I decided to keep a few things out to
still try to keep the size manageable.
In particular, there will be follow-up commits adding more tests,
documentation and validation checks as well as general cleanup.
What is present in the current commit:
- Support for the 'extra-path' parameter that specifies where to search
for user-defined rules
- A new user_rules.py module that implements the business logic for
finding user-defined rule classes
- Example user-defined rules in examples/my_commit_rules.py and
examples/my_line_rules.py
- A new DirectoryOption class for specifying directory paths as rule
options
- ./run_tests.sh now print py.test warnings
|
|
Gitlint now passes pylint validation. Currently only supported for
python 2.7.
We've added a .pylintrc to customize pylint's behavior for gitlint.
|
|
We have a project that uses Python 2.6 and would like
to use this tool to verify our commit messages.
This PR imports OrderedDict from the ordereddict
package if the built-in from collections is not present.
Signed-off-by: Joe Grund <grundjoseph@gmail.com>
|
|
- Fix: install-hook and generate-config commands not working when gitlint
is installed from pypi.
|
|
- Bumped version number to 0.6.0
- Removed unsupported python versions from setup.py
- setup.cfg file to support universal python 2 and 3 wheels
Full Release details in CHANGELOG.md.
Fix: removed unsupported python versions from setup.py
|
|
- Updated documentation in CHANGELOG and setup.py
- Added travis checks for python 3.0-3.3
|
|
A missing comma in setup.py was preventing upload to pypi.
|
|
- Updated README and CHANGELOG to be in line with latest changes
- Updated gitlint/cli.py and removed "experimental" from the --install-hook
help description.
- Modified some descriptions in setup.py so that they are nicer on pypi
|
|
The GitContext class now has a structured commit message, meaning that
it distinguishes between the commit message title, body, etc. By doing
this, we can make the linter itself simpler and will be able to do more
refactoring that will make rules more capable.
Also:
- Updated Click to version 5.1 in setup.py
|
|
Users can now install a git commit-msg hook using the --install-hook
commandline flag. This is still experimental and missing some important
features (uninstall, appending to existing hook, restoring incorrect
commit message).
|
|
|
|
- setup.py
- travis integration
- README
- Vagrantfile
- run_tests.sh
- gitignore
- requirements.txt
|