Skip to content

Commit

Permalink
Add Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus-talavera-ibm committed Dec 4, 2024
1 parent efcffa3 commit e0abccb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Run lint
run: |
python -m black --check .
python -m ruff check
python tools/verify_images.py
- name: Build documentation
uses: ./.github/actions/build-docs
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ qiskit_ibm_runtime>=0.23.0
qiskit-qasm3-import~=0.4
black==24.1.1
black[jupyter]==24.1.1
ruff==0.8.0
pytest==8.0.0
pytest-timeout~=2.3.1
sphinx==7.1.2; python_version < '3.9'
sphinx==7.2.6; python_version >= '3.9'
qiskit-sphinx-theme==1.16.1
sphinxcontrib-katex==0.9.9
networkx==2.8.5
qiskit_ibm_ai_local_transpiler==0.1.2
qiskit_ibm_ai_local_transpiler==0.1.2
7 changes: 7 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[lint]

select = ["E", "I"]

# Ignore `F401` (unused import violations) in all `__init__.py` files.
[lint.per-file-ignores]
"__init__.py" = ["F401"]

0 comments on commit e0abccb

Please sign in to comment.