Closed lanterno closed 3 months ago
Our current pre-commit hook includes the "prettier" linter, which ensures the YAML data files look nice.
In this ticket, I'm suggesting we also add:
check-yaml
end-of-file-fixer
trailing-whitespace
check-added-large-files
As basic checks for non-python files.
And more importantly, for python files:
Black
isort
I also considered adding flake8 to the tooling, but it would introduce some incompatibility with black, and our first goal is to maintain a fast development workflow rather than the best looking code.
I would kill this ticket for now. The topic will be revisited on the new iteration on the project.
Our current pre-commit hook includes the "prettier" linter, which ensures the YAML data files look nice.
In this ticket, I'm suggesting we also add:
check-yaml
end-of-file-fixer
trailing-whitespace
check-added-large-files
As basic checks for non-python files.
And more importantly, for python files:
Black
- For highly opinionated lintingisort
- Ensuring a consistent ordering for importsI also considered adding flake8 to the tooling, but it would introduce some incompatibility with black, and our first goal is to maintain a fast development workflow rather than the best looking code.