Skip to main content

Arity

CI Crates.io Open VSX VS Code PyPi npm CRAN DOI

Arity is a language server, formatter, and linter for the R programming language, built on a lossless, incremental parser. It provides a fast, deterministic development experience that integrates with popular code editors and IDEs.

  • Formatter: deterministic, rule-based formatting based on the tidyverse style guide, with idempotent output and support for roxygen and DESCRIPTION (.dcf) files.
  • Linter: project-aware linting, with correctness, readability, and performance rules, many with safe autofixes.
  • Language server: formatting, diagnostics with quick fixes, hover, completion, signature help, go-to-definition and references, rename, document and workspace symbols, semantic tokens, folding, and call hierarchy.

Installation

Arity is available from several sources:

  • CRAN: install.packages("arity") in R (formatter bindings; see R package usage)
  • crates.io: cargo install arity
  • Homebrew: brew install jolars/tap/arity
  • npm: npm install -g arity-cli (bundles a prebuilt binary)
  • PyPI: uv tool install arity/pipx install arity
  • mise/Aqua: see the installation guide
  • Prebuilt binaries: from the releases page
  • VS Code/Open VSX: the Arity extension (also works in Positron)
  • Arch Linux: paru -S arity-bin (or another AUR helper; packages: arity-bin, arity)
  • NixOS: the arity package is available in nixpkgs

Install script

The installer scripts pick the right release artifact for your platform and install to a user-local directory by default. They download the matching Arity CLI release asset and verify its checksum. If you prefer, download and inspect the script before running it.

For macOS and Linux:

curl --proto '=https' --tlsv1.2 -sSf https://arity.cc/install | sh

For Windows PowerShell:

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://arity.cc/install.ps1 | iex"

Set ARITY_INSTALL_DIR to change the destination, ARITY_TAG to pin a version, ARITY_LIBC (gnu or musl) to override the detected libc on Linux, and ARITY_VERIFY_CHECKSUM=false to skip checksum verification.

Usage

# Format in place
arity format file.R

# Verify formatting without writing
arity format --check src/

# Lint a project directory
arity lint src/

# Fix lint findings in place
arity lint --fix file.R

arity lint reads from stdin when given - (or when piped with no paths), and exits non-zero when it reports any findings.

Configuration

Configure Arity with arity.toml, which is discovered by walking up from each file's directory to the repository root. Run arity init to scaffold a commented starter file. See the configuration reference for every key.

Editor integration

arity lsp starts a stdio-based language server offering formatting, diagnostics with quick fixes, hover, completion, signature help, go-to-definition and references, rename, document and workspace symbols, semantic tokens, folding, and call hierarchy.

The Arity extension for VS Code/Open VSX (and Positron) bundles the binary and starts the server automatically. For Neovim, Helix, and other editors, see the editor setup guide.

In RStudio, the development R package provides a Format with arity addin for selections and unsaved documents. The CRAN package supports formatting saved files from the console. See RStudio setup for installation and configuration.

pre-commit hook

arity-pre-commit provides pre-commit hooks for linting and formatting. It installs a prebuilt binary wheel from PyPI, so no Rust toolchain or R installation is required:

repos:
  - repo: https://github.com/jolars/arity-pre-commit
    rev: v0.25.0
    hooks:
      - id: arity-lint
      - id: arity-format

See the integration guide for file coverage, optional fixes, and updates.

GitHub Actions

arity-action installs Arity and runs format and lint checks in CI:

jobs:
  arity:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: jolars/arity-action@v1

Crates

The parsing and formatting engines are published as standalone crates for use in other tools: arity-parser (lossless CST parser, typed AST wrappers, incremental reparser) and arity-formatter (the formatter, with optional serde/schemars support for embedders). Both are versioned independently of the CLI.

Acknowledgements

The core architecture of Arity is entirely based on rust-analyzer, using salsa for incremental computation and rowan for lossless syntax trees. Arity also owes a great debt to air, on which it is heavily inspired and from which it has borrowed tests, rules, and formatting style. It is also inspired by jarl and has borrowed rules from it as well as some of its architecture.

Documentation

Full documentation lives at arity.cc:

Citation

If you use Arity in your research, please cite the release you used. Select that release in the Zenodo archive and export its citation. To cite Arity generally, use the concept DOI 10.5281/zenodo.20662733.

Machine-readable metadata is available in CITATION.cff.

