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

[pre-commit.ci] pre-commit autoupdate #732

Merged
merged 2 commits into from
Oct 31, 2023
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -21,7 +21,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black
additional_dependencies: [".[jupyter]"]
Expand All @@ -37,7 +37,7 @@ repos:
additional_dependencies: ["tomli"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.292'
rev: 'v0.1.3'
hooks:
- id: ruff
args: ['--fix']
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
----------
https://docs.pytest.org/en/6.2.x/fixture.html#scope-sharing-fixtures-across-classes-modules-packages-or-session
"""

import os
import pathlib
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_example_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""""""

from pathlib import Path

import zntrack
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_list_deps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for [NodeAttribute] as 'zn.deps'."""

import dvc.cli

import zntrack.examples
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_post_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
_post_init_ is called after the node is initialized (loaded values are not available).
_post_init_ is NOT called after Node.from_rev().
"""

import pathlib

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_zntrack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test 'ZnTrack' version."""

from zntrack import __version__


Expand Down
1 change: 1 addition & 0 deletions zntrack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

GitHub: https://github.com/zincware/ZnTrack
"""

import importlib.metadata

from zntrack import exceptions, tools
Expand Down
1 change: 1 addition & 0 deletions zntrack/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The ZnTrack CLI."""

import contextlib
import importlib.metadata
import os
Expand Down
1 change: 1 addition & 0 deletions zntrack/core/node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The ZnTrack Node class."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions zntrack/core/nodify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The @nodify decorator."""

import copy
import dataclasses
import json
Expand Down
1 change: 1 addition & 0 deletions zntrack/examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

These nodes are primarily used for testing and demonstration purposes.
"""

import json
import pathlib
import random
Expand Down
1 change: 0 additions & 1 deletion zntrack/exceptions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""All ZnTrack exceptions."""


class NodeNotAvailableError(Exception):
"""Raised when a node is not available."""

Expand Down
1 change: 0 additions & 1 deletion zntrack/fields/dvc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
All relevant code has been moved to 'zntrack.fields.dvc.options'
"""


import typing_extensions as tyex

from zntrack.fields import fields
Expand Down
1 change: 1 addition & 0 deletions zntrack/fields/field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The base class for all fields."""

import abc
import contextlib
import enum
Expand Down
1 change: 1 addition & 0 deletions zntrack/fields/fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fields that are used to define Nodes."""

from zntrack.fields.dependency import Dependency
from zntrack.fields.dvc.options import DVCOption, PlotsOption
from zntrack.fields.zn.options import Output, Params, Plots
Expand Down
1 change: 1 addition & 0 deletions zntrack/fields/meta/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Additional fields that are neither dvc/zn i/o fields."""

import json
import pathlib
import typing
Expand Down
1 change: 1 addition & 0 deletions zntrack/notebooks/jupyter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZnTrack Jupyer Notebook interface."""

import logging
import pathlib
import re
Expand Down
1 change: 1 addition & 0 deletions zntrack/project/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Providing a project class that can run experiments."""

from zntrack.project.zntrack_project import Experiment, Project

__all__ = ["Project", "Experiment"]
1 change: 1 addition & 0 deletions zntrack/project/zntrack_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The class for the ZnTrackProject."""

from __future__ import annotations

import contextlib
Expand Down
1 change: 1 addition & 0 deletions zntrack/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module provides additional tools for ZnTrack.
This includes decorators to time method runtimes.
"""

import functools
from time import time

Expand Down
1 change: 1 addition & 0 deletions zntrack/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Standard python init file for the utils directory."""

import dataclasses
import enum
import json
Expand Down
1 change: 1 addition & 0 deletions zntrack/utils/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI Helpers."""

import dataclasses
import pathlib
import subprocess
Expand Down
1 change: 1 addition & 0 deletions zntrack/utils/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Description: Configuration File for ZnTrack."""

import contextlib
import dataclasses
import logging
Expand Down
1 change: 1 addition & 0 deletions zntrack/utils/file_io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZnTrack file I/O."""

import json
import logging
import pathlib
Expand Down
Loading