Run pyupgrade on all files in a directory, and optionally recursively.
Project description
Run pyupgrade on all files in a directory, and optionally recursively.
Tests |
|
---|---|
PyPI |
|
Activity |
|
QA |
|
Other |
Installation
pyupgrade-directories can be installed from PyPI.
To install with pip:
$ python -m pip install pyupgrade-directories
Usage
pyupgrade-directories is called from the command line with pyup_dirs.
Basic usage is the same as pyupgrade. See https://github.com/asottile/pyupgrade/blob/master/README.md for more information.
The key difference is that passing a directory to pyup_dir will process all .py files in the directory. There is also --recursive flag that will recurse subdirectories.
Any .pyd, .pyc and .pyo files are excluded, along with any files in __pycache__, .tox, .mypy_cache, .pytest_cache and venv directories.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyupgrade_directories-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1faccd4bf18f7d9692d98181bd8e299393acbef9a4b7aaa1d1722f0507fa3a20 |
|
MD5 | 7adec2bab8d53f7e941ba3875132f2be |
|
BLAKE2b-256 | 79dcb938f34bb94318bb613c5f1e3e5fea9ada8b0b8b46fcd1f82c58c57169ab |
Hashes for pyupgrade_directories-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd0c857e7c8f462446491ce87f9f456f67dc39623a74a03ba4899164393e3a1f |
|
MD5 | 920ce9067531346b14fd0b5e14288fe0 |
|
BLAKE2b-256 | ec25b7f0cdb8a4351a98233a8da55ba7fe679553b8284b2e1d5d3ac87e4b6f21 |