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 ...@@ -14,6 +14,7 @@ clean.sh
.pylintrc .pylintrc
.pytest_cache .pytest_cache
.python-version .python-version
.pre-commit-config.yaml
dist dist
_build _build
.tags .tags
......
...@@ -23,6 +23,7 @@ test:format: ...@@ -23,6 +23,7 @@ test:format:
stage: test stage: test
image: python:3.8 image: python:3.8
script: script:
- pip install black
- black --check . - black --check .
tags: tags:
- lint - lint
......
Burp-UI 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 :target: https://git.ziirish.me/ziirish/burp-ui/pipelines
:alt: Build Status :alt: Build Status
......
...@@ -16,9 +16,9 @@ from ._compat import to_unicode ...@@ -16,9 +16,9 @@ from ._compat import to_unicode
def parse_db_setting(string): def parse_db_setting(string):
parts = re.search( parts = re.search(
"(?:(?P<backend>\w+)(?:\+(?P<driver>\w+))?://)?" r"(?:(?P<backend>\w+)(?:\+(?P<driver>\w+))?://)?"
"(?:(?P<user>\w+)(?::?(?P<pass>.+))?@)?" r"(?:(?P<user>\w+)(?::?(?P<pass>.+))?@)?"
"(?P<host>[\w_.-]+):?(?P<port>\d+)?(?:/(?P<db>\w+))?", r"(?P<host>[\w_.-]+):?(?P<port>\d+)?(?:/(?P<db>\w+))?",
string, string,
) )
if not parts: # pragma: no cover if not parts: # pragma: no cover
......
...@@ -12,7 +12,7 @@ commands = flake8 ...@@ -12,7 +12,7 @@ commands = flake8
[flake8] [flake8]
exclude = .tox,docs,migrations,.git,docker,pkgs exclude = .tox,docs,migrations,.git,docker,pkgs
extend-ignore = E203 extend-ignore = E203,E722,E402,E501
max-line-length = 88 max-line-length = 120
show-source = true show-source = true
application-import-names = burpui 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