Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3250524
Changelog update
autoreportportal Oct 20, 2026
9bd7de4
Version update
autoreportportal Oct 20, 2026
72de9db
Update certify
HardNorth Oct 26, 2026
7546433
Fix mypy
HardNorth Oct 26, 2026
fc7b2ef
requirements-dev.txt update
HardNorth Oct 26, 2026
66d84ca
Update hooks versions
HardNorth Oct 26, 2026
67cba3d
Update dependencies
HardNorth Oct 26, 2026
267c24b
Update dependencies
HardNorth Oct 26, 2026
bc16e54
Update dependencies
HardNorth Oct 26, 2026
d229e31
Update dependencies
HardNorth Oct 26, 2026
97e21e4
Update dependencies
HardNorth Oct 26, 2026
97487aa
Fix black
HardNorth Oct 26, 2026
e0ef83e
Fix mypy
HardNorth Oct 26, 2026
5c52c82
A try to fix imports
HardNorth Oct 26, 2026
02352b0
A try to fix imports
HardNorth Oct 26, 2026
e818df6
A try to fix imports
HardNorth Oct 26, 2026
f9d04eb
A try to fix imports
HardNorth Oct 26, 2026
17500db
A try to fix imports
HardNorth Oct 26, 2026
9583ed0
Revert "A try to fix imports"
HardNorth Oct 26, 2026
f543ff9
Revert "A try to fix imports"
HardNorth Oct 26, 2026
af82193
Revert "A try to fix imports"
HardNorth Oct 26, 2026
1e2897d
Revert "A try to fix imports"
HardNorth Oct 26, 2026
d0505b0
Revert "A try to fix imports"
HardNorth Oct 26, 2026
6abae38
A try to fix imports
HardNorth Oct 26, 2026
5a80008
Reapply "A try to fix imports"
HardNorth Oct 26, 2026
b44b466
Reapply "A try to fix imports"
HardNorth Oct 26, 2026
94b49b2
Reapply "A try to fix imports"
HardNorth Oct 26, 2026
9281b16
A try to fix imports
HardNorth Oct 26, 2026
10c1922
Revert "A try to fix imports"
HardNorth Oct 26, 2026
62fc209
Revert "Reapply "A try to fix imports""
HardNorth Oct 26, 2026
9477ad7
Revert "Reapply "A try to fix imports""
HardNorth Oct 26, 2026
862e0c8
Revert "Reapply "A try to fix imports""
HardNorth Oct 26, 2026
2e1e4c1
Revert "A try to fix imports"
HardNorth Oct 26, 2026
8767090
Revert "Fix mypy"
HardNorth Oct 26, 2026
a7e2400
Fix pre-commit configuration
HardNorth Oct 26, 2026
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
25 changes: 19 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,43 @@ default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: '3e8a8703264a2f4a69428a0aa4dcb512790b2c8c'
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
rev: '07f6707e2c5612960347f7c00125620457f490a7'
hooks:
- id: pydocstyle
language: system
exclude: |
(?x)^(
tests/.*
)
- repo: https://github.com/psf/black
rev: 24.10.0
rev: '258e7dbf348bc23cb70b8cdf693481c04634ebcc'
hooks:
- id: black
args: [ '--check', './reportportal_client', './tests' ]
language: system
args: [ '--check' ]
files: ^(reportportal_client|tests)/
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: '0a09c783808cfe77bb3269250f663ff733d23302'
hooks:
- id: isort
language: system
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 'c48217e1fc006c2dddd14df54e83b67da15de5cd'
hooks:
- id: flake8
language: system
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'a66e98df7b4aeeb3724184b332785976d062b92e'
hooks:
- id: mypy
language: system
args: [ "--ignore-missing-imports", "reportportal_client" ]
pass_filenames: false
files: ^reportportal_client/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## [Unreleased]
### Changed
- `certify` version range updated to mitigate a compromised certificate issue, by @HardNorth

