Skip to content

Update python and black versions to match those used by the OpenQASM CI. #38

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 12 additions & 3 deletions .github/workflows/tests-ast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ jobs:
strategy:
fail-fast: false
matrix:
# Just using minimum and maximum to avoid exploding the matrix.
python-version: ['3.7', '3.12']
antlr-version: ['4.7', '4.13']
include:
# Build on the oldest and latest supported Pythons
# and on the oldest and latest ANTLR version supported
# by each of those Pythons:
- python-version: '3.9'
antlr-version: '4.7'
- python-version: '3.9'
antlr-version: '4.13'
- python-version: '3.13'
antlr-version: '4.9'
- python-version: '3.13'
antlr-version: '4.13'
defaults:
run:
working-directory: source/openpulse
Expand Down
2 changes: 1 addition & 1 deletion source/openpulse/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ requires = ["setuptools", "wheel"]

[tool.black]
line-length = 100
target-version = ["py36"]
target-version = ["py37", "py38", "py39", "py310", "py311", "py312", "py313"]
5 changes: 4 additions & 1 deletion source/openpulse/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pytest>=6.0
pyyaml
pylint>=2.9
black>=20.8b0

# Black uses calver majors for changes to the default style;
# we can allow updates within a given year.
black~=24.10