Commit Graph
248 Commits
Author SHA1 Message Date
Micha Reiser 043802b0d8 Build typed arena nodes in the Python parser
Carry the typed IDs returned by node constructors through parsing and
recovery. Parse source-ordered argument and parameter lists directly.
Keep ownership of the tree with the parsed module.
2026-11-20 16:16:30 +00:00
Micha Reiser dcc9519d42 Separate Ruff configuration loading from settings resolution (#30574)
## Summary

Today, Ruff represents root and nested configurations differently,
duplicates Python-version fallback logic, and applies overrides while
loading configurations.

This PR changes configuration resolution to share `ResolvedSettings`,
centralize fallbacks, and apply overrides when resolving settings. This
lets callers combine configurations before applying CLI or editor
overrides.

Testing: Resolver and CLI tests pass.
2026-11-19 14:57:31 +00:00
Micha Reiser 17ff3e8372 Clarify Ruff's root settings and resolver entries (#30573)
## Summary

Give the resolver's nested settings entries named fields, and rename
`PyprojectConfig` to `RootSettings` to reflect that it holds the
invocation's root settings and discovery strategy. Rename its
configuration-file path to `config_path` and document how the settings
apply to inputs. Configuration discovery and resolution behavior remain
unchanged.

Testing: Resolver tests pass and affected crates compile.
2026-11-19 13:26:34 +00:00
Brent Westbrook 5df1e161eb Include the category in individual rule documentation pages (#30503)
Summary
--

Seems like a bit of an oversight on my part, or maybe we opted to leave
this out until the feature
stabilized? But I've found myself repeatedly clicking into rule
implementations to retrieve this
information, and it doesn't seem too intrusive to include it in the
header.

Test Plan
--

The header now looks like this:

<img width="442" height="322" alt="image"
src="https://github.com/user-attachments/assets/0b77adfb-9335-4ca0-acdd-2555b4e326a8"
/>

and the category links to a filtered view of the rules table:

https://docs.astral.sh/ruff/rules/?category=suspicious
2026-11-18 09:54:03 -05:00
Brent Westbrook 244668339a Adopt new APIs from Rust 1.98 (#30419)
Summary
--

- The first commit uses [strip_circumfix] to remove paired delimiters in
one call.
- The second commit uses [map_or_default] to combine many `map` and
`unwrap_or_default` calls.
- The third commit uses [bool::ok_or] to turn boolean checks into
`Result<(), E>` values.
- The fourth commit uses [str::substr_range] to get the byte range of a
TODO directive directly from the comment.

The last commit is slightly more involved than the others, as Codex
found a panic in the old code if
a `HACK` TODO comment used the Kelvin sign as its `K` and added a test
showing that `substr_range`
helped to fix it. That seems absurdly niche, but the new code is simpler
anyway.

There's also a new [format_into] API for formatting integers into a
`NumBuffer` and bypassing some
`Display` overhead. We could use this in the `UP031` fix, but it makes
the code a bit more
complicated and seemed worth trying and benchmarking separately to see
if it's worth the trouble.

[strip_circumfix]:
https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_circumfix
[map_or_default]:
https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.map_or_default
[bool::ok_or]:
https://doc.rust-lang.org/stable/std/primitive.bool.html#method.ok_or
[str::substr_range]:
https://doc.rust-lang.org/stable/std/primitive.str.html#method.substr_range
[format_into]:
https://doc.rust-lang.org/stable/core/primitive.usize.html#method.format_into
2026-11-16 10:04:15 -05:00
Brent Westbrook 259397be2a Redirect renamed rules (#30081)
Summary
--

This PR extends our infrastructure for redirecting rule codes to
redirect rule names too, in
preparation for the many renames we have planned before stabilizing
human-readable names. As a proof
of concept, I also renamed
[`missing-return-type-undocumented-public-function` (`ANN201`)], which
seemed like a very clear rename target, having been accidentally renamed
in #3283.

The first commit contains the redirect changes, and the second commit
contains the `ANN201` rename,
along with the tests it allows us to exercise.

[`missing-return-type-undocumented-public-function` (`ANN201`)]:
https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function/

Test Plan
--

New CLI tests
2026-11-10 10:02:17 -05:00
Micha Reiser c6b7d7d346 [ty] Document removed rules in the rules reference (#30129) 2026-11-06 18:32:39 +01:00
Alex Waygood 0471c14d1f [ty] Rename unresolved-import to import-not-found (#29960)
## Summary

ty currently reports `unresolved-import` for both a missing module and a
missing member in a `from` import. But the word "unresolved" is heavily
overloaded in Python, and has been reported by users as being confusing
(see https://github.com/astral-sh/ty/issues/2471). This PR renames the
rule to `import-not-found`, which describes the lookup failure in either
case.

Configuration, command-line flags, and ignore comments accept either
spelling. If several flags set this rule’s severity using different
spellings, the last flag wins. Existing baseline entries still match,
and rewriting a baseline uses the new name. Links to the old rule
heading still work.
2026-11-03 19:53:26 +00:00
Alex Waygood acba99d527 Consolidate dependency pins in root Cargo.toml (#29595) 2026-10-21 17:18:57 +00:00
Micha Reiser 0e1bf0d2f6 Avoid retaining rule documentation for diagnostic URLs (#29517) 2026-10-20 09:51:56 -07:00
Brent Westbrook 67b3bd4122 Update rules table with category information (#28651)
Summary
--

This PR updates our rules page with a big table inspired by [oxlint] and
[clippy]. I'm afraid this
might be a bit of a pain to review, as Codex added a ton of JS and CSS
to achieve our desired
functionality. I iterated with it a few times trying to shrink the diff
but without much luck.

Supersedes https://github.com/astral-sh/ruff/pull/28099

[clippy]: https://rust-lang.github.io/rust-clippy/master/
[oxlint]: https://oxc.rs/docs/guide/usage/linter/rules.html

Test Plan
--

Mostly local testing:


https://github.com/user-attachments/assets/fbf70dd0-1e43-467f-8d35-2767203aab3f
2026-09-21 12:51:35 -04:00
Micha Reiser 29a8e2b1c6 Fix horizontal overflow on the rules documentation page (#28699) 2026-09-18 18:11:51 +00:00
Charlie Marsh d192bd4001 [ty] Fix analysis override configuration examples (#28683)
## Summary

The generated `overrides.analysis` examples omit the `[[overrides]]`
declaration, so copying them into a configuration file produces a TOML
parsing error. We now include the array declaration and `include =
["src"]` in both the `pyproject.toml` and `ty.toml` examples, matching
the existing rule override examples.

Closes https://github.com/astral-sh/ty/issues/3994.
2026-09-18 07:03:09 -04:00
William Woodruff 8defe19c5d Use cargo deny for dep enforcement (#28655)
Signed-off-by: William Woodruff <william@yossarian.net>
2026-09-17 13:55:45 -04:00
Zsolt Dollenstein f4839591d6 [ty] Add a missing-direct-dependency rule (#28001)
This PR replaces #25027. It adds an opt-in check for imports of
installed distributions that the current project does not declare
directly in `pyproject.toml`.

## Overview

The check uses ty's existing uv workspace integration (`TY_UV=1`) to
call `uv workspace metadata --frozen --active`. uv now provides module
ownership without synchronizing the environment, so ty can read the
metadata without installing packages or updating `uv.lock`.

The metadata provides:

1. Each workspace project's runtime and optional dependencies.
2. Dependencies declared in dependency groups.
3. Importable modules and their owning distributions, including source
paths for editable installs.

During import inference, ty maps each resolved import to its
distribution and compares it against the importing project's direct
declarations. If the declaration is missing, ty emits
`missing-direct-dependency`, naming the distribution to add. Each
distribution is reported once per file, at its first unsuppressed
import.

The rule is disabled by default and requires an existing, synchronized
environment. Unavailable or incompatible dependency metadata disables
the check; rejected dependency metadata produces a debug message.

## Nuances

- Editable installs may lack entries in uv's module-owner map. ty uses
their source paths to attribute resolved imports.
- Files identified as package code require runtime or optional
dependencies. Non-package files, such as tests and scripts, can also use
dependency groups, but those groups' transitive dependencies still need
direct declarations.
- For `from package import child`, a resolved child module is checked
against its own distribution rather than the parent's. Imports with
unknown or ambiguous ownership are skipped.
- Ownership metadata is used only when the explicitly selected Python
environment matches uv's environment.
- The current integration covers directory checks. Explicit file
arguments, `--config-file`, and standalone PEP 723 scripts do not use
the workspace's dependency declarations.

The schema and rule documentation are regenerated. Most of the
rule-documentation diff consists of updated source-line links.
2026-08-28 14:01:44 +00:00
Brent Westbrook aad0e909ef Allow rules without codes (#28049)
Summary
--

This PR allows adding rules that only belong to categories and only have
names rather than requiring
a linter group and code.

The first non-empty commit uses `Rule::name` instead of
`Rule::noqa_code` throughout the linter tests, causing a huge number of
file renames without changes.

The second commit updates `FixTable` from a mapping of `SecondaryCode ->
(name, fix_count)` to
`DiagnosticId -> (Option<SecondaryCode>, fix_count)`. This doesn't
really change its usage but
involves minor diffs to a substantial number of lines. It also allows us
to drop some of the special
`hashbrown` handling and the `hashbrown` dependency in `ruff_linter`,
which is nice.

The third commit contains the bulk of the change, including the macro
changes needed to support
`map_codes` entries like that for the `pytest-fixture-autouse` rule in
the fourth commit:

```rust
() => rules::ruff::rules::PytestFixtureAutouse,
```

These changes are pretty mechanical overall, just handling cases where
the linter or noqa code could
be missing, which fortunately seemed pretty straightforward in every
case.

The fourth commit takes advantage of these changes to reinstate `RUF076`
as our first purely
`pedantic` rule. I'm happy to drop that if it's too controversial or
opens too many questions about
the previously-removed rule and its code, but I thought it was nice to
have a motivating example. We
moved this rule from `preview` to `removed` because it was too pedantic
for the `RUF` category, even
in preview, so it's exactly the kind of rule we can support now with the
categories.

Finally, the fifth commit updates the contributing docs to reflect that
linters and codes are
optional. This may need to be adjusted if we back out the `RUF076`
change.

Test Plan
--

Existing tests, plus a few new ones for `pytest-fixture-autouse`
2026-08-27 11:26:35 -04:00
Micha Reiser 715287d6f3 Limit generated-file check diffs to 100 lines (#28002) 2026-08-24 19:14:43 +02:00
Charlie Marsh 88d56e5feb Use stabilized Rust pattern assertion macros (#27955)
## Summary

- Use Rust 1.96's stabilized `assert_matches!` and
`debug_assert_matches!` macros throughout Ruff and ty.
- Include mismatched values in assertion failures and remove redundant
manual debug formatting.
- Preserve existing assertions for values that do not implement `Debug`.
2026-08-21 09:29:39 -04:00
Brent Westbrook 0dca233a0d Rename RuleGroup to RuleStatus (#27892)
Summary
--

Addresses
https://github.com/astral-sh/ruff/pull/27666#discussion_r3801704517,
where we want to
start using "group" to refer to secondary categories. This type is
already referred to as `status`
in the user-facing JSON output, so this change aligns the internal type
name with that usage.

Test Plan
--

Existing tests
2026-08-20 09:08:41 -04:00
Brent Westbrook 432402503d Add default indicator to rules table (#27724)
Summary
--

I saw this suggestion on [Discord]:

> Would it make sense to put a mark in the full rule page for rules that
are selected by default? I
feel like that would be very useful in seeing for example what rules are
not selected from a group
like UP by default. The extra "default rules" page doesn't help with
that, for example.

> Like a blue dot, maybe in front of the rules in the table.

This PR implements this suggestion with a couple of modifications. I
included a check mark instead of a blue dot and as an additional
indicator at the end of each row, near the preview, fix, and other
indicators, rather than at the start.

Test Plan
--

Local build:

<img width="569" height="237" alt="image"
src="https://github.com/user-attachments/assets/1a6db243-ac2c-4b53-a378-541467a6018d"
/>

[Discord]:
https://discord.com/channels/1039017663004942429/1070132471699607623/1536942546972839957
2026-08-13 13:04:30 -04:00
Alex Waygood c0824de94a Enable rustfmt on more files (#27630) 2026-08-10 15:30:41 +01:00
Brent Westbrook b30f040232 Stabilize new default rules (#27035)
This PR stabilizes the expanded default rule set currently in preview
and adds a new generated `Default Rules` page to the docs to avoid
needing to include a lengthy selector block in multiple places.
2026-07-23 13:38:29 -04:00
Brent Westbrook bcd70c5f10 Exclude Markdown files from format-dev runs (#27052)
Summary
--

This should fix the CI failures I was seeing in #27035:


https://github.com/astral-sh/ruff/actions/runs/29854835643/job/88716871906?pr=27035

I guess this didn't appear in #27018 because no formatter files were
modified.

Test Plan
--

CI on this PR, success:
https://github.com/astral-sh/ruff/actions/runs/29861350490/job/88738651835?pr=27052
2026-07-23 13:38:29 -04:00
Brent Westbrook f3cf7c81fa [ruff] Add rule-codes-in-selectors (RUF201) (#26772)
Summary
--

This PR adds a new lint rule for TOML config files that checks for the
use of rule codes as
selectors and offers a fix to replace them with human-readable names. At
a high-level, the
implementation just deserializes a TOML config into a stripped down
version of our normal
configuration types and then checks each of its `Spanned` selector
entries. Unless I oversimplified
this too much, it didn't end up being as tricky as I thought. The main
tricky part was adding basic
support for fixes in TOML files, but even this was pretty
straightforward.

Codex was concerned about calling this a safe fix because applying the
fix with `--preview`, or
another temporary way of enabling preview, would break the config if
preview isn't always enabled.
That seemed to go beyond our usual fix safety policy to me, but I'm also
happy to mark the fix as
unsafe if that's preferable.

Test Plan
--

New tests covering all of the expected selectors and new CLI tests to
make sure that `ruff.toml`
files get linted and respect various ways of suppressing fixes.
Previously we only linted
`pyproject.toml` files for `RUF200` and bypassed some of the checks in
`LintContext`. I left the
change to use `LintContext` as a separate commit since it also affects
`RUF200` and I briefly
considered splitting it off into a separate PR.
2026-07-16 10:05:29 -04:00
Omar Yusuf AbdiandMicha Reiser 311158e260 [ruff] Detect syntax errors in individual notebook cells (#26419)
Co-authored-by: Micha Reiser <micha@reiser.io>
2026-07-07 11:28:10 +02:00
Samuel RigaudandSamuel Rigaud 3f0ea98047 fix typos (#26462)
Another round of typos being fixed 

<img width="300" height="200" alt="image"
src="https://github.com/user-attachments/assets/acdaea05-0d28-4537-94db-9a809d76e00c"
/>

Co-authored-by: Samuel Rigaud <rigaud@gmail.com>
2026-07-01 23:23:21 +01:00
Lérè d16559cbf3 [ty] Remove Preview rule status. (#26377)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
- Does this PR follow our AI policy
(https://github.com/astral-sh/.github/blob/main/AI_POLICY.md)?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
This removes the `Preview` rule status from ty documentation, and
"promotes" the three rules that were previously marked as preview to
stable. Unlike ruff, ty does not actually have a preview mode: all rules
are always available[^1]. As such the preview status was misleading.

[^1]: Although of course you can configure their
[level](https://docs.astral.sh/ty/rules/#rule-levels)).

## Test Plan

This change only affects our doc generation tooling (not the observable
behavior of the type checker); I have modified our tests for that
tooling accordingly.
<!-- How was it tested? -->
2026-06-25 11:50:55 -07:00
Auguste Lalande ae5e5b9ba9 [docs] Improve rules table accessibility (#24711) 2026-04-21 14:27:23 +01:00
Alex Waygood 581b3fa230 Update Rust toolchain to 1.95 and MSRV to 1.93 (#24677) 2026-04-17 11:39:14 +01:00
Charlie Marsh 55f667ba39 Convert Clippy allows to expects (#24473) 2026-04-07 14:10:43 -04:00
William Collishaw 7c236fae3d Upgrade imara-diff to 0.2.0 (#24299) 2026-03-30 12:33:50 +02:00
Brent Westbrook 7ec0bca850 [ty] Linkify lint names (#23771)
Summary
--

I noticed a broken link to another rule in the
`unsupported-dynamic-base` docs,
and I was initially going to copy over this hack from Ruff's
documentation
generator:


https://github.com/astral-sh/ruff/blob/2185bec02b3c7e9e16cc2572e49ecc065c15c875/crates/ruff_dev/src/generate_docs.rs#L165-L169

but then I opted to adapt something more like our shorthand for options
links,
which is to expand references like `lint.option` into the appropriate
link. This
PR now expands any rule name in backticks into the corresponding link.

This fixes the broken link I ran into initially and also adds a couple
of
additional cross-links to other rules.

Test Plan
--

I built the docs locally and confirmed that the broken link was fixed:


[Before](https://docs.astral.sh/ty/reference/rules/#unsupported-dynamic-base):

<img width="558" height="220" alt="image"
src="https://github.com/user-attachments/assets/a215f4a4-d374-4cc1-b7c7-b0a6a1e1b321"
/>

After:

<img width="420" height="219" alt="image"
src="https://github.com/user-attachments/assets/aa3460bd-9130-422b-9257-df5a45a1bd64"
/>
2026-03-09 08:40:59 -04:00
Amethyst Reese 9a70f5eb2f Discover markdown files by default in preview mode (#23434)
Adds `*.md` to the list of default globs in preview mode.

Adds a simple filter to the `check` CLI command to exclude file types
that aren't
supported for linting before checking if the set of resolved paths is
empty, preserving
existing behavior of warning "No Python files found under the given
path(s)" even if
there are markdown files present and preview mode is enabled.

Fixes #3792
2026-03-05 09:55:23 -08:00
GiGaGon 50f8602fd5 [ty] Add quotes to related issues links (#23720) 2026-03-05 08:49:24 +01:00
Brent Westbrook 8591a38d53 Fix missing settings links for several linters (#23519)
Summary
--

Fixes #23518 by normalizing the linter names before looking them up in
`Options::metadata()`. Most linters were already lowercase, matching
their
corresponding options, but several were not:

```console
❯ ruff linter | awk '$2 ~ /^[A-Z]/'
 AIR Airflow
FAST FastAPI
 NPY NumPy-specific rules
PERF Perflint
   F Pyflakes
  PL Pylint
 RUF Ruff-specific rules
 ```

Of these, only Pyflakes, Pylint, and Ruff have settings.

Test Plan
--

Built the docs locally:

<img width="284" height="130" alt="image" src="https://github.com/user-attachments/assets/08e0fee8-972a-4787-bc2d-2aea450e1a71" />

<img width="248" height="141" alt="image" src="https://github.com/user-attachments/assets/1f800740-8cd5-43e7-9306-85d832c4d627" />

<img width="304" height="89" alt="image" src="https://github.com/user-attachments/assets/21f0bf37-81c5-4230-b17a-6f5e4d545357" />
2026-02-23 11:49:35 -05:00
Amethyst Reese ffa07b57f8 Apply formatting to markdown code blocks (#22470)
Adds initial support for formatting Python code blocks inside Markdown
files.

- Adds `Markdown` source types/kinds
- Maps `.md` file extension to `Markdown` by default
- Uses simple regex adapted from blacken-docs to find and format fenced
python code blocks
- Dedents contents before formatting, and reapplies indent from fenced
<code>```py</code> header
- Selects `Python` vs `Stub` options based on language label on code
block
- Silently skips formatting for any code block with syntax errors or
that produce formatting errors.
- CLI tests formatting via both stdin and from filesystem
- Requires running with `--preview`, and otherwise emits formatting
error when given a markdown file
- Requires a user to `extend-include = ["**/*.md"]` if they want to
format markdown files by default

Limitations:

- Returns a formatting error if run with a range of any sort
- Ignores implicit code blocks (no code fence)
- Doesn't yet support `~~~` fences, arbitrary fence lengths, or code
blocks inside blockquotes

Issue #3792
2026-01-27 17:26:09 -08:00
Matthew Mckee a2e0ff57c3 Run cargo sort (#22310) 2026-01-02 19:58:15 +00:00
Matthew MckeeandMicha Reiser 5ea30c4c53 Show both ty.toml and pyproject.toml examples in configuration reference (#22144)
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-12-23 09:49:44 +01:00
Alex Waygood dde0d0af68 [ty] List rules in alphabetical order in the reference docs (#22097)
## Summary

Fixes https://github.com/astral-sh/ty/issues/1885.

It wasn't obvious to me that there was a deliberate order to the way
these rules were listed in our reference docs -- it looked like it was
_nearly_ alphabetical, but not quite. I think it's simpler if we just
list them in alphabetical order.

## Test Plan

The output from running `cargo dev generate-all` (committed as part of
this PR) looks correct!
2025-12-19 19:11:05 +00:00
Micha Reiser 30ce679b9a [ty] Fix rules severity URL (#22069) 2025-12-19 07:25:02 +00:00
Zanie Blue 8e13765b57 [ty] Use title for configuration code fences in ty reference documentation (#21992)
Part of https://github.com/astral-sh/ty/pull/1904
2025-12-15 16:36:08 -05:00
Leandro Braga 8bc753b842 [ty] Fix callout syntax in configuration mkdocs (#1875) (#21961) 2025-12-14 10:21:54 +01:00
Micha Reiser 921f409ee8 Update Rust toolchain to 1.91 (#21179) 2025-11-01 01:50:58 +00:00
Brent WestbrookandGiGaGon 155fd603e8 Document when a rule was added (#21035)
Summary
--

Inspired by #20859, this PR adds the version a rule was added, and the
file and line where it was defined, to `ViolationMetadata`. The file and
line just use the standard `file!` and `line!` macros, while the more
interesting version field uses a new `violation_metadata` attribute
parsed by our `ViolationMetadata` derive macro.

I moved the commit modifying all of the rule files to the end, so it
should be a lot easier to review by omitting that one.

As a curiosity and a bit of a sanity check, I also plotted the rule
numbers over time:

<img width="640" height="480" alt="image"
src="https://github.com/user-attachments/assets/75b0b5cc-3521-4d40-a395-8807e6f4925f"
/>

I think this looks pretty reasonable and avoids some of the artifacts
the earlier versions of the script ran into, such as the `rule`
sub-command not being available or `--explain` requiring a file
argument.

<details><summary>Script and summary data</summary>

```shell
gawk --csv '
NR > 1 {
    split($2, a, ".")
    major = a[1]; minor = a[2]; micro = a[3]
    # sum the number of rules added per minor version
    versions[minor] += 1
}
END {
    tot = 0
    for (i = 0; i <= 14; i++) {
        tot += versions[i]
        print i, tot
    }
}
' ruff_rules_metadata.csv > summary.dat
```

```
0 696
1 768
2 778
3 803
4 822
5 848
6 855
7 865
8 893
9 915
10 916
11 924
12 929
13 932
14 933
```

</details>

Test Plan
--

I built and viewed the documentation locally, and it looks pretty good!

<img width="1466" height="676" alt="image"
src="https://github.com/user-attachments/assets/5e227df4-7294-4d12-bdaa-31cac4e9ad5c"
/>

The spacing seems a bit awkward following the `h1` at the top, so I'm
wondering if this might look nicer as a footer in Ruff. The links work
well too:
- [v0.0.271](https://github.com/astral-sh/ruff/releases/tag/v0.0.271)
- [Related
issues](https://github.com/astral-sh/ruff/issues?q=sort%3Aupdated-desc%20is%3Aissue%20is%3Aopen%20airflow-variable-name-task-id-mismatch)
- [View
source](https://github.com/astral-sh/ruff/blob/main/crates%2Fruff_linter%2Fsrc%2Frules%2Fairflow%2Frules%2Ftask_variable_name.rs#L34)

The last one even works on `main` now since it points to the
`derive(ViolationMetadata)` line.

In terms of binary size, this branch is a bit bigger than main with
38,654,520 bytes compared to 38,635,728 (+20 KB). I guess that's not
_too_ much of an increase, but I wanted to check since we're generating
a lot more code with macros.

---------

Co-authored-by: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com>
2025-10-23 14:48:41 -04:00
Takayuki Maeda 48b50128eb [ruff] Update schemars to v1 (#20942) 2025-10-20 08:59:52 +02:00
Micha Reiser 441ba20876 [ty] Document when a rule was added (#20859) 2025-10-14 14:33:48 +02:00
Ibraheem Ahmed b3cc733f06 [ty] Remove duplicate global lint registry (#20053)
## Summary

Looks like an oversight at some point that led to two identical globals,
the one in `ty_project` just calls `ty_python_semantic::register_lints`.
2025-08-22 19:43:12 -04:00
Micha Reiser 7dfde3b929 Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
Charlie Marsh 3ee3434187 Auto-generate environment variable references for ty (#19205)
## Summary

This PR mirrors the environment variable implementation we have in uv:
https://github.com/astral-sh/uv/blob/efc361223c134840b7650fed1ef9ebd9577b5454/crates/uv-static/src/env_vars.rs#L6-L7.

See: https://github.com/astral-sh/ty/issues/773.
2025-07-08 10:48:31 -04:00
Zanie Blue efd9b75352 Avoid reformatting comments in rules reference documentation (#19093)
closes https://github.com/astral-sh/ty/issues/754
2025-07-02 17:16:44 +02:00