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

use python3.10 conveniences #25

Merged
merged 4 commits into from
Apr 4, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: "3.9"
python-version: "3.10"
architecture: x64
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: "3.9"
python-version: "3.10"
architecture: x64
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
- ubuntu-latest
- windows-latest
python:
- "3.9"
- "3.10"
- "3.11"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sphinx:
configuration: docs/conf.py
formats: all
python:
version: 3.8
version: 3.10
install:
- requirements: docs/requirements.txt
- path: .
10 changes: 6 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,32 @@ def install_with_constraints(session, *args, **kwargs):
@nox.session()
def black(session):
"""Run black code formatter."""
session.run("poetry", "install", external=True)
args = session.posargs or SOURCES
session.run("isort", *args)
session.run("black", *args)
session.run("isort", *args, external=True)
session.run("black", *args, external=True)


@nox.session()
def lint(session):
"""Lint using flake8."""
args = session.posargs or SOURCES
session.run("poetry", "install", external=True)
session.run("poetry", "run", "flake8", *args, external=True)
session.run("flake8", *args, external=True)


@nox.session()
def tests(session):
"""Run the test suite."""
args = session.posargs or ["--cov"]
session.run("poetry", "install", external=True)
session.run("poetry", "run", "pytest", *args, external=True)
session.run("pytest", *args, external=True)


@nox.session()
def coverage(session):
"""Upload coverage data."""
session.run("poetry", "install", external=True)
session.run("coverage", "xml", "--fail-under=0")
session.run("codecov", *session.posargs)

Expand Down
Loading
Loading