Skip to content
Snippets Groups Projects
Verified Commit 9a165f6a authored by Daniel Hornung's avatar Daniel Hornung
Browse files

STY: Fixed style mistake. Pipeline uses improved Makefile.

parent b98d07a9
No related branches found
No related tags found
No related merge requests found
Pipeline #18232 passed
...@@ -40,18 +40,18 @@ code_style: ...@@ -40,18 +40,18 @@ code_style:
tags: [ docker ] tags: [ docker ]
stage: code_style stage: code_style
script: script:
- pycodestyle --count ./ - make style
allow_failure: true allow_failure: true
# pylint tests for pycaosdb
pylint: pylint:
tags: [ docker ] tags: [ docker ]
stage: linting stage: linting
script: script:
- pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common - make lint
allow_failure: true allow_failure: true
# run tests
# pylint tests for pycaosdb
test: test:
tags: [ docker ] tags: [ docker ]
stage: test stage: test
......
...@@ -31,3 +31,14 @@ doc: ...@@ -31,3 +31,14 @@ doc:
install: install:
@echo "Not implemented yet, use pip for installation." @echo "Not implemented yet, use pip for installation."
check: style lint
.PHONY: check
style:
pycodestyle --count examples src unittests
.PHONY: style
lint:
pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common
.PHONY: lint
...@@ -145,7 +145,7 @@ def test_compare_entities(): ...@@ -145,7 +145,7 @@ def test_compare_entities():
assert "tests_234234" in diff_r1["properties"] assert "tests_234234" in diff_r1["properties"]
assert "tests_TT" in diff_r2["properties"] assert "tests_TT" in diff_r2["properties"]
def test_compare_entities_units(): def test_compare_entities_units():
r1 = db.Record() r1 = db.Record()
r2 = db.Record() r2 = db.Record()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment