Skip to main content

Code Linting

Python​

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

  1. https://github.com/psf/black
  2. https://github.com/pycqa/isort
  3. https://github.com/PyCQA/flake8

HTML, Django Template​

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

  1. https://github.com/thibaudcolas/curlylint
  2. https://github.com/michael-yin/djhtml

Javascript​

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

  1. ESLint, it is already imported to the frontend project.
  2. prettier

CSS, SCSS​

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

  1. Stylelint, it is already imported to the frontend project.
  2. prettier

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/ to learn more.