semvec/pypi-packages huggingface dataset:
robotpajamas.pants.pyrefly 0.0.1
A Pants plugin adding support for the Pyrefly type checker.
License: Apache License, Version 2.0
Requires Python: >=3.11.0
Keywords: pants, pants-plugin, pyrefly

# pants-pyrefly-plugin

This plugin provides a Pants `check` backend using [Pyrefly](https://github.com/facebook/pyrefly) - the new Python type checker from Facebook.

## Installation

This plugin was tested on Python 3.11 and Pants 2.31.0.dev3.

Add the following to your `pants.toml` file:

```toml
[GLOBAL]
plugins = [
    ...
    "robotpajamas.pants.pyrefly",
]

...

backend_packages = [
    ...
    "experimental.pyrefly",
]
```

## Usage

This plugin is  even more beta than Pyrefly itself. It's largely just a copy/paste/rename of the [Ty plugin](https://pypi.org/project/robotpajamas.pants.ty/), so your mileage may vary.

`pants check --only=pyrefly src/foo/bar.py`

The hard part of adding a new linter or formatter isn't usually the code itself, it's how to untangle the mess of configurations for the tool and weave them into various Pants-isms (e.g. configurations, interpreter constraints, partitions, environment variables, reasonable defaults, escape hatches, etc...).