Skip to content
Snippets Groups Projects
Commit 7a72892d authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Ruff precommit

parent ea0bfedc
Branches
Tags
1 merge request!360Ruff precommit
Pipeline #96810 failed
...@@ -4,7 +4,8 @@ stages: ...@@ -4,7 +4,8 @@ stages:
before_script: before_script:
- apt-get update --yes - 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 -m pip install --upgrade pip
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
...@@ -123,6 +124,13 @@ run-doc-test: ...@@ -123,6 +124,13 @@ run-doc-test:
# Run linting on doc-strings # Run linting on doc-strings
- pip install black velin - pip install black velin
- velin . --check --black - 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: pages:
variables: variables:
......
...@@ -22,3 +22,8 @@ repos: ...@@ -22,3 +22,8 @@ repos:
rev: 0.0.11 rev: 0.0.11
hooks: hooks:
- id: velin - id: velin
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.265"
hooks:
- id: ruff
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment