Migrating project metadata from setup.cfg
to pyproject.toml
triggers black changes
#3859
Labels
T: bug
Something isn't working
Describe the bug
astropy
is in the process of migrating its project metadata from thesetup.cfg
file to thepyproject.toml
file in astropy/astropy#15247, as part of this process it triggered black making the changes in astropy/astropy#15254.black
making these changes was surprising asastropy
has always configuredblack
via thepyproject.toml
file and no changes to theblack
configuration were made as part of astropy/astropy#15247. This seems like a bug if no changes to python files or theblack
configuration triggersblack
to make changes.To Reproduce
Apply the changes from 3b9ceb1 (migration of project metatdata from
setup.cfg
topyproject.toml
) 7bc6005 (current head ofastropy
development) and then run black.Expected behavior
No changes should be made by
black
.Current behavior
The changes in 667bfd4 are made by
black
as part of theastropy
pre-commit
.Environment
Additional context
I am not sure if this is an actual bug or just some flaw in the proposed migration of
astropy
'ssetup.cfg
. In either case, it is surprising that a change unrelated toblack
or any python file triggers changes to be made byblack
.The text was updated successfully, but these errors were encountered: