Docker image to run pre-commit on Python apps/libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Benjamin Renard 5e015a0742
Upgrade isort
4 days ago
fake_python_module Initial release 3 weeks ago
.gitignore Initial release 3 weeks ago
.pre-commit-config.yaml Upgrade isort 4 days ago
Dockerfile Initial release 3 weeks ago
README.md Add note about .pre-commit-config.yaml 3 weeks ago

README.md

Docker image to run pre-commit on Python apps/libraries

Image with common dependencies to run pre-commit in Python apps/libraries:

  • common python packages: python3-all python3-dev python3-pip python3-venv pylint3
  • build-essential to allow local python package using pip
  • pre-commit and git commands
  • pre-install pre-commit environments for pylint, pyupgrade, black and isort

To use it:

docker run -it -v "$(pwd)":/src -w /src brenard/python-pre-commit
pre-commit run --all-files

Note: an example .pre-commit-config.yaml file is provided with Docker image source.