January 29 - February 4, 2023 in Darker: Stdin mode implementation and code quality improvements #698
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 week, we made significant progress on implementing the stdin mode feature, addressing a long-standing issue (#239). Pull request #306 introduces the
--stdin-filename
command line argument, allowing Darker to read input from stdin instead of files. This feature will be particularly useful for integrating Darker with various text editors and IDEs. The implementation includes validation of command line arguments, reading content from stdin, and comprehensive test coverage for different scenarios. However, using--stdin-filename
with--lint
is not yet supported and will raise aNotImplementedError
.We also focused on improving our code quality and addressing linter warnings. PR #463 was merged to satisfy Pylint's
use-dict-literal
check, which was triggered by a recent Pylint update. In our test suite, we made a small improvement by moving the@lru_cache
-clearing Pytest fixture to the module level instead of including it in function signatures (PR #462). This change simplifies our test function signatures without significantly impacting performance.Beta Was this translation helpful? Give feedback.
All reactions