Skip to content

Commit

Permalink
Fix latest pylint errors (qiskit-community#442)
Browse files Browse the repository at this point in the history
manoelmarques authored Nov 26, 2021
1 parent 7566231 commit 0376314
Showing 7 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -197,9 +197,8 @@ jobs:
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate psi4env
# disable for now
# pip install -U pylint
# make lint
pip install -U pylint
make lint
shell: bash
- name: Nature Unit Tests under Python ${{ matrix.python-version }}
uses: ./.github/actions/run-tests
4 changes: 2 additions & 2 deletions qiskit_nature/algorithms/pes_samplers/extrapolator.py
Original file line number Diff line number Diff line change
@@ -76,13 +76,13 @@ def factory(mode: str, **kwargs) -> "Extrapolator":
Factory method for constructing extrapolators.
Args:
mode: Extrapolator to instantiate. Can be one of:
mode: Extrapolator to instantiate. Can be one of
- 'window'
- 'poly'
- 'diff_model'
- 'pca'
- 'l1'
kwargs: arguments to be passed to the constructor of an extrapolator
**kwargs: arguments to be passed to the constructor of an extrapolator
Returns:
A newly created extrapolator instance.
Original file line number Diff line number Diff line change
@@ -46,9 +46,9 @@ def driver_class_from_type(
Get driver class from driver type
Args:
driver_type:type of driver to be used. If `AUTO` is selected, it will use
driver_type: type of driver to be used. If `AUTO` is selected, it will use
the first driver installed and that supports the given method
in the following order:
in the following order
`PYSCF`, `PSI4`, `PYQUANTE`, `GAUSSIAN`
method: Used to verify if the driver supports it.
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ def __init__(
# Sparse label
dense_labels = self._convert_to_dense_labels(data, num_modals)

ops: List[VibrationalOp] = []
ops: List["VibrationalOp"] = []
for dense_label, coeff in dense_labels:
new_op = reduce(
lambda a, b: a @ b,
2 changes: 1 addition & 1 deletion qiskit_nature/problems/second_quantization/base_problem.py
Original file line number Diff line number Diff line change
@@ -218,7 +218,7 @@ def hopping_qeom_ops(
qubit_converter: the `QubitConverter` to use for mapping and symmetry reduction. The
Z2 symmetries stored in this instance are the basis for the
commutativity information returned by this method.
excitations: the types of excitations to consider. The simple cases for this input are:
excitations: the types of excitations to consider. The simple cases for this input are
:`str`: containing any of the following characters: `s`, `d`, `t` or `q`.
:`int`: a single, positive integer denoting the excitation type (1 == `s`, etc.).
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ def hopping_qeom_ops(
qubit_converter: the `QubitConverter` to use for mapping and symmetry reduction. The
Z2 symmetries stored in this instance are the basis for the
commutativity information returned by this method.
excitations: the types of excitations to consider. The simple cases for this input are:
excitations: the types of excitations to consider. The simple cases for this input are
:`str`: containing any of the following characters: `s`, `d`, `t` or `q`.
:`int`: a single, positive integer denoting the excitation type (1 == `s`, etc.).
Original file line number Diff line number Diff line change
@@ -126,7 +126,7 @@ def hopping_qeom_ops(
qubit_converter: the `QubitConverter` to use for mapping and symmetry reduction. The
Z2 symmetries stored in this instance are the basis for the
commutativity information returned by this method.
excitations: the types of excitations to consider. The simple cases for this input are:
excitations: the types of excitations to consider. The simple cases for this input are
:`str`: containing any of the following characters: `s`, `d`, `t` or `q`.
:`int`: a single, positive integer denoting the excitation type (1 == `s`, etc.).

0 comments on commit 0376314

Please sign in to comment.