Skip to content

Commit f918e16

Browse files
authored
PEP 257 enabled (#110)
* docs: Add docstrings for packages, modules, classes, methods, and functions (following PEP 257 Docstring Conventions); apply linting * docs: Enable docstring lints * docs: Remove Return: None * docs: Remove unused or fixed ruff lint rules * ci: update pre-commit hooks * docs: Add more docstring to tests * docs: pydocstyle linting
1 parent e251ddd commit f918e16

File tree

10 files changed

+783
-38
lines changed

10 files changed

+783
-38
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ repos:
117117

118118
- repo: https://github.com/charliermarsh/ruff-pre-commit
119119
# Ruff version.
120-
rev: v0.7.1
120+
rev: v0.7.2
121121
hooks:
122122
# Run the linter.
123123
- id: ruff
@@ -141,7 +141,7 @@ repos:
141141
exclude: ^samples/
142142

143143
- repo: https://github.com/RobertCraigie/pyright-python
144-
rev: v1.1.387
144+
rev: v1.1.388
145145
hooks:
146146
- id: pyright
147147

@@ -155,7 +155,7 @@ repos:
155155
additional_dependencies: [".[toml]"]
156156

157157
- repo: https://github.com/crate-ci/typos
158-
rev: v1.26.8
158+
rev: v1.27.0
159159
hooks:
160160
- id: typos
161161

mailjet_rest/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""The `mailjet_rest` package provides a Python client for interacting with the Mailjet API.
2+
3+
This package includes the main `Client` class for handling API requests, along with
4+
utility functions for version management. The package exposes a consistent interface
5+
for Mailjet API operations.
6+
7+
Attributes:
8+
__version__ (str): The current version of the `mailjet_rest` package.
9+
__all__ (list): Specifies the public API of the package, including `Client`
10+
for API interactions and `get_version` for retrieving version information.
11+
12+
Modules:
13+
- client: Defines the main API client.
14+
- utils.version: Provides version management functionality.
15+
"""
16+
117
from mailjet_rest.client import Client
218
from mailjet_rest.utils.version import get_version
319

0 commit comments

Comments
 (0)