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
7a72892d
Commit
7a72892d
authored
1 year ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Ruff precommit
parent
ea0bfedc
No related branches found
Branches containing commit
No related tags found
1 merge request
!360
Ruff precommit
Pipeline
#96810
failed
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-1
9 additions, 1 deletion
.gitlab-ci.yml
.pre-commit-config.yaml
+5
-0
5 additions, 0 deletions
.pre-commit-config.yaml
with
14 additions
and
1 deletion
.gitlab-ci.yml
+
9
−
1
View file @
7a72892d
...
...
@@ -4,7 +4,8 @@ stages:
before_script
:
-
apt-get update --yes
-
apt-get install --yes build-essential cmake graphviz python3-pyqt5 xvfb xdg-utils lcov
# - apt-get install --yes build-essential cmake graphviz python3-pyqt5 xvfb xdg-utils lcov
-
apt-get install --yes graphviz python3-pyqt5 xvfb xdg-utils
-
python -m pip install --upgrade pip
-
python --version
-
pip install -r requirements.txt
...
...
@@ -123,6 +124,13 @@ run-doc-test:
# Run linting on doc-strings
-
pip install black velin
-
velin . --check --black
-
pip install ruff
-
ruff b_asic --format=gitlab > ruff.json
artifacts
:
name
:
"
${CI_PROJECT_NAME}_code_quality"
when
:
always
reports
:
codequality
:
ruff.json
pages
:
variables
:
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
5
−
0
View file @
7a72892d
...
...
@@ -22,3 +22,8 @@ repos:
rev
:
0.0.11
hooks
:
-
id
:
velin
-
repo
:
https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev
:
"
v0.0.265"
hooks
:
-
id
:
ruff
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