add lint_pylint_errors

This commit is contained in:
Manuel Barkhau 2020-10-04 12:27:30 +00:00
parent dbd23ef149
commit 2a3dbdb80e
2 changed files with 10 additions and 1 deletions

View file

@ -336,6 +336,15 @@ lint_flake8:
@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.
.PHONY: lint_pylint
lint_pylint:

View file

@ -628,7 +628,7 @@ def _incr_numeric(
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_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"])