{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that automatically checks whether imports in Python files are sorted correctly according to isort rules, failing tests when import order violations are found.","skillfed_tags":["import-linting","pytest-plugin","code-style"],"use_cases":["Enforce consistent import ordering in CI/CD pipelines by failing builds when imports are unsorted.","Catch import-order violations during local test runs before code review, using pytest's existing test infrastructure.","Exclude specific files or migration directories from import checks while validating the rest of the codebase.","Speed up repeated test runs by skipping files that already passed isort checks in previous runs."],"what_it_does":"pytest-isort is a pytest plugin that integrates isort import-sorting checks into your test suite. When you run pytest with the --isort flag, it scans all Python files in your project and fails tests for any files with incorrectly ordered imports, showing a diff of what isort expects. You can exclude specific files or patterns via isort_ignore in your pytest configuration, and the plugin skips re-checking files that previously passed to speed up repeated test runs.\n\nThe plugin sits between pytest and isort, using isort as its sorting engine. It's useful for teams that want import-order enforcement as part of their CI/CD pipeline without requiring a separate linting step. Configuration is minimal\u2014just add the --isort flag or set isort_ignore rules in pytest.ini\u2014and it respects isort's own configuration files.","worth_installing":"Yes, if you use pytest and want import-order enforcement as part of your test suite. The plugin is stable, has no known vulnerabilities, and integrates cleanly with isort. Maintenance is dormant but the package is mature and unlikely to need updates for basic functionality. Install it if your team values consistent import ordering; skip it if you prefer a separate linting tool or have no import-order standards."},"id":"pytest-isort","links":{"html":"https://skillfed.io/packages/pytest-isort","md":"https://skillfed.io/packages/pytest-isort.md","pypi":"https://pypi.org/project/pytest-isort/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-03-05","license_spdx":null,"license_treatment":"permissive","name":"pytest-isort","python_support":"supports_current","summary":"py.test plugin to check import ordering using isort"},"popularity":{"monthly_downloads":101768,"position":12917,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
