EP17. Use the Flake8, Luke!
Manage episode 349200335 series 2918929
Hi 大家好,这一期信涛和 Luke 聊了有关 Lint 的话题,包括 Flake8,如何使用 CI 等。如果喜欢我们的节目,欢迎通过爱发电打赏支持:https://afdian.net/@pythonhunter
时间轴:
- 02:00 日常项目中会用到的 Lint 工具;
- 14:30 其他语言的 Lint 工具;
- 20:00 一些集成 Lint 的 Bot 想法...
- 30:00 如何开发 Flake8 插件;
- 36:00 我们在公司里是怎么使用CI的;
- 45:00 使用 Git hook;
- 17:30 推荐环节;
相关资料:
- https://github.com/topics/flake8
- https://github.com/DmytroLitvinov/awesome-flake8-extensions
- https://flake8.pycqa.org/en/latest/plugin-development/
- https://www.pylint.org/
- https://www.python.org/dev/peps/pep-0008/
- [Luke 提到的能找出潜在 Bug 的 flake8 插件](https://github.com/PyCQA/flake8-bugbear)
- [检查代码中是否有 print 的插件](https://github.com/JBKahn/flake8-print)
- [Git Hooks](https://githooks.com/)
- Luke 推荐:[Hypothesis](https://hypothesis.readthedocs.io/en/latest/)
嘉宾 Luke:https://keybase.io/quantumghost
37集单集