{"repo":"nbQA-dev/nbQA","free":true,"listed":false,"github":"https://github.com/nbQA-dev/nbQA","clone":"git clone https://github.com/nbQA-dev/nbQA.git","description":"Run ruff, isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks","language":"Python","stars":1203,"topics":["python","jupyter-notebook","pre-commit","codequality","lint","isort","black","flake8","doctest","pyupgrade"],"license":"MIT","category":"cli-tools","readme_excerpt":"Run ruff, isort, pyupgrade, mypy, pylint, flake8, black, blacken-docs, and more on Jupyter Notebooks - ✅ handles IPython magics robustly - ✅ respects your config files - ✅ preserves \"quiet mode\" trailing semicolons - ✅ lints both code and markdown cells Table of contents - Table of contents - 🎉 Installation - 🚀 Examples - Command-line - Pre-commit - 🥳 Used by - 💬 Testimonials - 👥 Contributing 🎉 Installation In your virtual environment, run (note: the $ is not part of the command): To also install all supported linters/formatters: 🚀 Examples Command-line Reformat your notebooks with black: Sort your imports with isort: Upgrade your syntax with pyupgrade: Format your markdown cells with blacken-docs: Format .md files saved via Jupytext (requires jupytext to be installed): See command-line examples for examples involving doctest, flake8, mypy, pylint, autopep8, pydocstyle, yapf, and ruff. Pre-commit Here's an example of how to set up some pre-commit hooks: put this in your .pre-commit-config.yaml file (see usage as pre-commit hook) If you need to select specific versions of these linters/formatters, add them to additional dependencies . 🥳 Used by Click here for (non-exhaustive) list of repos - https://github.com/ComPWA/ampform - https://github.com/ComPWA/tensorwaves - https://github.com/DataS-DHSC/os-maps-example - https://github.com/Eazhi/World-Happiness-Analysis - https://github.com/GoogleCloudPlatform/ai-platform-samples - https://github.com/MRCIEU/epigraphdb - https:","default_branch":null,"files":null,"tree":[],"storefront":"/r/nbQA-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nbQA-dev/nbQA/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}