Skip to main content

Run pyupgrade on all files in a directory, and optionally recursively.

Project description

Run pyupgrade on all files in a directory, and optionally recursively.

Docs

Documentation Status

Tests

Travis Build Status Requirements Status CodeFactor Grade

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Other

License GitHub top language GitHub commits since tagged version GitHub last commit Maintenance

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

pyupgrade-directories-0.0.3.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

pyupgrade_directories-0.0.3-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page