Skip to content
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ ci:

repos:
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.23
hooks:
- id: validate-pyproject

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.8.5
hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.14.1
hooks:
- id: mypy
files: "^src/"
Expand Down
2 changes: 1 addition & 1 deletion src/pyconify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"collection",
"collections",
"css",
"freedesktop_theme",
"get_cache_directory",
"icon_data",
"iconify_version",
Expand All @@ -22,7 +23,6 @@
"search",
"svg",
"svg_path",
"freedesktop_theme",
]

from ._cache import clear_cache, get_cache_directory
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import patch

import pytest

from pyconify import _cache, api, get_cache_directory


Expand Down
3 changes: 2 additions & 1 deletion tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from typing import Iterator
from unittest.mock import patch

import pyconify
import pytest
import requests

import pyconify
from pyconify import _cache
from pyconify._cache import _SVGCache, clear_cache, get_cache_directory

Expand Down
1 change: 1 addition & 0 deletions tests/test_freedesktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import TYPE_CHECKING

import pytest

from pyconify import freedesktop_theme

if TYPE_CHECKING:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pyconify.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from pathlib import Path

import pyconify
import pytest

import pyconify


def test_collections() -> None:
result = pyconify.collections("bi", "fa")
Expand Down
Loading