Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipelaptrin/python-pre-commit
To start a Python project the right way!
https://github.com/felipelaptrin/python-pre-commit
python
Last synced: 12 days ago
JSON representation
To start a Python project the right way!
- Host: GitHub
- URL: https://github.com/felipelaptrin/python-pre-commit
- Owner: felipelaptrin
- Created: 2021-12-25T19:06:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-25T19:36:03.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T17:04:54.126Z (2 months ago)
- Topics: python
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Summary
Basically, a repository with hooks pre-commit using:
- `Black`: A Python code formatter
- `Flake8`: A code checker for your Python code
- `isort`: A Python library for sorting imports## Config files
- `.pre-commit-config.yaml`: Used to configure pre-commit hooks. There are much more [hooks](https://pre-commit.com/hooks.html)
that can be added.
- `pyproject.toml`: Settings for black and isort parameters.
- `.flake8`: Settings for flake8.## Notes
The settings made here are not 100% in compliance with PEP8. I personally think that 79 characters for a line length are not enough and rather use 100 instead.