diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72b4381aebcaf5edd16c10c479df6ca908128ec6..9bb5adb6ed4fedf57694d6ec7843942c46296269 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,18 +40,18 @@ code_style: tags: [ docker ] stage: code_style script: - - pycodestyle --count ./ + - make style allow_failure: true +# pylint tests for pycaosdb pylint: tags: [ docker ] stage: linting script: - - pylint --unsafe-load-any-extension=y -d all -e E,F src/caosdb/common + - make lint allow_failure: true - -# pylint tests for pycaosdb +# run tests test: tags: [ docker ] stage: test diff --git a/Makefile b/Makefile index 4bc3459d209936c17a445c64e77180d9559e4653..192337853d8db8812e14f75fca8986006de82180 100644 --- a/Makefile +++ b/Makefile @@ -31,3 +31,14 @@ doc: install: @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 diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py index 9cf9e1b7ac0043f3c256f1210272ff15b9df458b..b22a0ba36d4c19c4229bc3df73f29fb8c651dda8 100644 --- a/unittests/test_apiutils.py +++ b/unittests/test_apiutils.py @@ -145,7 +145,7 @@ def test_compare_entities(): assert "tests_234234" in diff_r1["properties"] assert "tests_TT" in diff_r2["properties"] - + def test_compare_entities_units(): r1 = db.Record() r2 = db.Record()