Verified Commit faeb15ec authored by Benjamin "Ziirish" SANS's avatar Benjamin "Ziirish" SANS
Browse files

fix CI pipelines

parent 4f0bf4ca
Pipeline #1828 passed with stages
in 23 minutes and 10 seconds
......@@ -14,6 +14,7 @@ clean.sh
.pylintrc
.pytest_cache
.python-version
.pre-commit-config.yaml
dist
_build
.tags
......
......@@ -23,6 +23,7 @@ test:format:
stage: test
image: python:3.8
script:
- pip install black
- black --check .
tags:
- lint
......
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
......
......@@ -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
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment