mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
doc updates
This commit is contained in:
parent
98647519c2
commit
f92c7347ae
3 changed files with 20 additions and 3 deletions
|
|
@ -23,12 +23,29 @@ The recommended approach to using `pylint-ignore` is:
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
- [W0511: fixme (5x)](#w0511-fixme)
|
- [W0511: fixme (4x)](#w0511-fixme)
|
||||||
- [W0703: broad-except (1x)](#w0703-broad-except)
|
- [W0703: broad-except (1x)](#w0703-broad-except)
|
||||||
|
|
||||||
|
|
||||||
# W0511: fixme
|
# W0511: fixme
|
||||||
|
|
||||||
|
## File src/pycalver/v1cli.py - Line 29 - W0511 (fixme)
|
||||||
|
|
||||||
|
- `message: TODO (mb 2020-10-03): This codepath is not tested since switch to`
|
||||||
|
- `author : Manuel Barkhau <mbarkhau@gmail.com>`
|
||||||
|
- `date : 2020-10-03T23:40:01`
|
||||||
|
|
||||||
|
```
|
||||||
|
23: def update_cfg_from_vcs(cfg: config.Config, all_tags: typ.List[str]) -> config.Config:
|
||||||
|
...
|
||||||
|
27: return cfg
|
||||||
|
28:
|
||||||
|
> 29: # TODO (mb 2020-10-03): This codepath is not tested since switch to
|
||||||
|
30: # v2 as default version_pattern.
|
||||||
|
31: version_tags.sort(reverse=True)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## File src/pycalver/vcs.py - Line 80 - W0511 (fixme)
|
## File src/pycalver/vcs.py - Line 80 - W0511 (fixme)
|
||||||
|
|
||||||
- `message: TODO (mb 2018-11-15): Detect encoding of output? Use chardet?`
|
- `message: TODO (mb 2018-11-15): Detect encoding of output? Use chardet?`
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ def update_cfg_from_vcs(cfg: config.Config, all_tags: typ.List[str]) -> config.C
|
||||||
logger.debug("no vcs tags found")
|
logger.debug("no vcs tags found")
|
||||||
return cfg
|
return cfg
|
||||||
|
|
||||||
|
# TODO (mb 2020-10-03): This codepath is not tested since switch to
|
||||||
|
# v2 as default version_pattern.
|
||||||
version_tags.sort(reverse=True)
|
version_tags.sort(reverse=True)
|
||||||
_debug_tags = ", ".join(version_tags[:3])
|
_debug_tags = ", ".join(version_tags[:3])
|
||||||
logger.debug(f"found tags: {_debug_tags} ... ({len(version_tags)} in total)")
|
logger.debug(f"found tags: {_debug_tags} ... ({len(version_tags)} in total)")
|
||||||
|
|
|
||||||
|
|
@ -414,7 +414,6 @@ def _format_segment_tree(
|
||||||
segtree : SegmentTree,
|
segtree : SegmentTree,
|
||||||
part_values: PartValues,
|
part_values: PartValues,
|
||||||
) -> FormatedSeg:
|
) -> FormatedSeg:
|
||||||
# print("??>>>", seg_tree)
|
|
||||||
# NOTE (mb 2020-10-02): starting from the right, if there is any non-zero
|
# NOTE (mb 2020-10-02): starting from the right, if there is any non-zero
|
||||||
# part, all further parts going left will be used. In other words, a part
|
# part, all further parts going left will be used. In other words, a part
|
||||||
# is only omitted, if all parts to the right of it were also omitted.
|
# is only omitted, if all parts to the right of it were also omitted.
|
||||||
|
|
@ -432,7 +431,6 @@ def _format_segment_tree(
|
||||||
is_zero = is_zero and formatted_seg.is_zero
|
is_zero = is_zero and formatted_seg.is_zero
|
||||||
result_parts.append(formatted_seg.result)
|
result_parts.append(formatted_seg.result)
|
||||||
|
|
||||||
# print("<<<<", is_zero, result_parts)
|
|
||||||
result = "" if is_zero else "".join(result_parts)
|
result = "" if is_zero else "".join(result_parts)
|
||||||
return FormatedSeg(False, is_zero, result)
|
return FormatedSeg(False, is_zero, result)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue