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

PEP 257 enabled #110

Merged
merged 8 commits into from
Nov 10, 2024
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 @@ -117,7 +117,7 @@ repos:

- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
rev: v0.7.2
hooks:
# Run the linter.
- id: ruff
Expand All @@ -141,7 +141,7 @@ repos:
exclude: ^samples/

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.387
rev: v1.1.388
hooks:
- id: pyright

Expand All @@ -155,7 +155,7 @@ repos:
additional_dependencies: [".[toml]"]

- repo: https://github.com/crate-ci/typos
rev: v1.26.8
rev: v1.27.0
hooks:
- id: typos

Expand Down
16 changes: 16 additions & 0 deletions mailjet_rest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
"""The `mailjet_rest` package provides a Python client for interacting with the Mailjet API.

This package includes the main `Client` class for handling API requests, along with
utility functions for version management. The package exposes a consistent interface
for Mailjet API operations.

Attributes:
__version__ (str): The current version of the `mailjet_rest` package.
__all__ (list): Specifies the public API of the package, including `Client`
for API interactions and `get_version` for retrieving version information.

Modules:
- client: Defines the main API client.
- utils.version: Provides version management functionality.
"""

from mailjet_rest.client import Client
from mailjet_rest.utils.version import get_version

Expand Down
Loading
Loading