python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Simplifying line length with pre-commit, flake8, black, isort, pylint, etc
When using multiple tools that either check or format python files, is there a way to set line length once for all?
Currently I have:
.flake8 file:
max-line-length = 120
.isort.cfg file:
line-length ...
Marjeta
Votes: 0
Answers: 2
isort config to always have multiple imports in parenthesis
I am looking for an isort config to have one line per import if it's a single import but as soon as you have multiple imports it switches to parenthesis, so it would look like the following
from somet...
gustavz
Votes: 0
Answers: 1
Using isort to remove imports without making other changes
I have a project that I've recently upgraded to Python 3. Now that I've dropped Python 2 support, I'd now like to remove the from __future__ imports, and think I might be able to use isort (docs)
Say ...
Alasdair
Votes: 0
Answers: 0
pre-commit isort no module named 'setuptools'
I am trying to run pre-commit hooks, but they fail when they come across the isort hook which throws the error below:
File "/home/el/.cache/pre-commit/repoffrjhcx0/py_env-python3/lib/python3.10...
coredumped0x
Votes: 0
Answers: 1