Skip to content

Commit

Permalink
Merge pull request #93 from aai-institute/dev-updates
Browse files Browse the repository at this point in the history
Run `pre-commit autoupdate`, upgrade requirement lockfiles
  • Loading branch information
nicholasjng authored Mar 4, 2024
2 parents b333d08 + d6e02f9 commit 64117f3
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
types_or: [ python, pyi ]
args: [--ignore-missing-imports, --explicit-package-bases]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# pip-compile --extra=dev --no-annotate --output-file=requirements-dev.txt pyproject.toml
#
build==1.0.3
build==1.1.1
cfgv==3.4.0
distlib==0.3.8
filelock==3.13.1
Expand All @@ -19,7 +19,7 @@ pre-commit==3.6.2
psutil==5.9.8
pyarrow==15.0.0
pyproject-hooks==1.0.0
pytest==8.0.2
pytest==8.1.0
pyyaml==6.0.1
tabulate==0.9.0
virtualenv==20.25.1
Expand Down
14 changes: 7 additions & 7 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ colorama==0.4.6
essentials==1.1.5
essentials-openapi==1.0.9
ghp-import==2.1.0
griffe==0.40.1
griffe==0.41.2
h11==0.14.0
httpcore==1.0.4
httpx==0.27.0
Expand All @@ -29,15 +29,15 @@ mdurl==0.1.2
mergedeep==1.3.4
mike==2.0.0
mkdocs==1.5.3
mkdocs-autorefs==0.5.0
mkdocs-callouts==1.13.0
mkdocs-autorefs==1.0.1
mkdocs-callouts==1.13.1
mkdocs-gen-files==0.5.0
mkdocs-include-dir-to-nav==1.2.0
mkdocs-literate-nav==0.6.1
mkdocs-material==9.5.11
mkdocs-material==9.5.12
mkdocs-material-extensions==1.3.1
mkdocs-section-index==0.3.8
mkdocstrings[python]==0.24.0
mkdocstrings[python]==0.24.1
mkdocstrings-python==1.8.0
mypy-extensions==1.0.0
neoteroi-mkdocs==1.0.5
Expand All @@ -48,12 +48,12 @@ platformdirs==4.2.0
pygments==2.17.2
pymdown-extensions==10.7
pyparsing==3.1.1
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
pyyaml==6.0.1
pyyaml-env-tag==0.1
regex==2023.12.25
requests==2.31.0
rich==13.7.0
rich==13.7.1
six==1.16.0
sniffio==1.3.1
tabulate==0.9.0
Expand Down
1 change: 1 addition & 0 deletions src/nnbench/context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities for collecting context key-value pairs as metadata in benchmark runs."""

from __future__ import annotations

import itertools
Expand Down
6 changes: 2 additions & 4 deletions src/nnbench/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def benchmark(
setUp: Callable[..., None] = NoOp,
tearDown: Callable[..., None] = NoOp,
tags: tuple[str, ...] = (),
) -> Callable[[Callable], Benchmark]:
...
) -> Callable[[Callable], Benchmark]: ...


# Case #2: Application with arguments
Expand All @@ -78,8 +77,7 @@ def benchmark(
setUp: Callable[..., None] = NoOp,
tearDown: Callable[..., None] = NoOp,
tags: tuple[str, ...] = (),
) -> Benchmark:
...
) -> Benchmark: ...


def benchmark(
Expand Down
Empty file added src/nnbench/io/__init__.py
Empty file.
1 change: 1 addition & 0 deletions src/nnbench/reporter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A lightweight interface for refining, displaying, and streaming benchmark results to various sinks.
"""

from __future__ import annotations

from .base import BenchmarkReporter
Expand Down
1 change: 1 addition & 0 deletions src/nnbench/runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The abstract benchmark runner interface, which can be overridden for custom benchmark workloads."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions src/nnbench/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Useful type interfaces to override/subclass in benchmarking workflows."""

from __future__ import annotations

import copy
Expand Down
1 change: 1 addition & 0 deletions src/nnbench/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Various utilities related to benchmark collection, filtering, and more."""

from __future__ import annotations

import importlib
Expand Down

0 comments on commit 64117f3

Please sign in to comment.