bumpver/pylint-ignore.md
2020-10-02 22:44:13 +00:00

3.7 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 src/pycalver/vcs.py - Line 80 - 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
  69:     def __call__(self, cmd_name: str, env: Env = None, **kwargs: str) -> str:
  ...
  78:         output_data: bytes = sp.check_output(cmd_parts, env=env, stderr=sp.STDOUT)
  79:
> 80:         # TODO (mb 2018-11-15): Detect encoding of output? Use chardet?
  81:         _encoding = "utf-8"
  82:         return output_data.decode(_encoding)

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

  • message: TODO (mb 2020-09-18):
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T19:04:06
  156: def test_parse_v2_cfg():
  ...
  168:     assert "setup.cfg" in cfg.file_patterns
  169:
> 170:     # TODO (mb 2020-09-18):
  171:     # raw_patterns_by_filepath = _parse_raw_patterns_by_filepath(cfg)
  172:     # assert raw_patterns_by_filepath["setup.py"        ] == ["vYYYY0M.BUILD[-RELEASE]", "YYYY0M.BLD[PYTAGNUM]"]

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

  • message: TODO (mb 2020-09-18): Validate Pattern
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-18T19:04:06
  251: def _parse_config(raw_cfg: RawConfig) -> Config:
  ...
  271:             )
  272:
> 273:     # TODO (mb 2020-09-18): Validate Pattern
  274:     #   detect YY with WW or UU -> suggest GG with VV
  275:     #   detect YYMM -> suggest YY0M

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

  • message: TODO (mb 2020-09-18): Investigate error messages
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-19T16:24:10
  270: def _bump(
  ...
  298:         sys.exit(1)
  299:     except Exception as ex:
> 300:         # TODO (mb 2020-09-18): Investigate error messages
  301:         logger.error(str(ex))
  302:         sys.exit(1)

File src/pycalver/v2version.py - Line 617 - W0511 (fixme)

  • message: TODO (mb 2020-09-20): New Rollover Behaviour:
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-20T17:36:38
  578: def incr(
  ...
  615:     )
  616:
> 617:     # TODO (mb 2020-09-20): New Rollover Behaviour:
  618:     #   Reset major, minor, patch to zero if any part to the left of it is incremented
  619:

W0703: broad-except

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

  • message: Catching too general exception Exception
  • author : Manuel Barkhau <mbarkhau@gmail.com>
  • date : 2020-09-05T14:30:17
  270: def _bump(
  ...
  297:         logger.error(str(ex))
  298:         sys.exit(1)
> 299:     except Exception as ex:
  300:         # TODO (mb 2020-09-18): Investigate error messages
  301:         logger.error(str(ex))