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
4 changes: 2 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- run: pipx run build

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand All @@ -66,7 +66,7 @@ jobs:

steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "robotpy-cli"
Expand All @@ -22,4 +22,8 @@ robotpy = "robotpy.main:main"
[project.urls]
repository = "https://github.com/robotpy/robotpy-cli"

[tool.setuptools_scm]
[tool.hatch.build.targets.wheel]
packages = ["robotpy"]

[tool.hatch.version]
source = "vcs"
8 changes: 5 additions & 3 deletions robotpy/logconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ def formatException(self, exc_info):
locals_lines = locals_lines[:MAX_VARS_LINES]
locals_lines[-1] = "..."
output_lines.extend(
line[: MAX_LINE_LENGTH - 3] + "..."
if len(line) > MAX_LINE_LENGTH
else line
(
line[: MAX_LINE_LENGTH - 3] + "..."
if len(line) > MAX_LINE_LENGTH
else line
)
for line in locals_lines
)
output_lines.append("\n")
Expand Down