Skip to content

Commit 3b57778

Browse files
committedApr 4, 2021
fix links in code
1 parent fe0e249 commit 3b57778

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
 

‎src/flake8/checker.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# > In those cases, we should replace the customized Queue Report
3030
# > class with pep8's StandardReport class to ensure users don't run
3131
# > into this problem.
32-
# > (See also: https://gitlab.com/pycqa/flake8/issues/74)
32+
# > (See also: https://github.com/pycqa/flake8/issues/117)
3333
errno.ENOSPC,
3434
# NOTE(sigmavirus24): When adding to this list, include the reasoning
3535
# on the lines before the error code and always append your error
@@ -305,7 +305,7 @@ def run(self) -> None:
305305
or whether to run them in serial.
306306
307307
If running the checks in parallel causes a problem (e.g.,
308-
https://gitlab.com/pycqa/flake8/issues/74) this also implements
308+
https://github.com/pycqa/flake8/issues/117) this also implements
309309
fallback to serial processing.
310310
"""
311311
try:
@@ -444,7 +444,7 @@ def _extract_syntax_information(exception):
444444
# least.
445445
column_offset = 1
446446
row_offset = 0
447-
# See also: https://gitlab.com/pycqa/flake8/issues/237
447+
# See also: https://github.com/pycqa/flake8/issues/169
448448
physical_line = token[-1]
449449

450450
# NOTE(sigmavirus24): Not all "tokens" have a string as the last
@@ -454,7 +454,7 @@ def _extract_syntax_information(exception):
454454
# NOTE(sigmavirus24): SyntaxErrors also don't exactly have a
455455
# "physical" line so much as what was accumulated by the point
456456
# tokenizing failed.
457-
# See also: https://gitlab.com/pycqa/flake8/issues/237
457+
# See also: https://github.com/pycqa/flake8/issues/169
458458
lines = physical_line.rstrip("\n").split("\n")
459459
row_offset = len(lines) - 1
460460
logical_line = lines[0]
@@ -661,8 +661,8 @@ def calculate_pool_chunksize(num_checkers, num_jobs):
661661
- For chunksize, see: https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.imap # noqa
662662
- This formula, while not perfect, aims to give each worker two batches of
663663
work.
664-
- See: https://gitlab.com/pycqa/flake8/merge_requests/156#note_18878876
665-
- See: https://gitlab.com/pycqa/flake8/issues/265
664+
- See: https://github.com/pycqa/flake8/issues/829#note_18878876
665+
- See: https://github.com/pycqa/flake8/issues/197
666666
"""
667667
return max(num_checkers // (num_jobs * 2), 1)
668668

‎tests/integration/test_main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_bug_report_successful(capsys):
207207

208208

209209
def test_specific_noqa_does_not_clobber_pycodestyle_noqa(tmpdir, capsys):
210-
"""See https://gitlab.com/pycqa/flake8/issues/552."""
210+
"""See https://github.com/pycqa/flake8/issues/1104."""
211211
with tmpdir.as_cwd():
212212
tmpdir.join('t.py').write("test = ('ABC' == None) # noqa: E501\n")
213213
_call_main(['t.py'], retv=1)
@@ -219,7 +219,7 @@ def test_specific_noqa_does_not_clobber_pycodestyle_noqa(tmpdir, capsys):
219219

220220

221221
def test_specific_noqa_on_line_with_continuation(tmpdir, capsys):
222-
"""See https://gitlab.com/pycqa/flake8/issues/375."""
222+
"""See https://github.com/pycqa/flake8/issues/621."""
223223
t_py_src = '''\
224224
from os \\
225225
import path # noqa: F401

‎tests/unit/test_file_checker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def test_run_ast_checks_handles_SyntaxErrors(FileProcessor): # noqa: N802,N803
1212
"""Stress our SyntaxError handling.
1313
14-
Related to: https://gitlab.com/pycqa/flake8/issues/237
14+
Related to: https://github.com/pycqa/flake8/issues/169
1515
"""
1616
processor = mock.Mock(lines=[])
1717
FileProcessor.return_value = processor

0 commit comments

Comments
 (0)
Please sign in to comment.