Skip to content
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
1 change: 0 additions & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ jobs:
- "macos-14" # arm64
- "windows-2022"
python_version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
Expand Down
2 changes: 1 addition & 1 deletion devtools/update_pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, ctx: Context) -> None:
# and retain all the comments
self.subprojects: typing.Dict[str, ProjectInfo] = {}
for name, project in self.ctx.subprojects.items():
with open(project.pyproject_path, "r") as fp:
with open(project.pyproject_path) as fp:
data = tomlkit.load(fp)

self.subprojects[name] = ProjectInfo(
Expand Down
2 changes: 0 additions & 2 deletions subprojects/pyntcore/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# works correctly
#

from __future__ import print_function

import pytest

import logging
Expand Down
8 changes: 4 additions & 4 deletions subprojects/pyntcore/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def test_ntproperty(nt: NetworkTableInstance):
class Foo(object):
class Foo:
robotTime = ntproperty(
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
)
Expand Down Expand Up @@ -85,14 +85,14 @@ class Foo(object):
def test_ntproperty_emptyarray(nt: NetworkTableInstance):
with pytest.raises(TypeError):

class Foo1(object):
class Foo1:
testArray = ntproperty(
"/SmartDashboard/testArray", [], writeDefault=True, inst=nt
)

with pytest.raises(TypeError):

class Foo2(object):
class Foo2:
testArray = ntproperty(
"/SmartDashboard/testArray", [], writeDefault=False, inst=nt
)
Expand All @@ -106,7 +106,7 @@ def test_ntproperty_multitest(nt: NetworkTableInstance):
pyfrc tests
"""

class Foo(object):
class Foo:
robotTime = ntproperty(
"/SmartDashboard/robotTime", 0.0, writeDefault=False, inst=nt
)
Expand Down
4 changes: 2 additions & 2 deletions subprojects/robotpy-cscore/cscore/imagewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def location(self):
if self._location is None:
# This assures that we only log when a USB memory stick is plugged in
if not os.path.exists(self.location_root):
raise IOError(
raise OSError(
"Logging disabled, %s does not exist" % self.location_root
)

Expand Down Expand Up @@ -139,7 +139,7 @@ def _run(self):

last = now

except IOError as e:
except OSError as e:
logger.error("Error logging images: %s", e)

logger.warn("Storage thread exited")
Expand Down
2 changes: 1 addition & 1 deletion subprojects/robotpy-wpiutil/examples/printlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# handle systemTime specially
if entry.name == "systemTime" and entry.type == "int64":
dt = datetime.fromtimestamp(record.getInteger() / 1000000)
print(" {:%Y-%m-%d %H:%M:%S.%f}".format(dt))
print(f" {dt:%Y-%m-%d %H:%M:%S.%f}")
continue

if entry.type == "double":
Expand Down
Loading