Open onurtore opened 11 months ago
Hi!
It shouldn't be the case, isort . --profile black
looks like a correct command.
Do you have a sample of the code where the problem can be reproduced?
Or do you have a traceback of the error?
I tried that as well, but still nothing happens. I will share the code
Hi @bp72 and @onurtore, I am facing the same issue:
VERSION 4.3.21
My command is:
$ isort src/model/* --profile=black
usage: isort.macos [-h] [-a ADD_IMPORTS] [-ac] [-af] [-b KNOWN_STANDARD_LIBRARY] [-c] [-ca] [-cs] [-d] [-df] [-ds] [-dt] [-e]
[-f KNOWN_FUTURE_LIBRARY] [-fas] [-fass] [-ff FROM_FIRST] [-fgw [FORCE_GRID_WRAP]] [-fss] [-i INDENT] [-j JOBS] [-k]
[-l LINE_LENGTH] [-lai LINES_AFTER_IMPORTS] [-lbt LINES_BETWEEN_TYPES] [-le LINE_ENDING] [-ls] [-m {0,1,2,3,4,5,6,7}] [-nis]
[-nlb NO_LINES_BEFORE] [-ns NOT_SKIP] [-o KNOWN_THIRD_PARTY] [-ot] [-p KNOWN_FIRST_PARTY] [-q] [-r] [-rm REMOVE_IMPORTS] [-rr]
[-rc] [-s SKIP] [-sd DEFAULT_SECTION] [-sg SKIP_GLOB] [-sl] [-sp SETTINGS_PATH] [-t FORCE_TO_TOP] [-tc] [-up] [-v] [-vb]
[--virtual-env VIRTUAL_ENV] [--conda-env CONDA_ENV] [-vn] [-w LINE_LENGTH] [-wl WRAP_LENGTH] [-ws] [-y] [--unsafe]
[--case-sensitive] [--filter-files]
[files ...]
isort.macos: error: unrecognized arguments: --profile=black
Any idea?
I dont understand why, but i think it happens when you install it using apt.
with apt?!
I had this issue because I used an old version of isort. It works with VERSION 5.13.2
pip install isort==5.13.2
@onurtore do you still experience the issue? Can you provide an example for me to replicate?
Hi! I am running isort 5.12, and whenever I try to run it using isort . --profile black, the isort throws an error saying that unrecognized arugments: --profile black.
Am I doing something wrong?