Metadata

Release files for arity 0.30.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arity 0.30.0
File Size Uploaded Provenance Actions
arity-0.30.0.tar.gz 1.4 MB With provenance Details for arity-0.30.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for arity 0.30.0
File Actions
arity-0.30.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for arity-0.30.0-py3-none-win_arm64.whl
arity-0.30.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for arity-0.30.0-py3-none-win_amd64.whl
arity-0.30.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for arity-0.30.0-py3-none-musllinux_1_2_x86_64.whl
arity-0.30.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for arity-0.30.0-py3-none-musllinux_1_2_aarch64.whl
arity-0.30.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for arity-0.30.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
arity-0.30.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for arity-0.30.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
arity-0.30.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for arity-0.30.0-py3-none-macosx_11_0_arm64.whl
arity-0.30.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for arity-0.30.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 44.1 MB

Release files / arity-0.30.0.tar.gz

Download URL arity-0.30.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7dd6d6645830ec5ce9eaf5078e80a9122f1ac53b3be3d47e0e3f6b2e3c8fe819
BLAKE2b-256 checksum
How to use checksums
2f2a63678e5b99a313a4ad05a03216403d13ab594a1b5ee01ffc51ea71a91b3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-win_arm64.whl

Download URL arity-0.30.0-py3-none-win_arm64.whl
Size 5.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
0eb747549e3057b1fcc55b4897e27efc647f1a1e4e86cf6c27b35d1feb517a64
BLAKE2b-256 checksum
How to use checksums
1f8cd38866bd2ecf80e9f2b4f7c37779e7ca06ace2aed7267b4e6b0f002c885e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-win_amd64.whl

Download URL arity-0.30.0-py3-none-win_amd64.whl
Size 5.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b4ae7c06d8fe4ad03f6eb304921de17cb288b4c909c18f77462c9d384814469e
BLAKE2b-256 checksum
How to use checksums
c90c72b8588172e88c77cb3bf5ccfd8c68484762d5e98b11ff5dbcf9ee7939b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-musllinux_1_2_x86_64.whl

Download URL arity-0.30.0-py3-none-musllinux_1_2_x86_64.whl
Size 5.6 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d5b2e378dfe0a730682970b18ea33af2944cd1b4f40edbdbff0a8800e5cadc8e
BLAKE2b-256 checksum
How to use checksums
9194af428e9d5a7f7f442b7ab43d3e310b851547b9b6a817b1ac2ddd79aaf311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-musllinux_1_2_aarch64.whl

Download URL arity-0.30.0-py3-none-musllinux_1_2_aarch64.whl
Size 5.2 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
adaf131ce7cc2e11ebf2a80459a81629561a35ecae8513351cef448100383445
BLAKE2b-256 checksum
How to use checksums
f528c6d81488f3cb22f1320711c5506dc38fa40f4926f3af10eacbe741393247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL arity-0.30.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
011208da83b66226f13a221d9b970ab2a2be5d089c354a0fa1e56588f49eee2d
BLAKE2b-256 checksum
How to use checksums
e9ba37b9dae44e67a76df941ea7c9da0c897611cd2eb9689828b7d12c3b74f05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL arity-0.30.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
183b70c42b3c5df0706b87dd84c50f268b4570a209b0a9a09345a4eec0ef4434
BLAKE2b-256 checksum
How to use checksums
1b49f86df13df893fc89845ec8a1df13f38b4a48e9da638b29f6cebd98225c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-macosx_11_0_arm64.whl

Download URL arity-0.30.0-py3-none-macosx_11_0_arm64.whl
Size 5.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f5817d6321f0fe0f393a092cad702e70ae238328960de63be1f5e7501f63419b
BLAKE2b-256 checksum
How to use checksums
2efa4e20288f8a0c2a605202ea8a596ec781614003622061a33f9addac331dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / arity-0.30.0-py3-none-macosx_10_12_x86_64.whl

Download URL arity-0.30.0-py3-none-macosx_10_12_x86_64.whl
Size 5.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3a731e9fb3d6b9611386bb38e3b1729373fab6acdc8f52b772e1fb345cf63b15
BLAKE2b-256 checksum
How to use checksums
5fc9ba529f0031969205cbfa4c43c1aa443d5b5743156937354417d34b27cf87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for arity 0.30.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for arity-0.30.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.30.0 This release

9 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page