- Drop support for the
pydev
formatter. Now if the project does not contain a[tool.black]
section,esss-fix-format
will issue an error.
- Add support to .cu (CUDA) files.
- When running
black
on a large number of files, pass all files at once on Linux. Previouslyesss_fix_format
would pass files in chunks due to a limitation in Windows command-line size, but now that workaround is done in Windows only.
- Files ignored by git are also ignored by fix-format when paths are given explicitly in the command-line.
- Upgrade to
isort 5
.
- Fix error when running on a Windows mounted drive.
- Improve the error description when
fix-format
crash with non UTF-8 files.
fix-format
now allows exclude patterns to be configured throughpyproject.toml
.
- Fix bug where
pyproject.toml
would not be found if a relative path was given in the command-line.
fix-format
now only supports Python 3.6+.fix-format
can now run black as the code formatter for Python code.See
README.rst
for instructions on how to use it.By default
fix-format
is now less chatty, showing only files that were/would be changed and a summary at the end, unless the new--verbose
flag is given.
- Ignore Python files generated by Jupytext.
- Check if .cpp file is non-ascii, ensure it has BOM at the beginning of the file.
- Emmit message when clang-format is not installed (or usable).
- Ensure python files do not include BOM.
- Provided
ff --git-hooks
to add pre-commit hooks which validate that the code is properly formatted before being committed.
- Adopted pydevf formatter (https://github.com/fabioz/PyDev.Formatter)
- Use absolute paths when calling isort to properly load per project isort config files.
- Fix handling of isort skipped files.
- Use default isort options, for custor formating a configuration file should be used as described in isort documentation.
- Fix support for filenames in pattern (such as CMakeLists.txt), when in subdirectories.
- Add support for CMake files (*.cmake, CMakeLists.txt).
- Add support for Cython files (*.pyx, *.pxd).
- Fix ff -c/ff --commit in Python 3.
- Force to always use parentheses on multi-line imports.
- Workaround for isort bug where some stdlib modules are not recognized as such because of a non-standard Python location.
- Fixed bug where EOL wasn't preserved in files affected by isort.
- Add "-k" shortcut for "--check".
- Display a summary of files which skipped checks.
- Fixed error when an entire file was skipped due to a "isort:skip_file" instruction on the docstring.
- Display error summary at the end in case some error happens when fixing files.
- Fix bug when a file contained a single empty line.
- Add support for passing directories in the command line.
- No longer check files for a specific end-of-line.
- Fixed #1: --commit option was not considering git root directory when listing files.
- First version.