Configurations
It’s possible to configure unimport from pyproject.toml
or setup.cfg
files if you have.
When reading your configurations, it gives priority to the configurations you enter from the console.
For example:
pyproject.toml
[tool.unimport]
sources = ["path1", "path2"]
exclude = '__init__.py|tests/'
include = 'test|test2|tests.py'
gitignore = true
remove = false
diff = true
include_star_import = true
ignore_init = true
setup.cfg
[unimport]
sources = ["path1", "path2"]
exclude = __init__.py|tests/
include = test|test2|tests.py
gitignore = true
remove = false
diff = true
include_star_import = true
ignore_init = true
Last update: December 4, 2022
Created: December 4, 2022
Created: December 4, 2022