From 0cecc22d8b18a6a235107d16f2851763f70666b0 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 6 Oct 2025 15:00:07 +0100 Subject: [PATCH] [ty] Rename `extra-paths` to `non-environment-paths`, and `--extra-search-path` to `--non-environment-search-path` --- crates/ty/docs/cli.md | 4 +- crates/ty/docs/configuration.md | 4 +- crates/ty/src/args.rs | 16 ++++---- crates/ty/tests/cli/main.rs | 6 +-- crates/ty/tests/file_watching.rs | 12 +++--- crates/ty_combine/src/lib.rs | 12 +++--- crates/ty_project/src/metadata/options.rs | 23 ++++++------ crates/ty_project/src/metadata/value.rs | 2 +- .../resources/mdtest/import/case_sensitive.md | 2 +- .../mdtest/import/partial_stub_packages.md | 14 +++---- .../resources/mdtest/import/stub_packages.md | 16 ++++---- .../src/module_resolver/path.rs | 37 ++++++++++--------- .../src/module_resolver/resolver.rs | 8 ++-- crates/ty_python_semantic/src/program.rs | 12 +++--- crates/ty_test/src/config.rs | 6 +-- crates/ty_test/src/lib.rs | 5 ++- ty.schema.json | 2 +- 17 files changed, 95 insertions(+), 86 deletions(-) diff --git a/crates/ty/docs/cli.md b/crates/ty/docs/cli.md index 83de0b3d6d..b770f75079 100644 --- a/crates/ty/docs/cli.md +++ b/crates/ty/docs/cli.md @@ -54,10 +54,10 @@ over all configuration files.

--exclude exclude

Glob patterns for files to exclude from type checking.

Uses gitignore-style syntax to exclude files and directories from type checking. Supports patterns like tests/, *.tmp, **/__pycache__/**.

--exit-zero

Always use exit code 0, even when there are error-level diagnostics

-
--extra-search-path path

Additional path to use as a module-resolution source (can be passed multiple times).

-

This is an advanced option that should usually only be used for first-party or third-party modules that are not installed into your Python environment in a conventional way. Use --python to point ty to your Python environment if it is in an unusual location.

--help, -h

Print help (see a summary with '-h')

--ignore rule

Disables the rule. Can be specified multiple times.

+
--non-environment-search-path path

Additional path to use as a module-resolution source (can be passed multiple times).

+

This is an advanced option that should usually only be used for first-party or third-party modules that are not installed into your Python environment in a conventional way. Use --python to point ty to your Python environment if it is in an unusual location.

--output-format output-format

The format to use for printing diagnostic messages

Possible values: