Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
chore(deps): update dependency wemake-python-styleguide to ~0.15 (#14)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency wemake-python-styleguide to ~0.15

* Fix linters

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Arseniy Zhiltsov <arseniy.zhiltsov@ccsteam.ru>
  • Loading branch information
3 people committed Sep 15, 2021
1 parent 108f8ce commit 8988003
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 60 deletions.
10 changes: 10 additions & 0 deletions .github/renovate.json
@@ -1,5 +1,15 @@
{
"extends": [
"config:base"
],
"ignorePaths": [
".github/workflows/*"
],
"packageRules": [
{
"matchPackageNames": ["botx"],
"matchUpdateTypes": ["patch"],
"automerge": true
}
]
}
110 changes: 57 additions & 53 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pybotx_widgets/calendar.py
Expand Up @@ -235,7 +235,9 @@ def get_prev_and_next_year(self) -> Tuple[date, date]:
prev_year = (self.current_date - relativedelta(years=1)).replace(
month=month, day=1
)
next_year = (self.current_date + relativedelta(years=1)).replace(month=1, day=1)
next_year = ( # noqa: WPS221
self.current_date + relativedelta(years=1)
).replace(month=1, day=1)
return prev_year, next_year

def get_prev_and_next_month(self) -> Tuple[date, date]:
Expand Down
9 changes: 6 additions & 3 deletions pybotx_widgets/pagination.py
Expand Up @@ -8,7 +8,6 @@

from pybotx_widgets.base import Widget, WidgetMarkup
from pybotx_widgets.resources import strings
from pybotx_widgets.resources.strings import FormatTemplate

START_FROM_KEY = "pagination_start_from"
MESSAGE_IDS_KEY = "pagination_message_ids"
Expand All @@ -18,8 +17,12 @@


class MarkupMixin(WidgetMarkup):
BACKWARD_BTN_TEMPLATE: FormatTemplate = strings.PAGINATION_BACKWARD_BTN_TEMPLATE
FORWARD_BTN_TEMPLATE: FormatTemplate = strings.PAGINATION_FORWARD_BTN_TEMPLATE
BACKWARD_BTN_TEMPLATE: strings.FormatTemplate = (
strings.PAGINATION_BACKWARD_BTN_TEMPLATE
)
FORWARD_BTN_TEMPLATE: strings.FormatTemplate = (
strings.PAGINATION_FORWARD_BTN_TEMPLATE
)

paginate_by: int
start_from: int
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -15,7 +15,7 @@ black = "~20.8b1"
isort = "4.3.21"
autoflake = "~1.4"
mypy = "~0.782"
wemake-python-styleguide = "~0.14"
wemake-python-styleguide = "~0.15"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Expand Up @@ -104,8 +104,10 @@ ignore =
WPS503,
# Found `in` used with a non-set container
WPS510,
# Found unpythonic getter or setter
WPS615,
# Found too many raises in a function
WPS238,
[darglint]
# See https://github.com/terrencepreilly/darglint#strictness-configuration
Expand Down

0 comments on commit 8988003

Please sign in to comment.