diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7bb855f9bce0a915a594a31f81a820da44235e2c..0fce71c217f9d336829d9a9f474da4c7c586ed71 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -111,6 +111,15 @@ run-doc-test: - pip install -r requirements_doc.txt - sphinx-build -b html docs_sphinx public +run-lint: + variables: + QT_API: pyside2 + image: python:3.10 + stage: test + script: + - pip install black velin + - velin . --check --black + pages: variables: QT_API: pyqt5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0decc26863e234161203286245e88cfe4cc7422a..444f779da9082a48a86ce6ca147800e748a27d4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,3 +18,7 @@ repos: hooks: - id: isort name: isort (python) +- repo: https://github.com/Carreau/velin + rev: 0.0.12 + hooks: + - id: velin diff --git a/b_asic/operation.py b/b_asic/operation.py index 67a95e832d7c1af9d7410a40f8d91a2099058431..3762c1b467eb41f34f5f027ef2762b98175f38df 100644 --- a/b_asic/operation.py +++ b/b_asic/operation.py @@ -253,7 +253,7 @@ class Operation(GraphComponent, SignalSourceProvider): that are encountered, and be updated with their new values. prefix : str, optional Used as a prefix for the key string when storing results/delays. - bits_override ; int, optional + bits_override : int, optional Specifies a word length override when truncating inputs which ignores the word length specified by the input signal. truncate : bool, default: True