Skip to content

Commit

Permalink
CI: fix tox tests (#29)
Browse files Browse the repository at this point in the history
* CI: fix tox tests
* Lint: fix linter
  • Loading branch information
IceKhan13 authored Feb 24, 2023
1 parent ee8a4e2 commit 142e215
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ ignore-mixin-members=yes
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
ignored-modules=torch_geometric

# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
Expand Down
2 changes: 2 additions & 0 deletions blackwater/data/loaders/exp_val.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def __init__(
pass

def len(self):
"""Number of entries."""
return len(self.entries)

def get(self, idx):
"""Get specific entry."""
return self.entries[idx]
3 changes: 3 additions & 0 deletions requirements-graph.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
torch-geometric>=2.1.0.post1
torch-sparse>=0.6.16
torch-scatter>=2.1.0
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
torch>=1.12.1+cpu
torch-geometric>=2.1.0.post1
qiskit-aer==0.11.0
torch>=1.12.1
qiskit-aer>=0.11.0
qiskit-ibmq-provider>=0.19.2
qiskit-terra>=0.23.1
qiskit-experiments>=0.4.0
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
with open("requirements.txt") as f:
install_requires = f.read().splitlines()

with open("requirements-graph.txt") as f:
graph_requires = f.read().splitlines()


version_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "blackwater", "VERSION.txt")
)
Expand All @@ -23,6 +27,9 @@
keywords="quantum ml qiskit error correction mitigation",
packages=setuptools.find_packages(),
install_requires=install_requires,
extra_requires={
"graph": graph_requires
},
python_requires=">=3.7",
version=version,
classifiers=[
Expand Down
Empty file removed tests/data/generators/__init__.py
Empty file.
24 changes: 0 additions & 24 deletions tests/data/generators/test_exp_val_generator.py

This file was deleted.

29 changes: 0 additions & 29 deletions tests/data/generators/test_rb_generator.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ deps = -rrequirements.txt
-rrequirements-dev.txt
commands =
pip check
pip install -rrequirements-graph.txt
python -m unittest -v

[testenv:lint]
Expand Down

0 comments on commit 142e215

Please sign in to comment.