{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"Runs standard Python linters and formatters (ruff, black, isort, mypy, pylint, flake8, pyupgrade, and others) on Jupyter Notebook code and markdown cells while handling IPython magics and respecting configuration files.","skillfed_tags":["jupyter-ecosystem","code-quality","ci-cd"],"use_cases":["Enforce consistent code style (black, autopep8) across all notebooks in a data science project without manual reformatting.","Run type checking (mypy) or linting (pylint, ruff) on notebook code to catch bugs before they reach production.","Upgrade Python syntax (pyupgrade) and sort imports (isort) across a collection of notebooks as part of CI/CD.","Set up pre-commit hooks to automatically format and lint notebooks before they are committed to version control.","Lint markdown documentation cells in notebooks to maintain consistent documentation formatting."],"what_it_does":"nbqa is a bridge that lets you run any standard Python code quality tool directly on Jupyter Notebooks. Instead of extracting code manually or writing custom scripts, you point nbqa at a notebook and a linter\u2014black, isort, mypy, pylint, flake8, pyupgrade, ruff, or others\u2014and it handles the notebook format transparently. It extracts code cells, runs the tool, and writes changes back while preserving the notebook structure.\n\nThe package is designed for teams that treat notebooks as production code and want to enforce the same style and quality standards across both .py files and .ipynb files. It respects your existing tool configuration files, handles IPython magics robustly so they don't break linting, preserves trailing semicolons in quiet mode, and can lint both code and markdown cells. It also works with .md files saved via Jupytext.","worth_installing":"Yes. nbqa solves a genuine problem\u2014applying code quality tools to notebooks\u2014with low install friction, active maintenance, no known vulnerabilities, and a permissive license. It is widely used in production projects and integrates cleanly into CI/CD and pre-commit workflows. Install it if your team uses Jupyter notebooks and wants to enforce the same code standards as your .py files."},"id":"nbqa","links":{"html":"https://skillfed.io/packages/nbqa","md":"https://skillfed.io/packages/nbqa.md","pypi":"https://pypi.org/project/nbqa/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-11-10","license_spdx":null,"license_treatment":"permissive","name":"nbqa","python_support":"supports_current","summary":"Run any standard Python code quality tool on a Jupyter Notebook"},"popularity":{"monthly_downloads":673313,"position":5397,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.9.1"}
