diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7bb855f9bce0a915a594a31f81a820da44235e2c..2d2919404cdd218fde7d0de0e68f4826fd181bad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -110,6 +110,9 @@ run-doc-test: script: - pip install -r requirements_doc.txt - sphinx-build -b html docs_sphinx public + # Run linting on doc-strings + - pip install black velin + - velin . --check --black pages: variables: 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