Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

581 rader
25 KiB

  1. Metadata-Version: 2.4
  2. Name: ruff
  3. Version: 0.12.7
  4. Classifier: Development Status :: 5 - Production/Stable
  5. Classifier: Environment :: Console
  6. Classifier: Intended Audience :: Developers
  7. Classifier: License :: OSI Approved :: MIT License
  8. Classifier: Operating System :: OS Independent
  9. Classifier: Programming Language :: Python
  10. Classifier: Programming Language :: Python :: 3.7
  11. Classifier: Programming Language :: Python :: 3.8
  12. Classifier: Programming Language :: Python :: 3.9
  13. Classifier: Programming Language :: Python :: 3.10
  14. Classifier: Programming Language :: Python :: 3.11
  15. Classifier: Programming Language :: Python :: 3.12
  16. Classifier: Programming Language :: Python :: 3.13
  17. Classifier: Programming Language :: Python :: 3 :: Only
  18. Classifier: Programming Language :: Rust
  19. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  20. Classifier: Topic :: Software Development :: Quality Assurance
  21. License-File: LICENSE
  22. Summary: An extremely fast Python linter and code formatter, written in Rust.
  23. Keywords: automation,flake8,pycodestyle,pyflakes,pylint,clippy
  24. Home-Page: https://docs.astral.sh/ruff
  25. Author-email: "Astral Software Inc." <hey@astral.sh>
  26. Requires-Python: >=3.7
  27. Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
  28. Project-URL: Repository, https://github.com/astral-sh/ruff
  29. Project-URL: Documentation, https://docs.astral.sh/ruff/
  30. Project-URL: Changelog, https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md
  31. <!-- Begin section: Overview -->
  32. # Ruff
  33. [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
  34. [![image](https://img.shields.io/pypi/v/ruff.svg)](https://pypi.python.org/pypi/ruff)
  35. [![image](https://img.shields.io/pypi/l/ruff.svg)](https://github.com/astral-sh/ruff/blob/main/LICENSE)
  36. [![image](https://img.shields.io/pypi/pyversions/ruff.svg)](https://pypi.python.org/pypi/ruff)
  37. [![Actions status](https://github.com/astral-sh/ruff/workflows/CI/badge.svg)](https://github.com/astral-sh/ruff/actions)
  38. [![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?logo=discord&logoColor=white)](https://discord.com/invite/astral-sh)
  39. [**Docs**](https://docs.astral.sh/ruff/) | [**Playground**](https://play.ruff.rs/)
  40. An extremely fast Python linter and code formatter, written in Rust.
  41. <p align="center">
  42. <img alt="Shows a bar chart with benchmark results." src="https://user-images.githubusercontent.com/1309177/232603516-4fb4892d-585c-4b20-b810-3db9161831e4.svg">
  43. </p>
  44. <p align="center">
  45. <i>Linting the CPython codebase from scratch.</i>
  46. </p>
  47. - ⚡️ 10-100x faster than existing linters (like Flake8) and formatters (like Black)
  48. - 🐍 Installable via `pip`
  49. - 🛠️ `pyproject.toml` support
  50. - 🤝 Python 3.13 compatibility
  51. - ⚖️ Drop-in parity with [Flake8](https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-flake8), isort, and [Black](https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black)
  52. - 📦 Built-in caching, to avoid re-analyzing unchanged files
  53. - 🔧 Fix support, for automatic error correction (e.g., automatically remove unused imports)
  54. - 📏 Over [800 built-in rules](https://docs.astral.sh/ruff/rules/), with native re-implementations
  55. of popular Flake8 plugins, like flake8-bugbear
  56. - ⌨️ First-party [editor integrations](https://docs.astral.sh/ruff/editors) for [VS Code](https://github.com/astral-sh/ruff-vscode) and [more](https://docs.astral.sh/ruff/editors/setup)
  57. - 🌎 Monorepo-friendly, with [hierarchical and cascading configuration](https://docs.astral.sh/ruff/configuration/#config-file-discovery)
  58. Ruff aims to be orders of magnitude faster than alternative tools while integrating more
  59. functionality behind a single, common interface.
  60. Ruff can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins),
  61. [Black](https://github.com/psf/black), [isort](https://pypi.org/project/isort/),
  62. [pydocstyle](https://pypi.org/project/pydocstyle/), [pyupgrade](https://pypi.org/project/pyupgrade/),
  63. [autoflake](https://pypi.org/project/autoflake/), and more, all while executing tens or hundreds of
  64. times faster than any individual tool.
  65. Ruff is extremely actively developed and used in major open-source projects like:
  66. - [Apache Airflow](https://github.com/apache/airflow)
  67. - [Apache Superset](https://github.com/apache/superset)
  68. - [FastAPI](https://github.com/tiangolo/fastapi)
  69. - [Hugging Face](https://github.com/huggingface/transformers)
  70. - [Pandas](https://github.com/pandas-dev/pandas)
  71. - [SciPy](https://github.com/scipy/scipy)
  72. ...and [many more](#whos-using-ruff).
  73. Ruff is backed by [Astral](https://astral.sh). Read the [launch post](https://astral.sh/blog/announcing-astral-the-company-behind-ruff),
  74. or the original [project announcement](https://notes.crmarsh.com/python-tooling-could-be-much-much-faster).
  75. ## Testimonials
  76. [**Sebastián Ramírez**](https://twitter.com/tiangolo/status/1591912354882764802), creator
  77. of [FastAPI](https://github.com/tiangolo/fastapi):
  78. > Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually
  79. > running and checking the code.
  80. [**Nick Schrock**](https://twitter.com/schrockn/status/1612615862904827904), founder of [Elementl](https://www.elementl.com/),
  81. co-creator of [GraphQL](https://graphql.org/):
  82. > Why is Ruff a gamechanger? Primarily because it is nearly 1000x faster. Literally. Not a typo. On
  83. > our largest module (dagster itself, 250k LOC) pylint takes about 2.5 minutes, parallelized across 4
  84. > cores on my M1. Running ruff against our _entire_ codebase takes .4 seconds.
  85. [**Bryan Van de Ven**](https://github.com/bokeh/bokeh/pull/12605), co-creator
  86. of [Bokeh](https://github.com/bokeh/bokeh/), original author
  87. of [Conda](https://docs.conda.io/en/latest/):
  88. > Ruff is ~150-200x faster than flake8 on my machine, scanning the whole repo takes ~0.2s instead of
  89. > ~20s. This is an enormous quality of life improvement for local dev. It's fast enough that I added
  90. > it as an actual commit hook, which is terrific.
  91. [**Timothy Crosley**](https://twitter.com/timothycrosley/status/1606420868514877440),
  92. creator of [isort](https://github.com/PyCQA/isort):
  93. > Just switched my first project to Ruff. Only one downside so far: it's so fast I couldn't believe
  94. > it was working till I intentionally introduced some errors.
  95. [**Tim Abbott**](https://github.com/astral-sh/ruff/issues/465#issuecomment-1317400028), lead
  96. developer of [Zulip](https://github.com/zulip/zulip):
  97. > This is just ridiculously fast... `ruff` is amazing.
  98. <!-- End section: Overview -->
  99. ## Table of Contents
  100. For more, see the [documentation](https://docs.astral.sh/ruff/).
  101. 1. [Getting Started](#getting-started)
  102. 1. [Configuration](#configuration)
  103. 1. [Rules](#rules)
  104. 1. [Contributing](#contributing)
  105. 1. [Support](#support)
  106. 1. [Acknowledgements](#acknowledgements)
  107. 1. [Who's Using Ruff?](#whos-using-ruff)
  108. 1. [License](#license)
  109. ## Getting Started<a id="getting-started"></a>
  110. For more, see the [documentation](https://docs.astral.sh/ruff/).
  111. ### Installation
  112. Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI.
  113. Invoke Ruff directly with [`uvx`](https://docs.astral.sh/uv/):
  114. ```shell
  115. uvx ruff check # Lint all files in the current directory.
  116. uvx ruff format # Format all files in the current directory.
  117. ```
  118. Or install Ruff with `uv` (recommended), `pip`, or `pipx`:
  119. ```shell
  120. # With uv.
  121. uv tool install ruff@latest # Install Ruff globally.
  122. uv add --dev ruff # Or add Ruff to your project.
  123. # With pip.
  124. pip install ruff
  125. # With pipx.
  126. pipx install ruff
  127. ```
  128. Starting with version `0.5.0`, Ruff can be installed with our standalone installers:
  129. ```shell
  130. # On macOS and Linux.
  131. curl -LsSf https://astral.sh/ruff/install.sh | sh
  132. # On Windows.
  133. powershell -c "irm https://astral.sh/ruff/install.ps1 | iex"
  134. # For a specific version.
  135. curl -LsSf https://astral.sh/ruff/0.12.7/install.sh | sh
  136. powershell -c "irm https://astral.sh/ruff/0.12.7/install.ps1 | iex"
  137. ```
  138. You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
  139. and with [a variety of other package managers](https://docs.astral.sh/ruff/installation/).
  140. ### Usage
  141. To run Ruff as a linter, try any of the following:
  142. ```shell
  143. ruff check # Lint all files in the current directory (and any subdirectories).
  144. ruff check path/to/code/ # Lint all files in `/path/to/code` (and any subdirectories).
  145. ruff check path/to/code/*.py # Lint all `.py` files in `/path/to/code`.
  146. ruff check path/to/code/to/file.py # Lint `file.py`.
  147. ruff check @arguments.txt # Lint using an input file, treating its contents as newline-delimited command-line arguments.
  148. ```
  149. Or, to run Ruff as a formatter:
  150. ```shell
  151. ruff format # Format all files in the current directory (and any subdirectories).
  152. ruff format path/to/code/ # Format all files in `/path/to/code` (and any subdirectories).
  153. ruff format path/to/code/*.py # Format all `.py` files in `/path/to/code`.
  154. ruff format path/to/code/to/file.py # Format `file.py`.
  155. ruff format @arguments.txt # Format using an input file, treating its contents as newline-delimited command-line arguments.
  156. ```
  157. Ruff can also be used as a [pre-commit](https://pre-commit.com/) hook via [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit):
  158. ```yaml
  159. - repo: https://github.com/astral-sh/ruff-pre-commit
  160. # Ruff version.
  161. rev: v0.12.7
  162. hooks:
  163. # Run the linter.
  164. - id: ruff-check
  165. args: [ --fix ]
  166. # Run the formatter.
  167. - id: ruff-format
  168. ```
  169. Ruff can also be used as a [VS Code extension](https://github.com/astral-sh/ruff-vscode) or with [various other editors](https://docs.astral.sh/ruff/editors/setup).
  170. Ruff can also be used as a [GitHub Action](https://github.com/features/actions) via
  171. [`ruff-action`](https://github.com/astral-sh/ruff-action):
  172. ```yaml
  173. name: Ruff
  174. on: [ push, pull_request ]
  175. jobs:
  176. ruff:
  177. runs-on: ubuntu-latest
  178. steps:
  179. - uses: actions/checkout@v4
  180. - uses: astral-sh/ruff-action@v3
  181. ```
  182. ### Configuration<a id="configuration"></a>
  183. Ruff can be configured through a `pyproject.toml`, `ruff.toml`, or `.ruff.toml` file (see:
  184. [_Configuration_](https://docs.astral.sh/ruff/configuration/), or [_Settings_](https://docs.astral.sh/ruff/settings/)
  185. for a complete list of all configuration options).
  186. If left unspecified, Ruff's default configuration is equivalent to the following `ruff.toml` file:
  187. ```toml
  188. # Exclude a variety of commonly ignored directories.
  189. exclude = [
  190. ".bzr",
  191. ".direnv",
  192. ".eggs",
  193. ".git",
  194. ".git-rewrite",
  195. ".hg",
  196. ".ipynb_checkpoints",
  197. ".mypy_cache",
  198. ".nox",
  199. ".pants.d",
  200. ".pyenv",
  201. ".pytest_cache",
  202. ".pytype",
  203. ".ruff_cache",
  204. ".svn",
  205. ".tox",
  206. ".venv",
  207. ".vscode",
  208. "__pypackages__",
  209. "_build",
  210. "buck-out",
  211. "build",
  212. "dist",
  213. "node_modules",
  214. "site-packages",
  215. "venv",
  216. ]
  217. # Same as Black.
  218. line-length = 88
  219. indent-width = 4
  220. # Assume Python 3.9
  221. target-version = "py39"
  222. [lint]
  223. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
  224. select = ["E4", "E7", "E9", "F"]
  225. ignore = []
  226. # Allow fix for all enabled rules (when `--fix`) is provided.
  227. fixable = ["ALL"]
  228. unfixable = []
  229. # Allow unused variables when underscore-prefixed.
  230. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
  231. [format]
  232. # Like Black, use double quotes for strings.
  233. quote-style = "double"
  234. # Like Black, indent with spaces, rather than tabs.
  235. indent-style = "space"
  236. # Like Black, respect magic trailing commas.
  237. skip-magic-trailing-comma = false
  238. # Like Black, automatically detect the appropriate line ending.
  239. line-ending = "auto"
  240. ```
  241. Note that, in a `pyproject.toml`, each section header should be prefixed with `tool.ruff`. For
  242. example, `[lint]` should be replaced with `[tool.ruff.lint]`.
  243. Some configuration options can be provided via dedicated command-line arguments, such as those
  244. related to rule enablement and disablement, file discovery, and logging level:
  245. ```shell
  246. ruff check --select F401 --select F403 --quiet
  247. ```
  248. The remaining configuration options can be provided through a catch-all `--config` argument:
  249. ```shell
  250. ruff check --config "lint.per-file-ignores = {'some_file.py' = ['F841']}"
  251. ```
  252. To opt in to the latest lint rules, formatter style changes, interface updates, and more, enable
  253. [preview mode](https://docs.astral.sh/ruff/rules/) by setting `preview = true` in your configuration
  254. file or passing `--preview` on the command line. Preview mode enables a collection of unstable
  255. features that may change prior to stabilization.
  256. See `ruff help` for more on Ruff's top-level commands, or `ruff help check` and `ruff help format`
  257. for more on the linting and formatting commands, respectively.
  258. ## Rules<a id="rules"></a>
  259. <!-- Begin section: Rules -->
  260. **Ruff supports over 800 lint rules**, many of which are inspired by popular tools like Flake8,
  261. isort, pyupgrade, and others. Regardless of the rule's origin, Ruff re-implements every rule in
  262. Rust as a first-party feature.
  263. By default, Ruff enables Flake8's `F` rules, along with a subset of the `E` rules, omitting any
  264. stylistic rules that overlap with the use of a formatter, like `ruff format` or
  265. [Black](https://github.com/psf/black).
  266. If you're just getting started with Ruff, **the default rule set is a great place to start**: it
  267. catches a wide variety of common errors (like unused imports) with zero configuration.
  268. <!-- End section: Rules -->
  269. Beyond the defaults, Ruff re-implements some of the most popular Flake8 plugins and related code
  270. quality tools, including:
  271. - [autoflake](https://pypi.org/project/autoflake/)
  272. - [eradicate](https://pypi.org/project/eradicate/)
  273. - [flake8-2020](https://pypi.org/project/flake8-2020/)
  274. - [flake8-annotations](https://pypi.org/project/flake8-annotations/)
  275. - [flake8-async](https://pypi.org/project/flake8-async)
  276. - [flake8-bandit](https://pypi.org/project/flake8-bandit/) ([#1646](https://github.com/astral-sh/ruff/issues/1646))
  277. - [flake8-blind-except](https://pypi.org/project/flake8-blind-except/)
  278. - [flake8-boolean-trap](https://pypi.org/project/flake8-boolean-trap/)
  279. - [flake8-bugbear](https://pypi.org/project/flake8-bugbear/)
  280. - [flake8-builtins](https://pypi.org/project/flake8-builtins/)
  281. - [flake8-commas](https://pypi.org/project/flake8-commas/)
  282. - [flake8-comprehensions](https://pypi.org/project/flake8-comprehensions/)
  283. - [flake8-copyright](https://pypi.org/project/flake8-copyright/)
  284. - [flake8-datetimez](https://pypi.org/project/flake8-datetimez/)
  285. - [flake8-debugger](https://pypi.org/project/flake8-debugger/)
  286. - [flake8-django](https://pypi.org/project/flake8-django/)
  287. - [flake8-docstrings](https://pypi.org/project/flake8-docstrings/)
  288. - [flake8-eradicate](https://pypi.org/project/flake8-eradicate/)
  289. - [flake8-errmsg](https://pypi.org/project/flake8-errmsg/)
  290. - [flake8-executable](https://pypi.org/project/flake8-executable/)
  291. - [flake8-future-annotations](https://pypi.org/project/flake8-future-annotations/)
  292. - [flake8-gettext](https://pypi.org/project/flake8-gettext/)
  293. - [flake8-implicit-str-concat](https://pypi.org/project/flake8-implicit-str-concat/)
  294. - [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions)
  295. - [flake8-logging](https://pypi.org/project/flake8-logging/)
  296. - [flake8-logging-format](https://pypi.org/project/flake8-logging-format/)
  297. - [flake8-no-pep420](https://pypi.org/project/flake8-no-pep420)
  298. - [flake8-pie](https://pypi.org/project/flake8-pie/)
  299. - [flake8-print](https://pypi.org/project/flake8-print/)
  300. - [flake8-pyi](https://pypi.org/project/flake8-pyi/)
  301. - [flake8-pytest-style](https://pypi.org/project/flake8-pytest-style/)
  302. - [flake8-quotes](https://pypi.org/project/flake8-quotes/)
  303. - [flake8-raise](https://pypi.org/project/flake8-raise/)
  304. - [flake8-return](https://pypi.org/project/flake8-return/)
  305. - [flake8-self](https://pypi.org/project/flake8-self/)
  306. - [flake8-simplify](https://pypi.org/project/flake8-simplify/)
  307. - [flake8-slots](https://pypi.org/project/flake8-slots/)
  308. - [flake8-super](https://pypi.org/project/flake8-super/)
  309. - [flake8-tidy-imports](https://pypi.org/project/flake8-tidy-imports/)
  310. - [flake8-todos](https://pypi.org/project/flake8-todos/)
  311. - [flake8-type-checking](https://pypi.org/project/flake8-type-checking/)
  312. - [flake8-use-pathlib](https://pypi.org/project/flake8-use-pathlib/)
  313. - [flynt](https://pypi.org/project/flynt/) ([#2102](https://github.com/astral-sh/ruff/issues/2102))
  314. - [isort](https://pypi.org/project/isort/)
  315. - [mccabe](https://pypi.org/project/mccabe/)
  316. - [pandas-vet](https://pypi.org/project/pandas-vet/)
  317. - [pep8-naming](https://pypi.org/project/pep8-naming/)
  318. - [pydocstyle](https://pypi.org/project/pydocstyle/)
  319. - [pygrep-hooks](https://github.com/pre-commit/pygrep-hooks)
  320. - [pylint-airflow](https://pypi.org/project/pylint-airflow/)
  321. - [pyupgrade](https://pypi.org/project/pyupgrade/)
  322. - [tryceratops](https://pypi.org/project/tryceratops/)
  323. - [yesqa](https://pypi.org/project/yesqa/)
  324. For a complete enumeration of the supported rules, see [_Rules_](https://docs.astral.sh/ruff/rules/).
  325. ## Contributing<a id="contributing"></a>
  326. Contributions are welcome and highly appreciated. To get started, check out the
  327. [**contributing guidelines**](https://docs.astral.sh/ruff/contributing/).
  328. You can also join us on [**Discord**](https://discord.com/invite/astral-sh).
  329. ## Support<a id="support"></a>
  330. Having trouble? Check out the existing issues on [**GitHub**](https://github.com/astral-sh/ruff/issues),
  331. or feel free to [**open a new one**](https://github.com/astral-sh/ruff/issues/new).
  332. You can also ask for help on [**Discord**](https://discord.com/invite/astral-sh).
  333. ## Acknowledgements<a id="acknowledgements"></a>
  334. Ruff's linter draws on both the APIs and implementation details of many other
  335. tools in the Python ecosystem, especially [Flake8](https://github.com/PyCQA/flake8), [Pyflakes](https://github.com/PyCQA/pyflakes),
  336. [pycodestyle](https://github.com/PyCQA/pycodestyle), [pydocstyle](https://github.com/PyCQA/pydocstyle),
  337. [pyupgrade](https://github.com/asottile/pyupgrade), and [isort](https://github.com/PyCQA/isort).
  338. In some cases, Ruff includes a "direct" Rust port of the corresponding tool.
  339. We're grateful to the maintainers of these tools for their work, and for all
  340. the value they've provided to the Python community.
  341. Ruff's formatter is built on a fork of Rome's [`rome_formatter`](https://github.com/rome/tools/tree/main/crates/rome_formatter),
  342. and again draws on both API and implementation details from [Rome](https://github.com/rome/tools),
  343. [Prettier](https://github.com/prettier/prettier), and [Black](https://github.com/psf/black).
  344. Ruff's import resolver is based on the import resolution algorithm from [Pyright](https://github.com/microsoft/pyright).
  345. Ruff is also influenced by a number of tools outside the Python ecosystem, like
  346. [Clippy](https://github.com/rust-lang/rust-clippy) and [ESLint](https://github.com/eslint/eslint).
  347. Ruff is the beneficiary of a large number of [contributors](https://github.com/astral-sh/ruff/graphs/contributors).
  348. Ruff is released under the MIT license.
  349. ## Who's Using Ruff?<a id="whos-using-ruff"></a>
  350. Ruff is used by a number of major open-source projects and companies, including:
  351. - [Albumentations](https://github.com/albumentations-team/albumentations)
  352. - Amazon ([AWS SAM](https://github.com/aws/serverless-application-model))
  353. - [Anki](https://apps.ankiweb.net/)
  354. - Anthropic ([Python SDK](https://github.com/anthropics/anthropic-sdk-python))
  355. - [Apache Airflow](https://github.com/apache/airflow)
  356. - AstraZeneca ([Magnus](https://github.com/AstraZeneca/magnus-core))
  357. - [Babel](https://github.com/python-babel/babel)
  358. - Benchling ([Refac](https://github.com/benchling/refac))
  359. - [Bokeh](https://github.com/bokeh/bokeh)
  360. - Capital One ([datacompy](https://github.com/capitalone/datacompy))
  361. - CrowdCent ([NumerBlox](https://github.com/crowdcent/numerblox)) <!-- typos: ignore -->
  362. - [Cryptography (PyCA)](https://github.com/pyca/cryptography)
  363. - CERN ([Indico](https://getindico.io/))
  364. - [DVC](https://github.com/iterative/dvc)
  365. - [Dagger](https://github.com/dagger/dagger)
  366. - [Dagster](https://github.com/dagster-io/dagster)
  367. - Databricks ([MLflow](https://github.com/mlflow/mlflow))
  368. - [Dify](https://github.com/langgenius/dify)
  369. - [FastAPI](https://github.com/tiangolo/fastapi)
  370. - [Godot](https://github.com/godotengine/godot)
  371. - [Gradio](https://github.com/gradio-app/gradio)
  372. - [Great Expectations](https://github.com/great-expectations/great_expectations)
  373. - [HTTPX](https://github.com/encode/httpx)
  374. - [Hatch](https://github.com/pypa/hatch)
  375. - [Home Assistant](https://github.com/home-assistant/core)
  376. - Hugging Face ([Transformers](https://github.com/huggingface/transformers),
  377. [Datasets](https://github.com/huggingface/datasets),
  378. [Diffusers](https://github.com/huggingface/diffusers))
  379. - IBM ([Qiskit](https://github.com/Qiskit/qiskit))
  380. - ING Bank ([popmon](https://github.com/ing-bank/popmon), [probatus](https://github.com/ing-bank/probatus))
  381. - [Ibis](https://github.com/ibis-project/ibis)
  382. - [ivy](https://github.com/unifyai/ivy)
  383. - [JAX](https://github.com/jax-ml/jax)
  384. - [Jupyter](https://github.com/jupyter-server/jupyter_server)
  385. - [Kraken Tech](https://kraken.tech/)
  386. - [LangChain](https://github.com/hwchase17/langchain)
  387. - [Litestar](https://litestar.dev/)
  388. - [LlamaIndex](https://github.com/jerryjliu/llama_index)
  389. - Matrix ([Synapse](https://github.com/matrix-org/synapse))
  390. - [MegaLinter](https://github.com/oxsecurity/megalinter)
  391. - Meltano ([Meltano CLI](https://github.com/meltano/meltano), [Singer SDK](https://github.com/meltano/sdk))
  392. - Microsoft ([Semantic Kernel](https://github.com/microsoft/semantic-kernel),
  393. [ONNX Runtime](https://github.com/microsoft/onnxruntime),
  394. [LightGBM](https://github.com/microsoft/LightGBM))
  395. - Modern Treasury ([Python SDK](https://github.com/Modern-Treasury/modern-treasury-python))
  396. - Mozilla ([Firefox](https://github.com/mozilla/gecko-dev))
  397. - [Mypy](https://github.com/python/mypy)
  398. - [Nautobot](https://github.com/nautobot/nautobot)
  399. - Netflix ([Dispatch](https://github.com/Netflix/dispatch))
  400. - [Neon](https://github.com/neondatabase/neon)
  401. - [Nokia](https://nokia.com/)
  402. - [NoneBot](https://github.com/nonebot/nonebot2)
  403. - [NumPyro](https://github.com/pyro-ppl/numpyro)
  404. - [ONNX](https://github.com/onnx/onnx)
  405. - [OpenBB](https://github.com/OpenBB-finance/OpenBBTerminal)
  406. - [Open Wine Components](https://github.com/Open-Wine-Components/umu-launcher)
  407. - [PDM](https://github.com/pdm-project/pdm)
  408. - [PaddlePaddle](https://github.com/PaddlePaddle/Paddle)
  409. - [Pandas](https://github.com/pandas-dev/pandas)
  410. - [Pillow](https://github.com/python-pillow/Pillow)
  411. - [Poetry](https://github.com/python-poetry/poetry)
  412. - [Polars](https://github.com/pola-rs/polars)
  413. - [PostHog](https://github.com/PostHog/posthog)
  414. - Prefect ([Python SDK](https://github.com/PrefectHQ/prefect), [Marvin](https://github.com/PrefectHQ/marvin))
  415. - [PyInstaller](https://github.com/pyinstaller/pyinstaller)
  416. - [PyMC](https://github.com/pymc-devs/pymc/)
  417. - [PyMC-Marketing](https://github.com/pymc-labs/pymc-marketing)
  418. - [pytest](https://github.com/pytest-dev/pytest)
  419. - [PyTorch](https://github.com/pytorch/pytorch)
  420. - [Pydantic](https://github.com/pydantic/pydantic)
  421. - [Pylint](https://github.com/PyCQA/pylint)
  422. - [PyVista](https://github.com/pyvista/pyvista)
  423. - [Reflex](https://github.com/reflex-dev/reflex)
  424. - [River](https://github.com/online-ml/river)
  425. - [Rippling](https://rippling.com)
  426. - [Robyn](https://github.com/sansyrox/robyn)
  427. - [Saleor](https://github.com/saleor/saleor)
  428. - Scale AI ([Launch SDK](https://github.com/scaleapi/launch-python-client))
  429. - [SciPy](https://github.com/scipy/scipy)
  430. - Snowflake ([SnowCLI](https://github.com/Snowflake-Labs/snowcli))
  431. - [Sphinx](https://github.com/sphinx-doc/sphinx)
  432. - [Stable Baselines3](https://github.com/DLR-RM/stable-baselines3)
  433. - [Starlette](https://github.com/encode/starlette)
  434. - [Streamlit](https://github.com/streamlit/streamlit)
  435. - [The Algorithms](https://github.com/TheAlgorithms/Python)
  436. - [Vega-Altair](https://github.com/altair-viz/altair)
  437. - [Weblate](https://weblate.org/)
  438. - WordPress ([Openverse](https://github.com/WordPress/openverse))
  439. - [ZenML](https://github.com/zenml-io/zenml)
  440. - [Zulip](https://github.com/zulip/zulip)
  441. - [build (PyPA)](https://github.com/pypa/build)
  442. - [cibuildwheel (PyPA)](https://github.com/pypa/cibuildwheel)
  443. - [delta-rs](https://github.com/delta-io/delta-rs)
  444. - [featuretools](https://github.com/alteryx/featuretools)
  445. - [meson-python](https://github.com/mesonbuild/meson-python)
  446. - [nox](https://github.com/wntrblm/nox)
  447. - [pip](https://github.com/pypa/pip)
  448. ### Show Your Support
  449. If you're using Ruff, consider adding the Ruff badge to your project's `README.md`:
  450. ```md
  451. [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
  452. ```
  453. ...or `README.rst`:
  454. ```rst
  455. .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
  456. :target: https://github.com/astral-sh/ruff
  457. :alt: Ruff
  458. ```
  459. ...or, as HTML:
  460. ```html
  461. <a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff" style="max-width:100%;"></a>
  462. ```
  463. ## License<a id="license"></a>
  464. This repository is licensed under the [MIT License](https://github.com/astral-sh/ruff/blob/main/LICENSE)
  465. <div align="center">
  466. <a target="_blank" href="https://astral.sh" style="background:none">
  467. <img src="https://raw.githubusercontent.com/astral-sh/ruff/main/assets/svg/Astral.svg" alt="Made by Astral">
  468. </a>
  469. </div>