@@ -39,8 +39,9 @@ autocompletion will be provided for `ruff`, `uv`, `uvx` and `rye` commands.
3939
4040In console views, file paths within Ruff and ty diagnostics are hyperlinked,
4141which can be clicked on to navigate to the specified location.
42- Relative paths are resolved against the project's path.
43- If the specified path is not resolvable no links will be shown.
42+ Relative paths are resolved against the project's path
43+ and, [ optionally] [ 5 ] , [ source roots] [ 6 ] .
44+ If the specified path is not resolvable, no links will be shown.
4445
4546Recognized formats are ` --> path:line:column ` and ` ::: path:line:column ` .
4647
@@ -52,22 +53,22 @@ Recognized formats are `--> path:line:column` and `::: path:line:column`.
5253
5354### Inline script metadata block
5455
55- [ PEP 723] [ 5 ] inline script metadata blocks
56+ [ PEP 723] [ 7 ] inline script metadata blocks
5657are automatically injected with TOML.
5758Only Python files whose extensions are
5859either ` .py ` or unknown are supported.
5960
60- This can be disabled using [ the corresponding setting] [ 6 ] .
61+ This can be disabled using [ the corresponding setting] [ 8 ] .
6162To force rerendering, make an arbitrary edit or reopen the file.
6263
6364![ ] ( ./assets/features-inline-script-metadata-language-injection-demo.png )
6465
6566
6667### Requirements arrays in TOML files
6768
68- uv settings that takes an array of [ PEP 508] [ 7 ] dependencies
69+ uv settings that takes an array of [ PEP 508] [ 9 ] dependencies
6970are injected with <i >Requirements</i >,
70- similar to [ that of ` project.dependencies ` ] [ 8 ] .
71+ similar to [ that of ` project.dependencies ` ] [ 10 ] .
7172Such settings include:
7273
7374* \[ ` tool.uv ` ] ` constraint-dependencies `
@@ -77,7 +78,7 @@ Such settings include:
7778* \[ ` tool.uv ` ] ` pip.upgrade-package `
7879
7980` project.optional-dependencies ` and ` dependency-groups ` are also supported.
80- This monkeypatches [ PY-71120] [ 9 ] .
81+ This monkeypatches [ PY-71120] [ 11 ] .
8182
8283=== "pyproject.toml"
8384 ![ ] ( ./assets/features-requirements-arrays-language-injection-demo-pyproject-toml.png )
@@ -142,13 +143,13 @@ Unless the delay proves to be a problem, you can safely ignore this warning.
142143
143144## Dependency groups
144145
145- [ PEP 735] [ 10 ] dependency groups are supported
146+ [ PEP 735] [ 12 ] dependency groups are supported
146147using a number of features.
147148
148149
149150### Language injection
150151
151- See [ § ; <i >Requirements arrays in TOML files</i >] [ 11 ] .
152+ See [ § ; <i >Requirements arrays in TOML files</i >] [ 13 ] .
152153
153154![ ] ( ./assets/features-dependency-groups-language-injection.png )
154155
@@ -180,7 +181,7 @@ Errors will be reported for a dependency group if:
180181
181182* It includes an invalid group.
182183* It includes itself.
183- * It has the same [ normalized name] [ 12 ] as another group.
184+ * It has the same [ normalized name] [ 14 ] as another group.
184185
185186
186187## Command logs
@@ -208,11 +209,13 @@ This might be helpful for debugging purposes.
208209 [ 2 ] : https://www.jetbrains.com/help/pycharm/settings-editor-tabs.html#Settings_Editor_Tabs.topic
209210 [ 3 ] : https://www.jetbrains.com/help/pycharm/part-4-using-the-navigation-bar.html
210211 [ 4 ] : https://blog.jetbrains.com/idea/2024/02/the-new-terminal-beta-is-now-in-jetbrains-ides/
211- [ 5 ] : https://peps.python.org/pep-0723/
212- [ 6 ] : ./configurations/main.md#pep-723-inline-script-metadata-blocks
213- [ 7 ] : https://peps.python.org/pep-0508/
214- [ 8 ] : https://www.jetbrains.com/help/pycharm/pyproject-toml-support.html#specify-project-dependencies
215- [ 9 ] : https://youtrack.jetbrains.com/issue/PY-71120
216- [ 10 ] : https://peps.python.org/pep-0735/
217- [ 11 ] : #requirements-arrays-in-toml-files
218- [ 12 ] : https://packaging.python.org/en/latest/specifications/name-normalization/
212+ [ 5 ] : ./configurations/main.md#resolve-relative-paths-against-source-roots
213+ [ 6 ] : https://www.jetbrains.com/help/pycharm/content-root.html
214+ [ 7 ] : https://peps.python.org/pep-0723/
215+ [ 8 ] : ./configurations/main.md#pep-723-inline-script-metadata-blocks
216+ [ 9 ] : https://peps.python.org/pep-0508/
217+ [ 10 ] : https://www.jetbrains.com/help/pycharm/pyproject-toml-support.html#specify-project-dependencies
218+ [ 11 ] : https://youtrack.jetbrains.com/issue/PY-71120
219+ [ 12 ] : https://peps.python.org/pep-0735/
220+ [ 13 ] : #requirements-arrays-in-toml-files
221+ [ 14 ] : https://packaging.python.org/en/latest/specifications/name-normalization/
0 commit comments