tmbo / questionary

Python library to build pretty command line user prompts ✨Easy to use multi-select lists, confirmations, free text prompts ...
MIT License
1.58k stars 93 forks source link

Update deprecated autoflake hook #386

Closed FantasqueX closed 4 months ago

FantasqueX commented 4 months ago

As stated in https://github.com/humitos/mirrors-autoflake/blob/master/README.md, DO NOT USE THIS REPOSITORY. There is an official version now at https://github.com/PyCQA/autoflake/blob/master/.pre-commit-hooks.yaml.

There are some errors when using this deprecated hook under Python 3.12, such as

Traceback (most recent call last):
  File "/home/fanta/.cache/pre-commit/repoo2mq6vmn/py_env-python3.12/bin/autoflake", line 5, in <module>
    from autoflake import main
  File "/home/fanta/.cache/pre-commit/repoo2mq6vmn/py_env-python3.12/lib/python3.12/site-packages/autoflake.py", line 32, in <module>
    import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils'

What is the problem that this PR addresses?

...

How did you solve it?

...

Checklist

kiancross commented 4 months ago

Thanks for the PR!