## [5.7.11]
### Added
- Official `Python 3.15` support, by @HardNorth
### Changed
Expand Down
1 change: 1 addition & 0 deletions reportportal_client/_internal/static/defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# limitations under the License

"""This module provides RP client static objects and variables."""

from enum import Enum, IntEnum

from reportportal_client.helpers import ATTRIBUTE_LENGTH_LIMIT as ATTRIBUTE_LIMIT
Expand Down
4 changes: 3 additions & 1 deletion reportportal_client/aio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ async def await_if_necessary(obj: Union[_T, Task[_T], Coroutine[_T, None, None]]
return await obj
elif asyncio.iscoroutinefunction(obj):
return await obj()
return obj
else:
return obj
return None
10 changes: 2 additions & 8 deletions reportportal_client/helpers/common_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,22 +327,16 @@ def get_function_params(func: Callable, args: tuple, kwargs: dict[str, Any]) ->


TYPICAL_MULTIPART_BOUNDARY: str = "--972dbca3abacfd01fb4aea0571532b52"
TYPICAL_JSON_PART_HEADER: str = (
TYPICAL_MULTIPART_BOUNDARY
+ """\r
TYPICAL_JSON_PART_HEADER: str = TYPICAL_MULTIPART_BOUNDARY + """\r
Content-Disposition: form-data; name="json_request_part"\r
Content-Type: application/json\r
\r
"""
)
TYPICAL_FILE_PART_HEADER: str = (
TYPICAL_MULTIPART_BOUNDARY
+ """\r
TYPICAL_FILE_PART_HEADER: str = TYPICAL_MULTIPART_BOUNDARY + """\r
Content-Disposition: form-data; name="file"; filename="{0}"\r
Content-Type: {1}\r
\r
"""
)
TYPICAL_JSON_PART_HEADER_LENGTH: int = len(TYPICAL_JSON_PART_HEADER)
TYPICAL_MULTIPART_FOOTER: str = "\r\n" + TYPICAL_MULTIPART_BOUNDARY + "--"
TYPICAL_MULTIPART_FOOTER_LENGTH: int = len(TYPICAL_MULTIPART_FOOTER)
Expand Down
1 change: 1 addition & 0 deletions reportportal_client/steps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_my_nested_step():
pass

"""

from datetime import datetime, timezone
from functools import wraps
from typing import Any, Callable, Optional, TypeVar, Union
Expand Down
6 changes: 6 additions & 0 deletions requirements-dev-lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
black==26.10.1
isort==7.0.0
flake8==7.3.0
pydocstyle==6.3.0
mypy==1.19.1
pre-commit==4.5.0
3 changes: 0 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
pytest
pytest-cov
pytest-asyncio
black
isort
types-requests
mypy==1.19.1
types-simplejson==3.20.0.20250822
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
typing-extensions>=4.13.2, <=4.16.0
requests>=2.32.5, <=2.34.2
aiohttp>=3.13.4, <=3.14.5
certifi>=2026.2.25, <=2026.10.19
certifi>=2026.10.19, <=2026.10.23
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from setuptools import find_packages, setup

__version__ = "5.7.11"
__version__ = "5.7.12"

TYPE_STUBS = ["*.pyi"]

Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
# limitations under the License

"""Package which contains all ReportPortal client tests."""

# This file is here because otherwise code coverage is not working. But pytest does not require package files.
1 change: 1 addition & 0 deletions tests/helpers/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# limitations under the License

"""This script contains unit tests for the helpers script."""

from typing import Optional
from unittest import mock

Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ setenv =
commands = pytest --cov=reportportal_client --cov-report=xml tests/ -s -vv

[testenv:pep]
deps =
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-dev-lint.txt

skip_install = True
deps = pre-commit>=1.19.0
commands = pre-commit run --all-files --show-diff-on-failure

[gh-actions]
Expand Down
Loading