mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 14:16:08 -06:00
fix CI pipelines
This commit is contained in:
parent
4f0bf4ca9c
commit
faeb15ec5f
5 changed files with 8 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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:
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
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
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
4
tox.ini
4
tox.ini
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue