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

add py311 to CI #118

Merged
merged 1 commit into from
Jan 9, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
os: ['Ubuntu', 'MacOs', 'Windows']
uses: asottile/workflows/.github/workflows/tox.yml@v1.2.0
with:
env: '["py37", "py38", "py39", "py310"]'
env: '["py37", "py38", "py39", "py310", "py311"]'
os: ${{ matrix.os }}-latest
3 changes: 2 additions & 1 deletion CCAgT_utils/types/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import collections
from copy import copy
from dataclasses import dataclass
from dataclasses import field

from shapely.geometry import MultiPolygon
from shapely.geometry import Polygon
Expand All @@ -17,7 +18,7 @@ class Annotation:
geometry: Polygon | MultiPolygon
category_id: int
iscrowd: int = 0
color: Color = random_color_from_base(Color(0, 0, 0), 255)
color: Color = field(default_factory=lambda: random_color_from_base(Color(0, 0, 0), 255))

@property
def bbox(self) -> BBox:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
py38
py39
py310
py311
pre-commit

[testenv]
Expand Down