May 26 - July 28, 2024 in Darker: Action improvements and exit code refinements #730
akaihola
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This period saw significant progress in enhancing Darker's GitHub Action and refining our exit codes. We've been working on making the action respect the
working-directory
setting (PR #591), addressing a previously reported issue (Issue #587). This change is slated for the upcoming Darker 3.0.0 release, as it involves backwards-incompatible modifications to exit codes.Speaking of exit codes, we've refined them to provide more specific information about different error scenarios (PR #595). Now, we use distinct codes for file not found (2), invalid arguments (3), missing dependencies (4), and unknown failures (123). This aligns better with other tools like Black and improves error handling in CI/CD pipelines. We're also considering a unique exit code (21) for the GitHub action when the specified
working-directory
doesn't exist (Issue #594).In other developments, we've added support for Black's
--preview
flag via Darker's CLI and configuration files (PR #589), addressing a long-standing feature request. We're also exploring the possibility of supportingruff format
as an alternative formatter (Issue #521), which could potentially offer performance improvements. Lastly, we fixed a CI compatibility issue with Pip >= 24.1 (PR #597) and updated our documentation to includepy313
in the--target-version
choices (PR #596), keeping in sync with Black's updates.Beta Was this translation helpful? Give feedback.
All reactions