Skip to content
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

First release of the framework #1

Merged
merged 100 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
7cc6ab2
nox update
DeborahVolpe May 27, 2024
ce7c916
nox update
DeborahVolpe May 27, 2024
6a5d93c
Merge branch 'main' into test
DeborahVolpe May 27, 2024
f30603e
nox update
DeborahVolpe May 27, 2024
6797f0b
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe May 27, 2024
bf6b76f
nox update
DeborahVolpe May 27, 2024
d7374ae
nox update
DeborahVolpe May 28, 2024
67ee83a
nox update
DeborahVolpe May 28, 2024
28e4a35
nox update
DeborahVolpe May 28, 2024
76507a5
nox update
DeborahVolpe May 28, 2024
0e9c539
nox update
DeborahVolpe May 28, 2024
7052f4b
nox update
DeborahVolpe May 28, 2024
5ec1917
nox update
DeborahVolpe May 28, 2024
f17b56a
nox update
DeborahVolpe May 28, 2024
783c517
nox update
DeborahVolpe May 28, 2024
1c0ca4f
⬆️ updated pre-commit file
burgholzer May 29, 2024
1f25525
🔥 remove useless config file
burgholzer May 29, 2024
35f5f24
🚨 apply auto-fixes from ruff
burgholzer May 29, 2024
033b0e6
✨ add dependabot configuration
burgholzer May 29, 2024
95c7e6e
🔧 add mypy dependency
burgholzer May 29, 2024
fff598a
✨ enable support for Python 3.8 to 3.12
burgholzer May 29, 2024
968eba3
🩹 fix up dependencies
burgholzer May 29, 2024
f909656
🩹 fix up project configuration
burgholzer May 29, 2024
f9a75a9
🩹 fix up package configuration
burgholzer May 29, 2024
d5ebb0c
🎨 pre-commit fixes
pre-commit-ci[bot] May 29, 2024
a153ee9
⚗️ try to fix datetime error
burgholzer May 29, 2024
a54deae
🔥 remove redundant mypy workflow
burgholzer May 29, 2024
25ac458
⬆️ update workflows
burgholzer May 29, 2024
64ab832
⚗️ try to resolve pandas versioning
burgholzer May 29, 2024
e26d982
🩹 fix workflow
burgholzer May 29, 2024
cbe80c3
⚗️ try to fix numpy version
burgholzer May 29, 2024
b6e3ddb
🔥 drop Python 3.8
burgholzer May 29, 2024
c4fb2b1
update qiskit version
DeborahVolpe May 30, 2024
91f30b3
update qiskit version
DeborahVolpe May 30, 2024
185cf2c
🎨 pre-commit fixes
pre-commit-ci[bot] May 30, 2024
8dc99db
update qiskit version
DeborahVolpe May 31, 2024
cd10880
update qiskit version
DeborahVolpe May 31, 2024
3f43084
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe May 31, 2024
e8f91d9
🎨 pre-commit fixes
pre-commit-ci[bot] May 31, 2024
c42a2a4
update qiskit version
DeborahVolpe May 31, 2024
2dfe8e3
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe May 31, 2024
07e1f26
update qiskit version
DeborahVolpe May 31, 2024
56feffc
update qiskit version
DeborahVolpe Jun 3, 2024
1b8b97f
add documentation files
DeborahVolpe Jun 3, 2024
1da35e5
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 3, 2024
c77a921
add documentation files
DeborahVolpe Jun 3, 2024
d8ee1c7
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 3, 2024
cee3143
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 3, 2024
fc5430c
add documentation files
DeborahVolpe Jun 3, 2024
27b4f62
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 3, 2024
fb5885b
add documentation files
DeborahVolpe Jun 3, 2024
0fc3365
add documentation files
DeborahVolpe Jun 3, 2024
0a95d54
add documentation files
DeborahVolpe Jun 3, 2024
5be37ed
add documentation files
DeborahVolpe Jun 3, 2024
3a280ad
add documentation files
DeborahVolpe Jun 3, 2024
6643fc0
add documentation files
DeborahVolpe Jun 3, 2024
d39f80b
add documentation files
DeborahVolpe Jun 3, 2024
3393be5
add documentation files
DeborahVolpe Jun 3, 2024
d388083
add documentation files
DeborahVolpe Jun 3, 2024
4dd90da
add documentation files
DeborahVolpe Jun 3, 2024
f79f836
add documentation files
DeborahVolpe Jun 3, 2024
adbcb5b
Apply suggestions from code review
burgholzer Jun 3, 2024
84b5ee7
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 3, 2024
79c4766
add documentation files
DeborahVolpe Jun 3, 2024
16ea467
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 3, 2024
9771bed
Update .pre-commit-config.yaml
burgholzer Jun 3, 2024
c116392
:alembic: try to add cython to nox build time dependencies
burgholzer Jun 3, 2024
bcc6b4b
update custom.css
DeborahVolpe Jun 5, 2024
c9227a1
update index.rst
DeborahVolpe Jun 5, 2024
9091977
update reference
DeborahVolpe Jun 5, 2024
be789bc
update usage.rst
DeborahVolpe Jun 5, 2024
17f1c60
update usage.rst
DeborahVolpe Jun 5, 2024
781331a
update documentation files
DeborahVolpe Jun 5, 2024
33d5607
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
7806578
variables class documentation
DeborahVolpe Jun 5, 2024
a3e1fb8
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
75f3c65
Documentation structure
DeborahVolpe Jun 5, 2024
f315152
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 5, 2024
9a8692f
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
c3bbfc4
Documentation structure
DeborahVolpe Jun 5, 2024
dd6d643
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 5, 2024
be3a775
Documentation structure
DeborahVolpe Jun 5, 2024
e403553
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
c5f069d
Documentation
DeborahVolpe Jun 5, 2024
a6a1189
Documentation
DeborahVolpe Jun 5, 2024
8e07b0c
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
8e0aa20
Documentation
DeborahVolpe Jun 5, 2024
b7c7f25
Use cases
DeborahVolpe Jun 5, 2024
a2ad1ab
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 5, 2024
68592dc
Update bibliography
DeborahVolpe Jun 6, 2024
0ed50a0
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 6, 2024
9093399
Readme fix
DeborahVolpe Jun 6, 2024
5617e16
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 6, 2024
ed2eb3f
🎨 pre-commit fixes
pre-commit-ci[bot] Jun 6, 2024
467310c
Documentation
DeborahVolpe Jun 6, 2024
c2aef9b
Merge remote-tracking branch 'origin/test' into test
DeborahVolpe Jun 6, 2024
4045f9a
Documentation
DeborahVolpe Jun 6, 2024
95c07b3
Documentation
DeborahVolpe Jun 6, 2024
254ff1e
🔥 remove requirements.txt
burgholzer Jun 6, 2024
0bd8bbd
Update README.md
burgholzer Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .flake8

