Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
pylint disable wrong-import-order only where necessary
Browse files Browse the repository at this point in the history
partially addresses #16
  • Loading branch information
garrison committed May 27, 2022
1 parent d7d732c commit 759e876
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/how_tos/check_encoding_problem_commutation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
}
],
"source": [
"import qiskit.tools.jupyter # pylint: disable=unused-import\n",
"import qiskit.tools.jupyter # pylint: disable=unused-import,wrong-import-order\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/01_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
}
],
"source": [
"import qiskit.tools.jupyter # pylint: disable=unused-import\n",
"import qiskit.tools.jupyter # pylint: disable=unused-import,wrong-import-order\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/02_advanced_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
}
],
"source": [
"import qiskit.tools.jupyter # pylint: disable=unused-import\n",
"import qiskit.tools.jupyter # pylint: disable=unused-import,wrong-import-order\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ envdir = .tox/lint
commands =
black --check .
pylint -rn --py-version=3.6 --disable=fixme,invalid-name,missing-function-docstring,protected-access,duplicate-code qrao tests
nbqa pylint -rn --py-version=3.6 --disable=missing-module-docstring,wrong-import-order,wrong-import-position,line-too-long,invalid-name,missing-function-docstring,pointless-statement,duplicate-code docs/ tests/
nbqa pylint -rn --py-version=3.6 --disable=missing-module-docstring,wrong-import-position,line-too-long,invalid-name,missing-function-docstring,pointless-statement,duplicate-code docs/ tests/
mypy qrao tests

[testenv:black]
Expand Down

0 comments on commit 759e876

Please sign in to comment.