From 3b57778160e25adc6483efba1f8bd0523fed1417 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 3 Apr 2021 18:08:19 -0700 Subject: [PATCH] fix links in code --- src/flake8/checker.py | 12 ++++++------ tests/integration/test_main.py | 4 ++-- tests/unit/test_file_checker.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/flake8/checker.py b/src/flake8/checker.py index 421d461..2e4f0b8 100644 --- a/src/flake8/checker.py +++ b/src/flake8/checker.py @@ -29,7 +29,7 @@ SERIAL_RETRY_ERRNOS = { # > In those cases, we should replace the customized Queue Report # > class with pep8's StandardReport class to ensure users don't run # > into this problem. - # > (See also: https://gitlab.com/pycqa/flake8/issues/74) + # > (See also: https://github.com/pycqa/flake8/issues/117) errno.ENOSPC, # NOTE(sigmavirus24): When adding to this list, include the reasoning # on the lines before the error code and always append your error @@ -305,7 +305,7 @@ class Manager: or whether to run them in serial. If running the checks in parallel causes a problem (e.g., - https://gitlab.com/pycqa/flake8/issues/74) this also implements + https://github.com/pycqa/flake8/issues/117) this also implements fallback to serial processing. """ try: @@ -444,7 +444,7 @@ class FileChecker: # least. column_offset = 1 row_offset = 0 - # See also: https://gitlab.com/pycqa/flake8/issues/237 + # See also: https://github.com/pycqa/flake8/issues/169 physical_line = token[-1] # NOTE(sigmavirus24): Not all "tokens" have a string as the last @@ -454,7 +454,7 @@ class FileChecker: # NOTE(sigmavirus24): SyntaxErrors also don't exactly have a # "physical" line so much as what was accumulated by the point # tokenizing failed. - # See also: https://gitlab.com/pycqa/flake8/issues/237 + # See also: https://github.com/pycqa/flake8/issues/169 lines = physical_line.rstrip("\n").split("\n") row_offset = len(lines) - 1 logical_line = lines[0] @@ -661,8 +661,8 @@ def calculate_pool_chunksize(num_checkers, num_jobs): - For chunksize, see: https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.imap # noqa - This formula, while not perfect, aims to give each worker two batches of work. - - See: https://gitlab.com/pycqa/flake8/merge_requests/156#note_18878876 - - See: https://gitlab.com/pycqa/flake8/issues/265 + - See: https://github.com/pycqa/flake8/issues/829#note_18878876 + - See: https://github.com/pycqa/flake8/issues/197 """ return max(num_checkers // (num_jobs * 2), 1) diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 10ccc54..765e752 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -207,7 +207,7 @@ def test_bug_report_successful(capsys): def test_specific_noqa_does_not_clobber_pycodestyle_noqa(tmpdir, capsys): - """See https://gitlab.com/pycqa/flake8/issues/552.""" + """See https://github.com/pycqa/flake8/issues/1104.""" with tmpdir.as_cwd(): tmpdir.join('t.py').write("test = ('ABC' == None) # noqa: E501\n") _call_main(['t.py'], retv=1) @@ -219,7 +219,7 @@ t.py:1:15: E711 comparison to None should be 'if cond is None:' def test_specific_noqa_on_line_with_continuation(tmpdir, capsys): - """See https://gitlab.com/pycqa/flake8/issues/375.""" + """See https://github.com/pycqa/flake8/issues/621.""" t_py_src = '''\ from os \\ import path # noqa: F401 diff --git a/tests/unit/test_file_checker.py b/tests/unit/test_file_checker.py index 2b80919..57a47ab 100644 --- a/tests/unit/test_file_checker.py +++ b/tests/unit/test_file_checker.py @@ -11,7 +11,7 @@ from flake8 import checker def test_run_ast_checks_handles_SyntaxErrors(FileProcessor): # noqa: N802,N803 """Stress our SyntaxError handling. - Related to: https://gitlab.com/pycqa/flake8/issues/237 + Related to: https://github.com/pycqa/flake8/issues/169 """ processor = mock.Mock(lines=[]) FileProcessor.return_value = processor