Skip to content

Commit

Permalink
Merge pull request #54 from azogue/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
azogue committed Feb 12, 2024
2 parents 1330e02 + a2867ac commit 91ed167
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -5,7 +5,7 @@ exclude: >
)$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.0
hooks:
- id: ruff
args:
Expand All @@ -18,7 +18,7 @@ repos:
args:
- --dont-order-by-type
- repo: https://github.com/psf/black
rev: "23.12.1"
rev: "24.1.1"
hooks:
- id: black
name: Format code (black)
Expand Down
1 change: 1 addition & 0 deletions psychrochart/__init__.py
@@ -1,4 +1,5 @@
"""A library to make psychrometric charts and overlay information in them."""

from psychrochart.chart import PsychroChart
from psychrochart.models.annots import ChartAnnots
from psychrochart.models.config import ChartConfig, ChartZone, ChartZones
Expand Down
1 change: 1 addition & 0 deletions psychrochart/__main__.py
@@ -1,4 +1,5 @@
"""A library to make psychrometric charts and overlay information in them."""

import matplotlib.pyplot as plt

from psychrochart.chart import PsychroChart
Expand Down
7 changes: 4 additions & 3 deletions psychrochart/chart.py
@@ -1,4 +1,5 @@
"""A library to make psychrometric charts and overlay information in them."""

import gc
from io import StringIO
from pathlib import Path
Expand Down Expand Up @@ -151,9 +152,9 @@ def plot_points_dbt_rh(
self,
points: dict[str, Any],
connectors: list[dict[str, Any]] | None = None,
convex_groups: list[dict[str, Any]]
| list[ConvexGroupTuple]
| None = None,
convex_groups: (
list[dict[str, Any]] | list[ConvexGroupTuple] | None
) = None,
scatter_style: dict[str, Any] | None = None,
) -> ChartAnnots:
"""Append individual points, connectors and groups to the plot.
Expand Down
1 change: 1 addition & 0 deletions psychrochart/chartdata.py
@@ -1,4 +1,5 @@
"""A library to make psychrometric charts and overlay information in them."""

import logging
from typing import Sequence

Expand Down
12 changes: 6 additions & 6 deletions psychrochart/models/curves.py
Expand Up @@ -45,12 +45,12 @@ def curve_id(self) -> str:
def dict(
self,
*,
include: AbstractSet[int | str]
| Mapping[int | str, Any]
| None = None,
exclude: AbstractSet[int | str]
| Mapping[int | str, Any]
| None = None,
include: (
AbstractSet[int | str] | Mapping[int | str, Any] | None
) = None,
exclude: (
AbstractSet[int | str] | Mapping[int | str, Any] | None
) = None,
by_alias: bool = False,
skip_defaults: bool | None = None,
exclude_unset: bool = False,
Expand Down
1 change: 1 addition & 0 deletions psychrochart/plot_logic.py
@@ -1,4 +1,5 @@
"""A library to make psychrometric charts and overlay information in them."""

import logging
from math import atan2, degrees
from typing import Any, AnyStr
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
@@ -1,4 +1,5 @@
"""Common helpers for tests"""

import logging
from pathlib import Path
import re
Expand Down
1 change: 1 addition & 0 deletions tests/test_curves_models.py
@@ -1,4 +1,5 @@
"""Tests objects to handle psychrometric curves."""

import matplotlib.pyplot as plt
import numpy as np
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_overlay_info.py
@@ -1,4 +1,5 @@
"""Tests plotting."""

import numpy as np
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_plot_chart.py
@@ -1,4 +1,5 @@
"""Tests plotting."""

import numpy as np

from psychrochart import PsychroChart
Expand Down
1 change: 1 addition & 0 deletions tests/test_psychrometrics.py
@@ -1,4 +1,5 @@
"""Test Cases for psychrometric equations."""

from unittest import TestCase

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_serialization.py
@@ -1,4 +1,5 @@
"""Test that Psychrochart object is serializable."""

import pickle

from psychrochart import load_config, PsychroChart
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
@@ -1,4 +1,5 @@
"""Tests utilities."""

import json
import logging

Expand Down

0 comments on commit 91ed167

Please sign in to comment.