Skip to main content

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

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

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

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.

Release files for pyupgrade-directories 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyupgrade-directories 0.3.0
File Size Uploaded
pyupgrade_directories-0.3.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyupgrade-directories 0.3.0
File Interpreter ABI Platform
pyupgrade_directories-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / pyupgrade_directories-0.3.0.tar.gz

Download URL pyupgrade_directories-0.3.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1faccd4bf18f7d9692d98181bd8e299393acbef9a4b7aaa1d1722f0507fa3a20
BLAKE2b-256 checksum
How to use checksums
79dcb938f34bb94318bb613c5f1e3e5fea9ada8b0b8b46fcd1f82c58c57169ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / pyupgrade_directories-0.3.0-py3-none-any.whl

Download URL pyupgrade_directories-0.3.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd0c857e7c8f462446491ce87f9f456f67dc39623a74a03ba4899164393e3a1f
BLAKE2b-256 checksum
How to use checksums
ec25b7f0cdb8a4351a98233a8da55ba7fe679553b8284b2e1d5d3ac87e4b6f21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page