About 4,590,000 results
Open links in new tab
  1. VSCode: how to config 'Organize imports' for Python (isort)

    Apr 12, 2021 · Mirror question to: "How to config VSCode's Organize Imports order?" which refers to a .js project. I want to configure how VSCode is invoking isort, so I can customize when calling Org...

  2. python - isort black strange behavior - Stack Overflow

    May 8, 2023 · When applying isort 5.12.0 in pre-commit within a python file, it re-orders the imports in bad. In bitbucket pipelines, the same code orders correctly. This correct code: from dagster import

  3. How do I isort using ruff? - Stack Overflow

    Mar 13, 2024 · I often work in very small projects which do not have config file. How do I use ruff in place of isort to sort the imports? I know that the following command is roughly equivalent to black: ruff fo...

  4. git pre-commit hook isort and black keep failing for a python project ...

    Jan 9, 2024 · git pre-commit hook isort and black keep failing for a python project Asked 1 year, 11 months ago Modified 1 year, 3 months ago Viewed 1k times

  5. How to prevent ruff from formatting arguments of a function into ...

    Apr 6, 2025 · $ ruff format test.py warning: The isort option `isort.split-on-trailing-comma` is incompatible with the formatter `format.skip-magic-trailing-comma=true` option. To avoid unexpected behavior, we …

  6. python - Sort imports alphabetically with Ruff - Stack Overflow

    Jan 24, 2024 · You can sort the imports and format the code by running the following commands (source): ruff check --select I --fix ruff format Note that sorting is done at the linting stage, which can …

  7. How to make Black and Isort work with Auto Save on VSCode?

    Jun 12, 2023 · Now, I enabled Auto Save as shown below, then Auto Save itself works but Auto Save doesn't work with Black and Isort so I still need to save manually by pressing Ctrl + S to make Black …

  8. Is there a way for isort to automatically detect firstparty vs ...

    Is there a way for isort to automatically detect firstparty vs thirdparty modules in a codebase with multiple standalone packages? Asked 5 years, 3 months ago Modified 2 years, 9 months ago Viewed 7k times

  9. python - Simplifying line length with pre-commit, flake8, black, isort ...

    Apr 6, 2022 · Simplifying line length with pre-commit, flake8, black, isort, pylint, etc Asked 3 years, 8 months ago Modified 2 years, 8 months ago Viewed 16k times

  10. Sort every thirdparty imports as different sections using isort

    Aug 28, 2022 · I'm trying to work with flake8 and isort libraries. I want to sort every third-party module into different sections, in easy words I want a new line between every third-party module. For …