Comments (6)
I tried that as well, but still nothing happens. I will share the code
from isort.
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
from isort.
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?
from isort.
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?
from isort.
I dont understand why, but i think it happens when you install it using apt.
from isort.
@onurtore do you still experience the issue? Can you provide an example for me to replicate?
from isort.
Related Issues (20)
- Incorrect identification of first and third party modules
- It seems `--jobs` and `--diff` cannot be used together
- try isort page is b0rk
- from xyz import (abc, # isort:skip yo, hey) HOT 1
- Can we add a json schema to complete pyproject.toml's [tool.isort]?
- isort 5.11.2 fails to install in pre-commit HOT 4
- Import in one line if the import fits within the line-length HOT 4
- files configuration option missing from config file(s) HOT 2
- Non-idempotency with commented multiline imports
- [self tests] test_black_pyi_file fails with black 24.2.0
- [self tests] test_isort_should_warn_on_empty_custom_config_issue_1433 fails against Pytest 8
- `--skip-gitignore` still traverses files/directories in .gitignore'd directories HOT 2
- Sorting order is broken and not following standard sort order HOT 13
- Third-party incorrectly identify as First-party depending on the name of the root directory
- isort.core.process incorrectly returns False if only changes to lines before imports were made, with no changes to raw import section
- Ran into `ERROR: Unrecoverable exception thrown when parsing <filepath>`
- Feature Request: Improved Handling of `# type: ignore` Comments to Preserve Mypy Compatibility
- Different order on same file depending on where you execute isort v5.13.2 HOT 1
- THIRDPARTY module detected as FIRSTPARTY when import happens within subdir of same name
- Black line length config support when using `--profile black`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isort.