4 Matching Annotations
- Nov 2022
-
raphael-leger.medium.com raphael-leger.medium.com
-
It is handy to manually generate the diagram from times to times using the previously created command: npm run db:diagram:generate. Though, getting the diagram to update itself on its own automatically without a developer interaction would ensure that it the diagram is never obsolete. There are several ways of doing this.You could use a pre-commit git hook or even better simply configure your CI/CD pipeline(s) to run the npm script whenever something gets merged into the main branch 🙂
-
- Jul 2021
-
mitelman.engineering mitelman.engineering
-
The goal of this tutorial is to describe Python development ecosystem.
tl;dr:
INSTALLATION:
- Install Python through pyenv (don't use python.org)
- Install dependencies with Poetry (miniconda3 is also fine for some cases)
TESTING:
- Write tests with pytest (default testing framework for Poetry)
- Check test coverage with pytest-cov plugin
- Use pre-commit for automatic checks before git commiting (for example, for automatic code refactoring)
REFACTORING:
- Lint your code with flake8 to easily find bugs (it is not as strict as pylint)
- Format your code with Black so that it looks the same in every project (is consistent)
- Sort imports with isort (so that they are nicely organised: standard library, third party, local)
-
- Jun 2021
- Jun 2020
-
ljvmiranda921.github.io ljvmiranda921.github.io
-
Automate Python workflow using pre-commits: black and flake8
Super helpful how-to-guide for git pre-commit hooks.
-