April 17-23, 2022 in Darker: Configuration Refinements and Exclusion Patterns #683
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 focused on addressing configuration challenges and improving file exclusion handling in Darker. We opened a discussion on allowing arbitrary arguments to Black (#351), which could potentially enable users to pass options like
--preview
directly to Black. This feature would provide more flexibility in configuring Darker's behavior and is related to ongoing efforts to improve configuration in monorepo structures (#244).We also investigated issues with exclusion patterns, particularly in the context of pre-commit hooks and monorepo layouts. A user reported that Darker's pre-commit hook wasn't respecting Black's folder ignore configuration (#351), prompting a review of our exclusion handling. This led to a broader discussion on how Darker should handle file exclusions, with a suggestion to add support for Black's
extend-exclude
option (#181). These conversations highlight the need to align Darker's exclusion behavior more closely with Black's, especially in complex project structures.In other developments, we added support for the
NO_COLOR
environment variable (#355), complementing the previously implementedPY_COLORS
option. This change allows users to disable syntax highlighting by settingNO_COLOR
to any non-empty value, withPY_COLORS
taking precedence. These improvements aim to enhance Darker's usability and consistency with other tools in the Python ecosystem.Beta Was this translation helpful? Give feedback.
All reactions