Skip to content

Commit b72364a

Browse files
committed
Migrate template repository to IBM-Quantum-Prototypes
1 parent b1d09c2 commit b72364a

33 files changed

+1512
-2
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 🐛 Bug report
3+
about: Create a report to help us improve 🤔.
4+
labels: bug
5+
---
6+
7+
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
8+
<!-- ⚠️ Make sure to browse the opened and closed issues -->
9+
10+
### Steps to reproduce the problem
11+
12+
### What is the current behavior?
13+
14+
### What is the expected behavior?
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: 💅 Enhancement request
3+
about: Suggest an improvement for this project 🆒!
4+
labels: 'type: enhancement'
5+
---
6+
7+
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
8+
<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->
9+
10+
### What is the expected enhancement?
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: 🚀 Feature request
3+
about: Suggest an idea for this project 💡!
4+
labels: 'type: feature request'
5+
---
6+
7+
<!-- ⚠️ If you do not respect this template, your issue will be closed -->
8+
<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->
9+
10+
### What is the expected behavior?
11+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
⚠️ If you do not respect this template, your pull request will be closed.
3+
⚠️ Your pull request title should be short detailed and understandable for all.
4+
⚠️ Also, please add a release note file using reno if the change needs to be
5+
documented in the release notes.
6+
⚠️ If your pull request fixes an open issue, please link to the issue.
7+
8+
- [ ] I have added the tests to cover my changes.
9+
- [ ] I have updated the documentation accordingly.
10+
- [ ] I have read the CONTRIBUTING document.
11+
-->
12+
13+
### Summary
14+
15+
16+
17+
### Details and comments
18+

.github/workflows/coverage.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Code coverage
2+
3+
on: [push]
4+
5+
jobs:
6+
coverage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.9
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.9'
14+
- name: Install tox
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install tox
18+
- name: Run styles check
19+
run: tox -ecoverage

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Styles check
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.9
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.9'
14+
- name: Install tox
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install tox
18+
- name: Run styles check
19+
run: tox -elint

.github/workflows/tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Set up tox env
19+
run: |
20+
pver=${{ matrix.python-version }}
21+
tox_env="-epy${pver/./}"
22+
echo tox_env
23+
echo TOX_ENV=$tox_env >> $GITHUB_ENV
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r requirements-dev.txt
29+
- name: Test using tox envs
30+
run: |
31+
tox ${{ env.TOX_ENV }}

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.ipynb_checkpoints
2+
__pycache__
3+
.DS_Store
4+
5+
venv/
6+
.idea/
7+
.vscode/
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# Installer logs
28+
pip-log.txt
29+
pip-delete-this-directory.txt
30+
31+
# Unit test / coverage reports
32+
htmlcov/
33+
.tox/
34+
.coverage
35+
.coverage.*
36+
.cache
37+
nosetests.xml
38+
coverage.xml
39+
*,cover
40+
.hypothesis/
41+
42+
# pyenv
43+
.python-version
44+
45+
# dotenv
46+
.env
47+
48+
# virtualenv
49+
ENV/

0 commit comments

Comments
 (0)