Skip to content

Code Formatting

Jim Hafner edited this page Mar 11, 2020 · 2 revisions

GovLens enforces code style using Black and pep8 rules using Flake8. To set up automatic code formatting for black standards, perform the following steps:

  • pip install -U black pre-commit
  • pre-commit install

To manually run Flake8 from project root:

  • pip install -U flake8
  • flake8 . --ignore E501,W503,E203
Clone this wiki locally