Skip to content

Commit

Permalink
Merge pull request #25 from twosigma/pyupgrade-py310
Browse files Browse the repository at this point in the history
use python3.10 conveniences
  • Loading branch information
daniel-shields authored Apr 4, 2024
2 parents c1a8991 + 9924f16 commit a8c0dcc
Show file tree
Hide file tree
Showing 27 changed files with 698 additions and 510 deletions.
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

0 comments on commit a8c0dcc

Please sign in to comment.