Skip to content

Commit

Permalink
Test with latest Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liran-funaro committed Sep 11, 2024
1 parent 0e3547f commit 06761bd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
black ./*.py --check --diff
- name: Lint with flake8
run: |
flake8 . --count --select=E,F,W,C --show-source --max-complexity=10 --max-line-length=120 --statistics --per-file-ignores='__init__.py:F401'
flake8 objsize --count --select=E,F,W,C --show-source --max-complexity=10 --max-line-length=120 --statistics --per-file-ignores='__init__.py:F401'
- name: Lint with pylint
run: |
pylint objsize
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2", "3.14.0-alpha.0" ]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions objsize/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Traversal over Python's objects subtree and calculating the total size of the subtree (deep size).
"""

import warnings
from typing import Any, Iterable, Iterator, Optional

Expand Down Expand Up @@ -111,7 +112,7 @@ def traverse_exclusive_bfs(
yield from settings.traverse_exclusive_bfs(*objs, marked_set=marked_set, exclude_set=exclude_set)


def get_deep_size(
def get_deep_size( # pylint: disable=too-many-arguments
*objs,
exclude: Optional[Iterable[Any]] = None,
marked_set: Optional[MarkedSet] = None,
Expand Down Expand Up @@ -158,7 +159,7 @@ def get_deep_size(
return settings.get_deep_size(*objs, marked_set=marked_set, exclude_set=exclude_set)


def get_exclusive_deep_size(
def get_exclusive_deep_size( # pylint: disable=too-many-arguments
*objs,
exclude: Optional[Iterable[Any]] = None,
marked_set: Optional[MarkedSet] = None,
Expand Down
1 change: 1 addition & 0 deletions objsize/traverse.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Handling of traversal.
"""

import collections
import gc
import inspect
Expand Down
1 change: 1 addition & 0 deletions test_objsize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Unittests for `objsize`.
"""

import gc
import random
import sys
Expand Down

0 comments on commit 06761bd

Please sign in to comment.