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.

Tests

Linux Test Status Windows Test Status macOS Test Status

PyPI

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

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status pre-commit.ci status

Other

License GitHub top language Requirements Status

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.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

pyupgrade_directories-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyupgrade-directories-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for pyupgrade-directories-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3548360a686db0a423dbd9afcff7527058dc139b20530c9db1a87aa7c79325b6
MD5 c4168e36a7b3ec935137b3648ea15ccd
BLAKE2b-256 9d320c692ea537cf0566eaa53ee06d85a4e3fca1ec292432c471ec8cfbc0c3c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyupgrade_directories-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for pyupgrade_directories-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03f74ce1daf976c2d404da5ba77040a66aced418fe462770ad647ae400d9752f
MD5 a26c7e380daf8df960a8f2976b32f740
BLAKE2b-256 ce09b6d565ed883275ff2e6314699323bb62d9db1de682dbf69dc4909ac2df39

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