Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
fbc6eed8
Commit
fbc6eed8
authored
2 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Add doc-string linting with velin
parent
fda26535
No related branches found
No related tags found
1 merge request
!237
Add doc-string linting with velin
Pipeline
#90540
passed
2 years ago
Stage: test
Changes
3
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+4
-0
4 additions, 0 deletions
.pre-commit-config.yaml
b_asic/operation.py
+1
-1
1 addition, 1 deletion
b_asic/operation.py
with
8 additions
and
1 deletion
.gitlab-ci.yml
+
3
−
0
View file @
fbc6eed8
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
4
−
0
View file @
fbc6eed8
...
...
@@ -18,3 +18,7 @@ repos:
hooks
:
-
id
:
isort
name
:
isort (python)
-
repo
:
https://github.com/Carreau/velin
rev
:
0.0.12
hooks
:
-
id
:
velin
This diff is collapsed.
Click to expand it.
b_asic/operation.py
+
1
−
1
View file @
fbc6eed8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment