# Code Linting

# Python

We use below tools to help us keep our Python code clean

  1. https://github.com/psf/black (opens new window)
  2. https://github.com/pycqa/isort (opens new window)
  3. https://github.com/PyCQA/flake8 (opens new window)

# HTML, Django Template

We use below tools to help us keep our Django template clean

  1. https://github.com/thibaudcolas/curlylint (opens new window)
  2. https://github.com/michael-yin/djhtml (opens new window)

# Javascript

We use below tools to help us keep our Django template clean

  1. ESLint (opens new window), it is already imported to the frontend project.
  2. prettier (opens new window)

# CSS, SCSS

We use below tools to help us keep our Django template clean

  1. Stylelint (opens new window), it is already imported to the frontend project.
  2. prettier (opens new window)

# pre-commit

We use pre-commit to check code on git commit hook

# first install requirements.txt
(venv)$ pre-commit install

# check all files
(venv)$ pre-commit run --all-files

You can check https://pre-commit.com/ (opens new window) to learn more.