Skip to content

Commit 93413d3

Browse files
authored
[ty] Update docs links (astral-sh#19092)
Point everything to the new documentation at https://docs.astral.sh/ty/
1 parent efd9b75 commit 93413d3

10 files changed

+18
-18
lines changed

crates/ty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "ty"
33
version = "0.0.0"
44
# required for correct pypi metadata
55
homepage = "https://github.com/astral-sh/ty/"
6-
documentation = "https://github.com/astral-sh/ty/"
6+
documentation = "https://docs.astral.sh/ty/"
77
# Releases occur in this other repository!
88
repository = "https://github.com/astral-sh/ty/"
99
edition.workspace = true

crates/ty/tests/cli/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fn cli_arguments_are_relative_to_the_current_directory() -> anyhow::Result<()> {
186186
3 |
187187
4 | stat = add(10, 15)
188188
|
189-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
189+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
190190
info: rule `unresolved-import` is enabled by default
191191
192192
Found 1 diagnostic
@@ -412,7 +412,7 @@ fn check_specific_paths() -> anyhow::Result<()> {
412412
3 |
413413
4 | print(z)
414414
|
415-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
415+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
416416
info: rule `unresolved-import` is enabled by default
417417
418418
error[unresolved-import]: Cannot resolve imported module `does_not_exist`
@@ -421,7 +421,7 @@ fn check_specific_paths() -> anyhow::Result<()> {
421421
2 | import does_not_exist # error: unresolved-import
422422
| ^^^^^^^^^^^^^^
423423
|
424-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
424+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
425425
info: rule `unresolved-import` is enabled by default
426426
427427
Found 2 diagnostics
@@ -447,7 +447,7 @@ fn check_specific_paths() -> anyhow::Result<()> {
447447
3 |
448448
4 | print(z)
449449
|
450-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
450+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
451451
info: rule `unresolved-import` is enabled by default
452452
453453
error[unresolved-import]: Cannot resolve imported module `does_not_exist`
@@ -456,7 +456,7 @@ fn check_specific_paths() -> anyhow::Result<()> {
456456
2 | import does_not_exist # error: unresolved-import
457457
| ^^^^^^^^^^^^^^
458458
|
459-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
459+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
460460
info: rule `unresolved-import` is enabled by default
461461
462462
Found 2 diagnostics

crates/ty/tests/cli/python_environment.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ import bar",
333333
| ^^^
334334
2 | import bar
335335
|
336-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
336+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
337337
info: rule `unresolved-import` is enabled by default
338338
339339
Found 1 diagnostic
@@ -909,7 +909,7 @@ fn check_conda_prefix_var_to_resolve_path() -> anyhow::Result<()> {
909909
2 | import package1
910910
| ^^^^^^^^
911911
|
912-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
912+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
913913
info: rule `unresolved-import` is enabled by default
914914
915915
Found 1 diagnostic
@@ -1206,7 +1206,7 @@ fn default_root_tests_package() -> anyhow::Result<()> {
12061206
4 |
12071207
5 | print(f"{foo} {bar}")
12081208
|
1209-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
1209+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
12101210
info: rule `unresolved-import` is enabled by default
12111211
12121212
Found 1 diagnostic

crates/ty/tests/cli/rule_selection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn cli_rule_severity() -> anyhow::Result<()> {
101101
3 |
102102
4 | y = 4 / 0
103103
|
104-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
104+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
105105
info: rule `unresolved-import` is enabled by default
106106
107107
error[unresolved-reference]: Name `prin` used when not defined
@@ -141,7 +141,7 @@ fn cli_rule_severity() -> anyhow::Result<()> {
141141
3 |
142142
4 | y = 4 / 0
143143
|
144-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
144+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
145145
info: rule `unresolved-import` was selected on the command line
146146
147147
warning[division-by-zero]: Cannot divide object of type `Literal[4]` by zero

crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Multiple_objects_imp…_(cbfbf5ff94e6e104).snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ error[unresolved-import]: Cannot resolve imported module `does_not_exist`
2626
2 | from does_not_exist import foo, bar, baz
2727
| ^^^^^^^^^^^^^^
2828
|
29-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
29+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
3030
info: rule `unresolved-import` is enabled by default
3131
3232
```

crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_module_…_(846453deaca1071c).snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error[unresolved-import]: Cannot resolve imported module `zqzqzqzqzqzqzq`
2424
1 | import zqzqzqzqzqzqzq # error: [unresolved-import] "Cannot resolve imported module `zqzqzqzqzqzqzq`"
2525
| ^^^^^^^^^^^^^^
2626
|
27-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
27+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
2828
info: rule `unresolved-import` is enabled by default
2929
3030
```

crates/ty_python_semantic/resources/mdtest/snapshots/basic.md_-_Structures_-_Unresolvable_submodu…_(4fad4be9778578b7).snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ error[unresolved-import]: Cannot resolve imported module `a.foo`
3636
3 |
3737
4 | # Topmost component unresolvable:
3838
|
39-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
39+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
4040
info: rule `unresolved-import` is enabled by default
4141
4242
```
@@ -49,7 +49,7 @@ error[unresolved-import]: Cannot resolve imported module `b.foo`
4949
5 | import b.foo # error: [unresolved-import] "Cannot resolve imported module `b.foo`"
5050
| ^^^^^
5151
|
52-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
52+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
5353
info: rule `unresolved-import` is enabled by default
5454
5555
```

crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_An_unresolvable_impo…_(72d090df51ea97b8).snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ error[unresolved-import]: Cannot resolve imported module `does_not_exist`
2828
2 |
2929
3 | x = does_not_exist.foo
3030
|
31-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
31+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
3232
info: rule `unresolved-import` is enabled by default
3333
3434
```

crates/ty_python_semantic/resources/mdtest/snapshots/unresolved_import.md_-_Unresolved_import_di…_-_Using_`from`_with_an…_(9fa713dfa17cc404).snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ error[unresolved-import]: Cannot resolve imported module `does_not_exist`
2828
2 |
2929
3 | stat = add(10, 15)
3030
|
31-
info: make sure your Python environment is properly configured: https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment
31+
info: make sure your Python environment is properly configured: https://docs.astral.sh/ty/modules/#python-environment
3232
info: rule `unresolved-import` is enabled by default
3333
3434
```

crates/ty_python_semantic/src/types/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4172,7 +4172,7 @@ impl<'db, 'ast> TypeInferenceBuilder<'db, 'ast> {
41724172

41734173
diagnostic.info(
41744174
"make sure your Python environment is properly configured: \
4175-
https://github.com/astral-sh/ty/blob/main/docs/README.md#python-environment",
4175+
https://docs.astral.sh/ty/modules/#python-environment",
41764176
);
41774177
}
41784178
}

0 commit comments

Comments
 (0)