What does HackerNews think of reorder_python_imports?
Rewrites source to reorder python imports
Language:
Python
#164
in
Python
Two developers on the same python project should also use the same version... with poetry it is straightforward to keep track of dev dependencies. Reorder python imports is an alternative for isort: https://github.com/asottile/reorder_python_imports
isort is the most popular, but this is the best by far:
Your parent is correct. Here's our pre-commit config too FWIW:
more .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.3.4
hooks:
- id: reorder-python-imports
args: [--application-directories=gaia]
language_version: python3
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3
- repo: local
hooks:
- id: eslint
name: eslint
entry: ./frontend/node_modules/.bin/eslint --fix
language: node
language_version: system
files: \.(js|jsx|ts|tsx)$
- repo: https://github.com/prettier/prettier
rev: "1.15.3"
hooks:
- id: prettier
files: \.(yml|yaml|md|json)$
language_version: system