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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pyupgrade-directories-0.0.3.tar.gz.

File metadata

  • Download URL: pyupgrade-directories-0.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

File hashes

Hashes for pyupgrade-directories-0.0.3.tar.gz
Algorithm Hash digest
SHA256 acdeb0dc4c64717e05834b8d65ef49d430da33fc22aa5d3b654661122735aa6d
MD5 b3df9846f587a20df5f259cc85e16abd
BLAKE2b-256 a98ba2e3fd3c937e7c22026422e10766a5bfe756169de37436645142de346412

See more details on using hashes here.

File details

Details for the file pyupgrade_directories-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyupgrade_directories-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7

File hashes

Hashes for pyupgrade_directories-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ca8246036c49dd85c675e29149515a48cf369130ac178272bbcf9747d08f93
MD5 dca503563096eaa35ab9605775ea63bc
BLAKE2b-256 2f9e94176583a54b26ee739e166e12b10bc4003a16f3f5f0872a99ff45051270

See more details on using hashes here.

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