Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#25)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.4.0...v4.6.0)
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.4.3](astral-sh/ruff-pre-commit@v0.2.2...v0.4.3)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.10.0](pre-commit/mirrors-mypy@v1.8.0...v1.10.0)
- [github.com/nbQA-dev/nbQA: 1.7.1 → 1.8.5](nbQA-dev/nbQA@1.7.1...1.8.5)

* [pre-commit.ci] Add auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Lotif <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and lotif authored May 8, 2024
1 parent 247eb79 commit 7769f4e
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # Use the ref you want to point at
rev: v4.6.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: check-ast
Expand All @@ -15,8 +15,8 @@ repos:
- id: check-yaml
- id: check-toml

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.2.2'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.4.3'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -25,7 +25,7 @@ repos:
types_or: [python, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.0
hooks:
- id: mypy
entry: python3 -m mypy --config-file pyproject.toml
Expand All @@ -34,7 +34,7 @@ repos:
exclude: "florist/tests/"

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.5
hooks:
- id: nbqa-ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions florist/api/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FLorist client FastAPI endpoints."""

import json
import logging
import uuid
Expand Down
1 change: 1 addition & 0 deletions florist/api/clients/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common functions and definitions for clients."""

from enum import Enum
from typing import List

Expand Down
1 change: 1 addition & 0 deletions florist/api/clients/mnist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implementation of the MNIST client and model."""

from typing import Tuple

import torch
Expand Down
1 change: 1 addition & 0 deletions florist/api/db/entities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Definitions for the MongoDB database entities."""

import json
import uuid
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions florist/api/launchers/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Launcher functions for local clients and servers."""

import logging
import sys
import time
Expand Down
1 change: 1 addition & 0 deletions florist/api/models/mnist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Definitions for the MNIST model."""

import torch
import torch.nn.functional as f
from torch import nn
Expand Down
1 change: 1 addition & 0 deletions florist/api/monitoring/logs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""General functions and definitions for monitoring."""

from pathlib import Path


Expand Down
1 change: 1 addition & 0 deletions florist/api/monitoring/metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes for the instrumentation of metrics reporting from clients and servers."""

import json
import time
from logging import DEBUG, Logger
Expand Down
1 change: 1 addition & 0 deletions florist/api/routes/server/job.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FastAPI routes for the job."""

from json import JSONDecodeError
from typing import Any, Dict, List

Expand Down
1 change: 1 addition & 0 deletions florist/api/routes/server/status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FastAPI routes for checking server status."""

import json
import logging

Expand Down
1 change: 1 addition & 0 deletions florist/api/routes/server/training.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FastAPI routes for training."""

import logging
from typing import List

Expand Down
1 change: 1 addition & 0 deletions florist/api/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""FLorist server FastAPI endpoints and routes."""

from contextlib import asynccontextmanager
from typing import Any, AsyncGenerator

Expand Down
1 change: 1 addition & 0 deletions florist/api/servers/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common functions and definitions for servers."""

import json
from enum import Enum
from typing import List
Expand Down
1 change: 1 addition & 0 deletions florist/api/servers/launch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions and definitions to launch local servers."""

import uuid
from functools import partial
from multiprocessing import Process
Expand Down
1 change: 1 addition & 0 deletions florist/api/servers/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities functions and definitions for starting a server."""

from functools import partial
from typing import Callable, Dict, Union

Expand Down

0 comments on commit 7769f4e

Please sign in to comment.