This file was deleted.

25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
groups:
github-actions:
patterns:
- "*"
schedule:
interval: "weekly"
day: "wednesday"
time: "06:00"
timezone: "Europe/Vienna"

- package-ecosystem: "pip"
directory: "/"
groups:
python-dependencies:
patterns:
- "*"
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
timezone: "Europe/Vienna"
91 changes: 42 additions & 49 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,35 @@ ci:
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace

# Clean jupyter notebooks
- repo: https://github.com/srstevenson/nb-clean
rev: 3.2.0
hooks:
- id: nb-clean
args:
- --remove-empty-cells
- --preserve-cell-metadata
- raw_mimetype
- --

# Handling unwanted unicode characters
- repo: https://github.com/sirosen/texthooks
rev: "0.6.2"
rev: 0.6.6
hooks:
- id: fix-ligatures
- id: fix-smartquotes
Expand All @@ -43,67 +56,47 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal

# Clean jupyter notebooks
- repo: https://github.com/srstevenson/nb-clean
rev: "3.1.0"
hooks:
- id: nb-clean
# Check for spelling
- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
hooks:
- id: codespell
args: ["-L", "wille,linz,fro"]
exclude: "mqt/benchviewer/templates/legal.html"

# Format configuration files with prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, javascript, json]

# Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.4.5
burgholzer marked this conversation as resolved.
Show resolved Hide resolved
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
types_or: [python, pyi, jupyter]
- id: ruff-format
types_or: [python, pyi, jupyter]

# Static type checking using mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
files: ^(src/mqt|tests)
args: []
additional_dependencies:
- pytest
- numpy

# Also run Black on examples in the documentation
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]
additional_dependencies: [black==24.*]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
# Format configuration files with prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: mypy
files: ^(src|tests)
args: []
additional_dependencies:
- importlib_resources
- qubovert
- pytest==7.4.0
- types-setuptools
- setuptools<=65.6.3
- sympy==1.12
- numpy==1.23.5
- dwave-samplers
- dwave.system
- docplex==2.25.236
- qiskit==0.45.3
- qiskit_optimization==0.4.0
- qiskit-algorithms==0.2.1
- qiskit_ibm_runtime==0.14.0
- matplotlib
- pandas
- PyPortfolioOpt
- scikit-learn
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]

# Check for spelling
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["-L", "wille,linz", "--skip", "*.ipynb"]

# Catch common capitalization mistakes
- repo: local
Expand All @@ -112,7 +105,7 @@ repos:
name: Disallow improper capitalization
language: pygrep
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|Mqt|Tum
exclude: (.joblib|.pre-commit-config.yaml)
exclude: .pre-commit-config.yaml

# Check best practices for scientific Python code
- repo: https://github.com/scientific-python/cookie
Expand Down
17 changes: 2 additions & 15 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,12 @@
nox.needs_version = ">=2024.3.2"
nox.options.default_venv_backend = "uv|virtualenv"

PYTHON_ALL_VERSIONS = ["3.10", "3.11"]
PYTHON_ALL_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]

BUILD_REQUIREMENTS = [
"setuptools>=66.1",
"setuptools_scm>=7",
"setuptools_scm>=7.2",
"wheel>=0.40",
burgholzer marked this conversation as resolved.
Show resolved Hide resolved
"matplotlib>=3.8",
"numpy>=1.23",
"qiskit==0.45.3",
"qiskit_optimization==0.4.0",
"qiskit_ibm_runtime==0.14.0",
"pytest==7.4.0",
"scikit-learn>=1.3",
"dimod>=0.12.0",
"dwave-preprocessing>=0.6.3 ",
"dwave-samplers==1.2",
"dwave-system>=1.20",
"pandas>=2.1",
"qubovert>=1.0",
]

if os.environ.get("CI", None):
Expand Down
Loading
Loading