3 ms·
How do you recommend fitting an autoformatter into a programming workflow? I'm using pycharm
by askvictor 7y ago
How do you recommend fitting an autoformatter into a programming workflow? I'm using pycharm
- jalanb 7y agopycharm is a workflow now?
- misterdoubt 7y agoFormat on save. Failing that, format as part of your normal tox run. Failing that, pre-commit hook.
- IanCal 7y agoYou can also add it to your CI, for black that seems to be `black --check`
- Ace17 7y agoAll my projects have a top-level 'check' script, which always does, in order: - reformat the whole codebase - build (if needed, e.g a C++ project) - run all tests The programming workflow is then: - edit code - run the 'check' script - repeat.