bumpver/pylint-ignore.md
Manuel Barkhau 8af5047244 module reorg
2020-09-19 22:35:48 +00:00

5.8 KiB

Pylint-Ignore

WARNING: This file is programatically generated.

This file is parsed by pylint-ignore to determine which Pylint messages should be ignored.

  • Do not edit this file manually.
  • To update, use pylint-ignore --update-ignorefile

The recommended approach to using pylint-ignore is:

  1. If a message refers to a valid issue, update your code rather than ignoring the message.
  2. If a message should always be ignored (globally), then to do so via the usual pylintrc or setup.cfg files rather than this pylint-ignore.md file.
  3. If a message is a false positive, add a comment of this form to your code: # pylint:disable=<symbol> ; explain why this is a false positive

Overview

W0511: fixme

File test/test_patterns.py - Line 14 - W0511 (fixme)

  • message: TODO (mb 2020-09-06): test for v2patterns
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T17:01:05
  12: from pycalver import v2patterns
  13:
> 14: # TODO (mb 2020-09-06): test for v2patterns
  15:
  16: V2_PART_PATTERN_CASES = [

File src/pycalver/vcs.py - Line 78 - W0511 (fixme)

  • message: TODO (mb 2018-11-15): Detect encoding of output? Use chardet?
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T17:24:49
  68:     def __call__(self, cmd_name: str, env: Env = None, **kwargs: str) -> str:
  ...
  76:         output_data: bytes = sp.check_output(cmd_str.split(), env=env, stderr=sp.STDOUT)
  77:
> 78:         # TODO (mb 2018-11-15): Detect encoding of output? Use chardet?
  79:         _encoding = "utf-8"
  80:         return output_data.decode(_encoding)

File test/test_config.py - Line 156 - W0511 (fixme)

  • message: TODO (mb 2020-09-18):
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T19:04:06
  143: def test_parse_v2_cfg():
  ...
  154:     assert "setup.py" in cfg.file_patterns
  155:     assert "setup.cfg" in cfg.file_patterns
> 156:     # TODO (mb 2020-09-18):
  157:     # assert cfg.file_patterns["setup.py"        ] == ["vYYYY0M.BUILD[-TAG]", "YYYY0M.BLD[PYTAGNUM]"]
  158:     # assert cfg.file_patterns["setup.cfg"       ] == ['current_version = "vYYYY0M.BUILD[-TAG]"']

File test/test_version.py - Line 168 - W0511 (fixme)

  • message: TODO (mb 2020-09-06): add tests for new style patterns
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T17:01:05
  163: def vnfo(**field_values):
  ...
  166:
  167: PARSE_VERSION_TEST_CASES = [
> 168:     # TODO (mb 2020-09-06): add tests for new style patterns
  169:     # ["YYYY.MM.DD"                      , "2017.06.07", vnfo(year="2017", month="06", dom="07")],
  170:     ["{year}.{month}.{dom}"            , "2017.06.07", vnfo(year="2017", month="06", dom="07")],

File src/pycalver/v1patterns.py - Line 212 - W0511 (fixme)

  • message: TODO (mb 2020-09-19): replace {version} etc with version_pattern
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-19T16:24:10
  199: def _compile_pattern_re(version_pattern: str, raw_pattern: str) -> typ.Pattern[str]:
  ...
  210:         escaped_pattern = escaped_pattern.replace(char, escaped)
  211:
> 212:     # TODO (mb 2020-09-19): replace {version} etc with version_pattern
  213:     pattern_str = _replace_pattern_parts(escaped_pattern)
  214:     return re.compile(pattern_str)

File src/pycalver/main.py - Line 247 - W0511 (fixme)

  • message: TODO (mb 2020-09-18): Investigate error messages
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-19T16:24:10
  219: def _bump(
  ...
  245:         sys.exit(1)
  246:     except Exception as ex:
> 247:         # TODO (mb 2020-09-18): Investigate error messages
  248:         logger.error(str(ex))
  249:         sys.exit(1)

File src/pycalver/v2patterns.py - Line 256 - W0511 (fixme)

  • message: TODO (mb 2020-09-19): replace {version} etc with version_pattern
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-19T16:24:10
  240: def _compile_pattern_re(version_pattern: str, raw_pattern: str) -> typ.Pattern[str]:
  ...
  254:     print("<<<<", (normalized_pattern,))
  255:
> 256:     # TODO (mb 2020-09-19): replace {version} etc with version_pattern
  257:     pattern_str = _replace_pattern_parts(escaped_pattern)
  258:     return re.compile(pattern_str)

File src/pycalver/config.py - Line 264 - W0511 (fixme)

  • message: TODO (mb 2020-09-18): Validate Pattern
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T19:04:06
  250: def _parse_config(raw_cfg: RawConfig) -> Config:
  ...
  262:     is_new_pattern = "{" not in version_pattern and "}" not in version_pattern
  263:
> 264:     # TODO (mb 2020-09-18): Validate Pattern
  265:     #   detect YY with WW or UU -> suggest GG with VV
  266:     #   detect YYMM -> suggest YY0M

File test/test_cli.py - Line 536 - W0511 (fixme)

  • message: # TODO (mb 2020-09-18):
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T19:35:32
  534:
  535: # def test_custom_commit_message(runner):
> 536: #     # TODO (mb 2020-09-18):
  537: #     assert False

W0703: broad-except

File src/pycalver/main.py - Line 246 - W0703 (broad-except)

  • message: Catching too general exception Exception
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-05T14:30:17
  219: def _bump(
  ...
  244:         logger.error(str(ex))
  245:         sys.exit(1)
> 246:     except Exception as ex:
  247:         # TODO (mb 2020-09-18): Investigate error messages
  248:         logger.error(str(ex))