File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 run : |
2222 python -m pip install --upgrade pip
2323 python -m pip install -r requirements.txt
24- python -m pip install requests-toolbelt ruff mypy typing_extensions types-networkx types-requests pytest numpy
24+ python -m pip install requests-toolbelt ruff mypy typing_extensions types-networkx types-requests pytest networkx
2525 - name : Lint with Ruff
2626 run : ruff check --output-format=github .
2727 - run : |
Original file line number Diff line number Diff line change 1- from auth0 .authentication import GetToken
1+ from auth0 .authentication import GetToken # type: ignore
22from collections import namedtuple
33from datetime import datetime , timedelta , timezone
44from typing import Optional
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def update(
157157 url = f"/projects/{ id } "
158158 payload = asdict (name = name , project = data , graph = graph )
159159 # Access is optional, but we also need to cast to str
160- if access :
160+ if isinstance ( access , Access ) :
161161 payload ["access" ] = access .value
162162 r : Response = self ._client .patch (url , json = payload )
163163 return Project (** r .json ())
Original file line number Diff line number Diff line change 11from numpy .typing import ArrayLike
2- from scipy .spatial .transform import Rotation as R
2+ from scipy .spatial .transform import Rotation as R # type: ignore
33from typing import Optional
44import numpy as np
55
@@ -8,7 +8,7 @@ def xform(
88 translation : Optional [ArrayLike ] = None ,
99 rotation : Optional [ArrayLike ] = None ,
1010 scale : Optional [ArrayLike ] = None ,
11- ) -> np .array :
11+ ) -> np .ndarray :
1212 """Compose transformation matrix.
1313
1414 Args:
Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " metafold"
7- version = " 0.5 .0"
7+ version = " 0.6 .0"
88authors = [
99 {name = " Metafold 3D" , email = " info@metafold3d.com" },
1010]
1111dependencies = [
1212 " attrs~=23.2" ,
1313 " auth0-python~=4.7" ,
14+ " numpy~=1.23" ,
1415 " requests~=2.31" ,
16+ " scipy~=1.11" ,
1517]
1618readme = " README.md"
1719license = {file = " LICENSE" }
@@ -47,7 +49,6 @@ lint = [
4749 " types-requests~=2.31" ,
4850]
4951test = [
50- " numpy~=1.26" ,
5152 " pytest~=7.3" ,
5253 " requests-toolbelt~=1.0" ,
5354]
Original file line number Diff line number Diff line change 11attrs ~= 23.2
22auth0-python ~= 4.7
3- numpy ~= 1.23
3+ numpy ~= 1.23
44requests ~= 2.31
5- scipy ~= 1.11
5+ scipy ~= 1.11
You can’t perform that action at this time.
0 commit comments