pydantic / bump-pydantic

Convert Pydantic from V1 to V2 ♻
MIT License
303 stars 24 forks source link

Ignore .tox files #146

Closed bennuttall closed 5 months ago

bennuttall commented 7 months ago

In my project I use tox which generates a .tox directory containing many copies of my library's Python files which bump-pydantic doesn't need to scan.

$ bump-pydantic lib
[15:35:41] Start bump-pydantic.                                                                                                                                                                      main.py:61
           Found 5717 files to process.

After deleting .tox:

$ bump-pydantic lib
[15:36:16] Start bump-pydantic.                                                                                                                                                                      main.py:61
           Found 124 files to process.                                                                                                                                                               main.py:78
[15:36:32] Refactored 18 files.                                                                                                                                                                     main.py:144
           Run successfully!

Perhaps this tool could know to ignore the .tox directory?

Kludex commented 5 months ago

There's a --ignore parameter on the CLI already, but I'll ignore it by default as well.

bennuttall commented 5 months ago

Thanks!