Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenbaum committed Feb 13, 2024
2 parents 73357b2 + 3d70888 commit b5ff21d
Show file tree
Hide file tree
Showing 9 changed files with 342 additions and 29 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
python-version: "3.9"
cache: "pip"
cache-dependency-path: setup.cfg

- name: Upgrade pip
Expand All @@ -52,7 +52,7 @@ jobs:

- name: mypy
run: |
python -m mypy
python -m mypy
- name: Run tests
run: pytest -v tests --cov --cov-report=xml --cov-config=pyproject.toml
Expand All @@ -67,7 +67,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ["3.8", "3.9", "3.10"]
pyv: ["3.9", "3.10", "3.11", "3.12"]

steps:
- name: Check out the repository
Expand All @@ -79,7 +79,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyv }}
cache: 'pip'
cache: "pip"
cache-dependency-path: setup.cfg

- name: Upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Request features on the `Issue Tracker`_.
How to set up your development environment
------------------------------------------

You need Python 3.8+.
You need Python 3.9+.

- Clone the repository:

Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Automation using nox."""

import glob
import os

Expand All @@ -9,7 +10,7 @@
locations = "src", "tests"


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"])
def tests(session: nox.Session) -> None:
session.install(".[tests]")
session.run(
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ keywords = [
license = { text = "Apache License 2.0" }
maintainers = [{ name = "Iterative", email = "[email protected]" }]
authors = [{ name = "Iterative", email = "[email protected]" }]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
dependencies = [
Expand Down
6 changes: 6 additions & 0 deletions src/dvclive/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ def __init__(self):
super().__init__("`dvcyaml` path must have filename 'dvc.yaml'")


class InvalidImageNameError(DvcLiveError):
def __init__(self, name):
self.name = name
super().__init__(f"Cannot log image with name '{name}'")


class InvalidPlotTypeError(DvcLiveError):
def __init__(self, name):
from .plots import SKLEARN_PLOTS
Expand Down
Loading

0 comments on commit b5ff21d

Please sign in to comment.