-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconfigure CI pipelines for PR and merge queue #11526
Changes from all commits
e849c51
5e2baab
c4d67e3
95d2a38
128be76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tox] | ||
minversion = 3.3.0 | ||
minversion = 4.0 | ||
envlist = py38, py39, py310, py311, py312, lint-incr | ||
isolated_build = true | ||
|
||
|
@@ -23,9 +23,16 @@ commands = | |
|
||
[testenv:lint] | ||
basepython = python3 | ||
# `pylint` will examine the source code, not the version that would otherwise be | ||
# installed in `site-packages`, so we use an editable install to make sure the | ||
# compiled modules are built into a valid place for it to find them. | ||
package = editable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should do this globally in the tox config. I'm constantly hitting this locally when using tox which is why I pushed #11380 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's merge #11380 in that separate PR after this, maybe? To me, this change is required to fix the lint job (at the moment, |
||
allowlist_externals = cargo | ||
commands = | ||
ruff check qiskit test tools examples setup.py | ||
black --check {posargs} qiskit test tools examples setup.py | ||
cargo fmt --check | ||
ruff check qiskit test tools examples setup.py | ||
cargo clippy -- -D warnings | ||
pylint -rn qiskit test tools | ||
# This line is commented out until #6649 merges. We can't run this currently | ||
# via tox because tox doesn't support globbing | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh good idea to leverage tox for lint too. Save a lot of config logic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
laziness is often a good motivator for single-source-of-truth configuration lol