Skip to content

Commit e43e602

Browse files
committedJun 24, 2021
Fix URLs for 5.0.0 upgrade guide
1 parent 15234f8 commit e43e602

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
 

‎docs/warning_and_error_codes/W0500.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The W0500 error codes are reserved for warnings related to a major release of the isort project.
44
Generally, the existence of any of these will trigger one additional warning listing the upgrade guide.
55

6-
For the most recent upgrade guide, see: [The 5.0.0 Upgrade Guide.](https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0/).
6+
For the most recent upgrade guide, see: [The 5.0.0 Upgrade Guide.](https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html).
77

88
## W0501: Deprecated CLI flags were included that will be ignored.
99

‎isort/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def _build_arg_parser() -> argparse.ArgumentParser:
137137
"Use `-` as the first argument to represent stdin. Use --interactive to use the pre 5.0.0 "
138138
"interactive behavior."
139139
" "
140-
"If you've used isort 4 but are new to isort 5, see the upgrading guide:"
141-
"https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0/.",
140+
"If you've used isort 4 but are new to isort 5, see the upgrading guide: "
141+
"https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html",
142142
add_help=False, # prevent help option from appearing in "optional arguments" group
143143
)
144144

@@ -1230,7 +1230,7 @@ def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] =
12301230
)
12311231
warn(
12321232
"W0500: Please see the 5.0.0 Upgrade guide: "
1233-
"https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0/"
1233+
"https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html"
12341234
)
12351235

12361236
if wrong_sorted_files:

‎isort/settings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ def __init__(
484484
warn(
485485
"W0503: Deprecated config options were used: "
486486
f"{', '.join(deprecated_options_used)}."
487-
"Please see the 5.0.0 upgrade guide: bit.ly/isortv5."
487+
"Please see the 5.0.0 upgrade guide: "
488+
"https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html"
488489
)
489490

490491
if known_other:

0 commit comments

Comments
 (0)
Please sign in to comment.