August 8-28, 2021 in Darker: Addressing isort configuration and pre-commit integration #655
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
-
During this period, we focused on addressing configuration issues and improving integration with other tools. We made progress on resolving an isort-related issue (#105) where the tool was not correctly categorizing imports from a Django app. A community member suggested a workaround by specifying the top-level module name as "first-party" in either a
pyproject.toml
or.isort.cfg
file.We also encountered a new challenge with pre-commit integration (#180). A user reported an error when running Darker as a pre-commit hook on the git HEAD commit. The error message indicated a conflict between the pre-commit configuration and Darker's argument handling, specifically related to the
-r/--revision
argument. This issue underscores the need for better compatibility between Darker and popular development tools like pre-commit. We've begun investigating the root cause of this problem.Beta Was this translation helpful? Give feedback.
All reactions