Skip to content
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ exclude: |

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.7"
rev: "v0.15.21"
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 9.0.0b1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
- repo: https://github.com/python-poetry/poetry
rev: 1.8.5
rev: 2.4.1
hooks:
- id: poetry-check
files: "^(pyproject.toml|poetry.lock)$"
Expand Down
2 changes: 1 addition & 1 deletion micropy/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .config_dict import DictConfigSource
from .config_json import JSONConfigSource

__all__ = ["Config", "JSONConfigSource", "DictConfigSource"]
__all__ = ["Config", "DictConfigSource", "JSONConfigSource"]
2 changes: 1 addition & 1 deletion micropy/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from pathlib import Path

__all__ = ["ROOT", "SCHEMAS", "REPO_SOURCES", "FILES", "STUB_DIR", "LOG_FILE", "STUBBER"]
__all__ = ["FILES", "LOG_FILE", "REPO_SOURCES", "ROOT", "SCHEMAS", "STUBBER", "STUB_DIR"]

# Paths
MOD_PATH = Path(__file__).parent
Expand Down
2 changes: 1 addition & 1 deletion micropy/packages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def create_dependency_source(


__all__ = [
"LocalDependencySource",
"Package",
"PackageDependencySource",
"LocalDependencySource",
"create_dependency_source",
]
8 changes: 4 additions & 4 deletions micropy/project/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from .templates import TemplatesModule

__all__ = [
"TemplatesModule",
"PackagesModule",
"StubsModule",
"ProjectModule",
"DevPackagesModule",
"HookProxy",
"PackagesModule",
"ProjectModule",
"StubsModule",
"TemplatesModule",
]
16 changes: 8 additions & 8 deletions micropy/pyd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
from .pydevice import PyDevice

__all__ = [
"PyDevice",
"ConsumerDelegate",
"ProgressStreamConsumer",
"StreamHandlers",
"MessageHandlers",
"PyDeviceConsumer",
"DevicePath",
"HostPath",
"MessageConsumer",
"StreamConsumer",
"MessageHandlers",
"MetaPyDevice",
"MetaPyDeviceBackend",
"DevicePath",
"HostPath",
"ProgressStreamConsumer",
"PyDevice",
"PyDeviceConsumer",
"StreamConsumer",
"StreamHandlers",
]
12 changes: 6 additions & 6 deletions micropy/stubs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
from .stubs import StubManager

__all__ = [
"StubManager",
"source",
"StubsManifest",
"StubPackage",
"AnyStubPackage",
"StubRepository",
"MicropyStubPackage",
"MicropythonStubsPackage",
"MicropythonStubsManifest",
"MicropythonStubsPackage",
"RepositoryInfo",
"StubManager",
"StubPackage",
"StubRepository",
"StubRepositoryPackage",
"StubsManifest",
"source",
]
4 changes: 2 additions & 2 deletions micropy/stubs/repositories/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from .micropython import MicropythonStubsManifest, MicropythonStubsPackage

__all__ = [
"MicropyStubsManifest",
"MicropyStubPackage",
"MicropythonStubsPackage",
"MicropyStubsManifest",
"MicropythonStubsManifest",
"MicropythonStubsPackage",
]
22 changes: 11 additions & 11 deletions micropy/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
from .types import PathStr

__all__ = [
"is_url",
"get_url_filename",
"create_dir_link",
"ensure_existing_dir",
"ensure_valid_url",
"is_downloadable",
"is_existing_dir",
"stream_download",
"search_xml",
"get_package_meta",
"extract_tarbytes",
"iter_requirements",
"create_dir_link",
"is_dir_link",
"is_update_available",
"get_cached_data",
"get_class_that_defined_method",
"get_package_meta",
"get_url_filename",
"is_dir_link",
"is_downloadable",
"is_existing_dir",
"is_update_available",
"is_url",
"iter_requirements",
"search_xml",
"stream_download",
]


Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Common Pytest Fixtures"""
"""Common Pytest Fixtures"""

import importlib
import shutil
Expand Down
Loading