Automatic installation of pre-commit pylint/pep8 hook
by Stanislav Ochotnicky
Alec and me have been talking about automatic usage of pylint/pep8 in git hooks.
There are 2 approaches basically:
1. let people read README or some other document and install the hook manually
2. automatically install in one way or the other
Because I know people don't read and will forget, we'll check out the repo on
different machine etc. So I've taken the 2nd approach in try-commit-hooks
branch (last commit)[1]
What it does is simple
"ln -s '../../git-hooks/pre-commit' .git/hooks/pre-commit".
Possible issue: I run it in try-fedora-review because I know we won't forget to
run it after checking out new repo. This means automatic installation of hook on
systems which don't have any pre-commit hook yet. But since we are running it at
a point when someone actually tries to execute our code I don't think it's a big
issue (wrt security).
Any opinions either way?
For the record we now have really nice pylint/pep8 clean repository but
problematic commits are appearing because...well me mostly right now :-)
[1] http://git.fedorahosted.org/cgit/FedoraReview.git/commit/?h=try-commit-ho...
--
Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Software Engineer - Base Operating Systems Brno
PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
11 years, 6 months
Branching for release-0.3.0 approaching
by Stanislav Ochotnicky
Hi all,
We are reaching a point where we have amassed enough new features and
improvements that I plan to branch "release-0.3.0" branch later today
when leamas merges his "flags" branch to devel. Notably we have
simplified shell-plugin api, numberous check bugfixes and improvements,
code cleanups(pyflakes, pylint etc), refactored test cases and returning
"EPEL" support (in more generic way).
When I branch, any bugfix for 0.3.0 should go into release-0.3.0 branch.
Do not be afraid to commit there :-) If you commit your fix into devel,
it either won't get into release-0.3.0 or the commit will be duplicated
when I merge release back to devel branch. So...commit fixes to
release-0.3.0 branch when it is created.
Thanks for your attention :-)
--
Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Software Engineer - Base Operating Systems Brno
PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
11 years, 7 months