/pre-commit-config

Configuration files leveraging pre-commit for Python code linting and formatting.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Pre-commit Config

This repository is associated with a blog post about linting and formatting Python code. For a repo with more up to date configuration files see here

pre-commit is used to install four Python code linting and formatting tools:

  • flake8 a Python style guide linter
  • bandit a Python security vulnerability linter
  • black a Python automatic code formatter
  • isort a Python automatic import formatter
  • seed-isort-config a tool to statically populate the "known_third_party" part of the .isort.cfg