pycln
pycln copied to clipboard
A formatter for finding and removing unused import statements.
### Thesis pycln should perform scope analythis and remove unused imports accordingly. ### Reasoning This would be consistent with flake8, pylance and PyCharms behaviour in identifying unused imports. autoflake and...
Hi, So I have an `__init__.py` file with a bunch of unused imports and another file in the same test folder that also has a bunch of missing imports. The...
**Steps to reproduce**: ``` $ pip install pycln ... $ cat .../lib/python3.11/site-packages/pyproject.toml | grep name name = "pycln" ``` **Expected behavior**: `pyproject.toml` should not be packaged at all! Python packages...
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. Release notes Sourced from actions/setup-python's releases. v5.0.0 What's Changed In scope of this release, we update node version runtime from node16 to node20 (actions/setup-python#772)....
Bumps [semver](https://github.com/python-semver/python-semver) from 2.13.0 to 3.0.2. Release notes Sourced from semver's releases. 3.0.2 Documentation: https://python-semver.rtfd.io/en/3.0.2/ PyPI: https://pypi.org/project/semver/3.0.2/ Full Changelog: https://github.com/python-semver/python-semver/compare/3.0.1...3.0.2 Full Changelog between last 2 release and 3: https://github.com/python-semver/python-semver/compare/3.0.1...3.0.2 What's...
Mypy will prevent users from doing implicit re-exports. So if in module `a` you do `from b import obj`, and attempt to do `from a import obj` elsewhere, that will...
**Describe the bug** A clear and concise description of what the bug is. Imports are incorrectly removed from class scopes. Sometimes I use class scopes to keep imports contained when...
[pipx](https://pypa.github.io/pipx/) installs into an isolated environment with the added benefit that you do not have to separately install pycln for every virtual environment/conda etc. I think this would be a...
**Describe the solution you'd like** A clear and concise description of what you want to happen. If side-effects cannot be analysed (or are analyzed as "maybe"), could pycln still remove...
**Describe the bug** A clear and concise description of what the bug is. There's star imports of C wrapped modules in the codebase. If I tell pycln to not expand...