mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
add lint_pylint_errors
This commit is contained in:
parent
dbd23ef149
commit
2a3dbdb80e
2 changed files with 10 additions and 1 deletions
|
|
@ -336,6 +336,15 @@ lint_flake8:
|
||||||
@printf "\e[1F\e[9C ok\n"
|
@printf "\e[1F\e[9C ok\n"
|
||||||
|
|
||||||
|
|
||||||
|
## Run pylint.
|
||||||
|
.PHONY: lint_pylint_errors
|
||||||
|
lint_pylint_errors:
|
||||||
|
@printf "pylint ..\n";
|
||||||
|
@$(DEV_ENV)/bin/pylint --errors-only --jobs=4 --rcfile=setup.cfg \
|
||||||
|
src/ test/
|
||||||
|
@printf "\e[1F\e[9C ok\n"
|
||||||
|
|
||||||
|
|
||||||
## Run pylint.
|
## Run pylint.
|
||||||
.PHONY: lint_pylint
|
.PHONY: lint_pylint
|
||||||
lint_pylint:
|
lint_pylint:
|
||||||
|
|
|
||||||
|
|
@ -628,7 +628,7 @@ def _incr_numeric(
|
||||||
return cur_vinfo
|
return cur_vinfo
|
||||||
|
|
||||||
|
|
||||||
def is_valid_week_pattern(raw_pattern) -> bool:
|
def is_valid_week_pattern(raw_pattern: str) -> bool:
|
||||||
has_yy_part = any(part in raw_pattern for part in ["YYYY", "YY", "0Y"])
|
has_yy_part = any(part in raw_pattern for part in ["YYYY", "YY", "0Y"])
|
||||||
has_ww_part = any(part in raw_pattern for part in ["WW" , "0W", "UU", "0U"])
|
has_ww_part = any(part in raw_pattern for part in ["WW" , "0W", "UU", "0U"])
|
||||||
has_gg_part = any(part in raw_pattern for part in ["GGGG", "GG", "0G"])
|
has_gg_part = any(part in raw_pattern for part in ["GGGG", "GG", "0G"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue