dongwm.com
推荐pre-commit/pre-push: 本地在commit或者push的时候做各种检查(pep8/pylint/pyflakes8) - 小明明s à domicile
http://www.dongwm.com/archives/tui-jian-pre-commit-slash-pre-push-ben-di-zai-commithuo-zhe-pushde-shi-hou-zuo-ge-chong-jian-cha-pep8-slash-pylint-slash-pyflakes8
使用git的同学想必都有这样的工作场景-保证生产环境的ci不挂. 也就是检查python是否符合pep8/csslint/jslint/pylint/pyflake8等. 我在我的emacs配置中加入了这一项 py-autopep8. 就是在保存缓存区的时候把当前缓存区的文本放到一个临时文件, 然后执行autopep8, 再检查pep8/flake8. 但是不能对css/js/html做规范检查. 而且也不通用. 周末看到了Yelp的 pre-commit. 感觉是个很有意思的东西,虽然之前也写过类似的hook. 但是没有它灵活. 看完他的源码后, 我今天给大家介绍下这个东西. 玩过svn/git的同学应该都知道他们有各种的hook. 也就是准备/完成什么事件的时候做些额外的工作. 一般是shell脚本, 版本控制工具会判断脚本的退出码, 如果不是0, 就不会继续完成. pre-commit顾名思义就是在commit之前做的准备, 也就是每次执行. Git commit -m 'xxx'. PS: 第一次执行commit会比较慢,因为他会clone对应的源, 之后就会用这个缓存的源.
kitsune.readthedocs.io
Hacking HOWTO for Contributors — Kitsune master documentation
http://kitsune.readthedocs.io/en/latest/hacking_howto.html
Hacking HOWTO for Contributors. Setting up an Environment. Error: A csrf token was used in a template, but the context did not provide the value. Running Kitsune with mod wsgi. Hacking HOWTO for Contributors. Hacking HOWTO for Contributors. Setting up an Environment. Error: A csrf token was used in a template, but the context did not provide the value. This chapter helps you get a minimal installation of Kitsune up and running to make it easier to contribute. We also have an option of using a virtual mac...
xwell.org
Open Source Software Engineering
http://xwell.org/2015/04/02/open-source-software-engineering
So much hacking, so little time. Open Source Software Engineering. In the process of leveling up as a programmer, I have started trying to implement some lightweight, basic software engineering concepts. This post serves as a way for me to organize my own thoughts as I learn. It focuses primarily on open-source methodologies, but of course the core lessons themselves apply in any environment. Ive used the Github Flow. For quite a while for lots of things (recently including even this blog. Has become qui...