At the moment we use the find_project_root, FileMode.from_configuration, and format_file_contents functions from the black package.
At the moment if a new configuration option is added to black, our call to FileMode.from_configuration will break as it will be missing an argument. It would be nice if black exposed a function to create a FileMode object from a pyproject.toml configuration file. Then we could pass the FileMode object to the format_file_contents function without worrying about the exact configuration options.
At the moment we use the
find_project_root
,FileMode.from_configuration
, andformat_file_contents
functions from theblack
package.At the moment if a new configuration option is added to
black
, our call toFileMode.from_configuration
will break as it will be missing an argument. It would be nice ifblack
exposed a function to create aFileMode
object from apyproject.toml
configuration file. Then we could pass theFileMode
object to theformat_file_contents
function without worrying about the exact configuration options.See
--skip-numeric-underscore-normalization
in #6