Skip to main content

A Pants plugin adding support for the Pyrefly type checker.

Project description

pants-pyrefly-plugin

This plugin provides a Pants check backend using 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:

[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, 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...).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotpajamas_pants_pyrefly-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file robotpajamas_pants_pyrefly-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for robotpajamas_pants_pyrefly-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecbb3a9796060b0e2a5cbbb467e9ffee3d4c42482a36bc7464bf427f68c60242
MD5 a9243a4b71a166c2402271e4473376fd
BLAKE2b-256 65fb9c569eeeb2e249761f706e709506fabbabdc6931858e425d07454114f270

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page