Releases: akaihola/darker
Releases · akaihola/darker
Version 1.2.1
Added
- Travis CI now runs Pylint on modified lines via pytest-darker
- Darker can now be used as a pre-commit hook (see pre-commit)
- Document integration with Vim
- Thank all contributors right in the
README
RevisionRange
class and Git repository test fixture improvements in preparation for a larger refactoring coming in #80
Fixed
- Improve example in
README
and clarify that path argument can also be a directory
Version 1.2.0
- Configuration for Darker can now be done in
pyproject.toml
. - The formatting of the Darker code base itself is now checked using Darker itself and pytest-darker. Currently the formatting is a mix of Black 19.10 and Black 20.8 rules, and Travis CI only requires Black 20.8 formatting for lines modified in merge requests. In a way, Darker is now eating its own dogfood.
- Support commit ranges for
-r
/--revision
. Useful for comparing to the best common ancestor, e.g.master...
. - Configure Flake8 verification for Darker's own source code
Version 1.1.0
This version makes Darker usable for checking feature branches in a CI system.
Added
-L
/--lint
option for running a linter for modified lines.--check
returns1
from the process but leaves files untouched if any file would require reformatting- Untracked Python files – e.g. those added recently – are now also reformatted
-r <rev>
/--revision <rev>
can be used to specify the Git revision to compare against when finding out modified lines. Defaults toHEAD
as before.--no-skip-string-normalization
flag to overrideskip_string_normalization = true
from a configuration file- The
--diff
option will highlight syntax on screen if the pygments package is available.
Fixed
- Paths from
--diff
are now relative to current working directory, similar to output fromblack --diff
, and blank lines after the lines markers (@@ ... @@
) have been removed.
Version 1.0.0
Merge pull request #29 from akaihola/release-1.0.0 Release version 1.0.0