Skip to content

Commit

Permalink
Downgrading pylint to version below 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
apragacz committed Oct 18, 2022
1 parent 509111e commit 88abb33
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
6 changes: 3 additions & 3 deletions fzw/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
import re

from django.conf import settings
from django.conf.urls import include
from django.urls import path, re_path
Expand All @@ -34,9 +32,11 @@


def _static(prefix, view=serve, **kwargs):
prefix_without_leading_slash = prefix.lstrip('/')
return [
re_path(
r'^%s(?P<path>.*)$' % re.escape(prefix.lstrip('/')), view,
f'^{prefix_without_leading_slash}(?P<path>.*)$',
view,
kwargs=kwargs),
]

Expand Down
14 changes: 6 additions & 8 deletions requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ asgiref==3.5.2
# via
# -r requirements.txt
# django
astroid==2.12.11
astroid==2.11.7
# via pylint
asttokens==2.0.8
# via stack-data
attrs==22.1.0
# via pytest
backcall==0.2.0
# via ipython
boto3==1.24.91
boto3==1.24.92
# via -r requirements.txt
botocore==1.27.91
botocore==1.27.92
# via
# -r requirements.txt
# boto3
Expand Down Expand Up @@ -179,7 +179,7 @@ pyflakes==2.5.0
# via flake8
pygments==2.13.0
# via ipython
pylint==2.15.4
pylint==2.13.9
# via
# -r requirements-dev.in
# pylint-django
Expand All @@ -206,7 +206,7 @@ python-dateutil==2.8.2
# via
# -r requirements.txt
# botocore
pytz==2022.4
pytz==2022.5
# via
# -r requirements.txt
# django
Expand Down Expand Up @@ -244,8 +244,6 @@ tomli==2.0.1
# pep517
# pylint
# pytest
tomlkit==0.11.5
# via pylint
traitlets==5.4.0
# via
# ipython
Expand All @@ -260,7 +258,7 @@ types-pyyaml==6.0.12
# djangorestframework-stubs
types-requests==2.28.11.2
# via djangorestframework-stubs
types-urllib3==1.26.25
types-urllib3==1.26.25.1
# via types-requests
typing-extensions==4.4.0
# via
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ flake8-debugger
flake8-print
flake8-tuple
mypy
pylint
pylint<2.14
pylint-django
pylint_enums
pytest
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#
asgiref==3.5.2
# via django
boto3==1.24.91
boto3==1.24.92
# via -r requirements.in
botocore==1.27.91
botocore==1.27.92
# via
# boto3
# s3transfer
Expand Down Expand Up @@ -43,7 +43,7 @@ psycopg2-binary==2.9.4
# via -r requirements.in
python-dateutil==2.8.2
# via botocore
pytz==2022.4
pytz==2022.5
# via
# django
# djangorestframework
Expand Down

0 comments on commit 88abb33

Please sign in to comment.