Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
SamR1 committed Jan 10, 2020
1 parent afce614 commit b1993a9
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 79
skip-string-normalization = true
target-version = ['py36', 'py37']
target-version = ['py36', 'py37', 'py38']
include = '\.py$'
exclude = 'migrations'
2 changes: 1 addition & 1 deletion rdltr/articles/articles.py
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ def add_user_article(user_id):
# check if url is valid (regex from Django validator)
regex = re.compile(
r'^(?:http|ftp)s?://' # http:// or https://
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # noqa
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|'
r'localhost|'
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|'
r'\[?[A-F0-9]*:[A-F0-9:]+\]?)'
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -61,7 +61,9 @@ rdltr =
dist/static/js/*

[options.packages.find]
exclude = rdltr.tests
exclude =
rdltr.tests
rdltr.tests.tests

[options.entry_points]
console_scripts =

0 comments on commit b1993a9

Please sign in to comment.