fix CI pipelines

This commit is contained in:
ziirish 2021-05-14 10:38:47 +02:00
parent 4f0bf4ca9c
commit faeb15ec5f
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46
5 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View file

@ -14,6 +14,7 @@ clean.sh
.pylintrc
.pytest_cache
.python-version
.pre-commit-config.yaml
dist
_build
.tags

View file

@ -23,6 +23,7 @@ test:format:
stage: test
image: python:3.8
script:
- pip install black
- black --check .
tags:
- lint

View file

@ -1,7 +1,7 @@
Burp-UI
=======
.. image:: https://git.ziirish.me/ziirish/burp-ui/badges/master/build.svg
.. image:: https://git.ziirish.me/ziirish/burp-ui/badges/master/pipeline.svg
:target: https://git.ziirish.me/ziirish/burp-ui/pipelines
:alt: Build Status

View file

@ -16,9 +16,9 @@ from ._compat import to_unicode
def parse_db_setting(string):
parts = re.search(
"(?:(?P<backend>\w+)(?:\+(?P<driver>\w+))?://)?"
"(?:(?P<user>\w+)(?::?(?P<pass>.+))?@)?"
"(?P<host>[\w_.-]+):?(?P<port>\d+)?(?:/(?P<db>\w+))?",
r"(?:(?P<backend>\w+)(?:\+(?P<driver>\w+))?://)?"
r"(?:(?P<user>\w+)(?::?(?P<pass>.+))?@)?"
r"(?P<host>[\w_.-]+):?(?P<port>\d+)?(?:/(?P<db>\w+))?",
string,
)
if not parts: # pragma: no cover

View file

@ -12,7 +12,7 @@ commands = flake8
[flake8]
exclude = .tox,docs,migrations,.git,docker,pkgs
extend-ignore = E203
max-line-length = 88
extend-ignore = E203,E722,E402,E501
max-line-length = 120
show-source = true
application-import-names = burpui