ruff
Add `per-file-target-version` option
#16257
Merged

Add `per-file-target-version` option #16257

ntBre merged 33 commits into main from brent/per-file-target-version
ntBre
github-actions
MichaReiser
MichaReiser MichaReiser added configuration
ntBre
ntBre ntBre marked this pull request as draft 328 days ago
ntBre
MichaReiser
ntBre
ntBre ntBre marked this pull request as ready for review 328 days ago
ntBre ntBre requested a review from AlexWaygood AlexWaygood 328 days ago
MichaReiser
MichaReiser requested changes on 2025-02-20
AlexWaygood
AlexWaygood commented on 2025-02-20
ntBre add option
8f4daccf
ntBre use compiled patterns for resolving
377b6bd7
ntBre use Checker::target_version, LinterSettings::resolve_target_version
b418e31c
ntBre allow resolving `per_file_target_version`s in the formatter
89ac994b
ntBre resolve target_version once for Checker
9f7e057c
ntBre test that the linter respects the per-file version
90f6493c
ntBre handle base and absolute paths like PerFileIgnore
aceca518
ntBre convert to Vec<PerFileVersion> earlier like PerFileIgnore
f369358e
ntBre test that the formatter respects the per-file version
ee992b32
ntBre delete unused Deref impl
d9f1c17b
ntBre impl Display for CompiledPerFileVersion and use in lint and format
3bcf6c39
ntBre add error case for linter test
f30a3aa3
ntBre add other case for formatter test
4c64314c
ntBre pass the whole version to is_allowed_module
09d2989a
ntBre pass target_version down to A005
c1bd3a02
ntBre extract PerFile<T> and share negation with PerFileVersion
89bee8d8
ntBre add some docs
b364a4ad
ntBre factor out CompiledPerFile<T>
6cf6ccbc
ntBre add generic List type and factor out uses
1c85afa9
ntBre remove unused CompiledPerFile<T> newtypes
77653e65
ntBre add PerFileKind to fix labels
920df2dc
ntBre rename to PerFileTargetVersion
5d02c609
ntBre add context on glob failure
276f3ab5
ntBre also add context to resolve call itself
699f2737
ntBre expand docs on `per-file-target-version`
5f7e8b01
ntBre rename target_version fields and document them along with per-file
1f4dced5
ntBre pass Option<&Path> to to_format_options
d9d6022d
ntBre tidy up
778c5595
ntBre ntBre force pushed from f8ab4205 to 778c5595 326 days ago
ntBre fix ci
d4f2bba3
ntBre
ntBre
ntBre commented on 2025-02-20
ntBre
MichaReiser
MichaReiser approved these changes on 2025-02-21
MichaReiser
ntBre mention Checker
80699a18
ntBre switch to debug_label
23f370ec
ntBre impl CacheKey manually to avoid constraints on structs
375fd5cc
dhruvmanila
ntBre test script formatting in the server
34345de9
ntBre
dhruvmanila
dhruvmanila approved these changes on 2025-02-24
ntBre ntBre merged e7a6c19e into main 323 days ago
ntBre ntBre deleted the brent/per-file-target-version branch 323 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone