{"id":25940545,"url":"https://github.com/venomlab/pyproject-pyupgrade","last_synced_at":"2026-05-28T13:31:25.242Z","repository":{"id":223347518,"uuid":"760072190","full_name":"venomlab/pyproject-pyupgrade","owner":"venomlab","description":"pyproject.toml configuration wrapper for pyupgrade","archived":false,"fork":false,"pushed_at":"2024-02-19T22:16:27.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-13T23:15:43.684Z","etag":null,"topics":["pyproject","pyproject-toml","python","pyupgrade"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/venomlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-19T18:23:34.000Z","updated_at":"2024-06-20T09:45:18.000Z","dependencies_parsed_at":"2024-02-19T20:10:26.361Z","dependency_job_id":"8f00d692-5c8e-40c1-b153-bbd46b21f78d","html_url":"https://github.com/venomlab/pyproject-pyupgrade","commit_stats":null,"previous_names":["venomlab/pyproject-pyupgrade"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/venomlab/pyproject-pyupgrade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venomlab%2Fpyproject-pyupgrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venomlab%2Fpyproject-pyupgrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venomlab%2Fpyproject-pyupgrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venomlab%2Fpyproject-pyupgrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venomlab","download_url":"https://codeload.github.com/venomlab/pyproject-pyupgrade/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venomlab%2Fpyproject-pyupgrade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33611248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyproject","pyproject-toml","python","pyupgrade"],"created_at":"2025-03-04T05:17:20.320Z","updated_at":"2026-05-28T13:31:25.211Z","avatar_url":"https://github.com/venomlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyproject pyupgrade\n\npyproject.toml configuration wrapper for [pyupgrade](https://github.com/asottile/pyupgrade)\n\n## Installation\n\nVia pip\n\n```shell\npip install pyproject-pyupgrade\n```\n\nVia poetry\n\n```shell\npoetry add --group dev pyproject-pyupgrade\n```\n\nVia pipx\n\n```shell\npipx install -f pyproject-pyupgrade\n```\n\n## Usage\n\nMake sure you have a desired version of `pyupgrade`\ninstalled in your python environment.\n\nAdd the following section in your `pyproject.toml`:\n\n```toml\n[tool.pyupgrade]\n# for example, if you're using python 3.10\npy310-plus = true\n```\n\nAnd then just execute it via CLI\n\n```shell\npyproject-pyupgrade [filename [filenames...]]\n```\n\nor shorter version\n\n```shell\nppyupgrade [filename [filenames...]]\n```\n\nSo, basically you specify flags that you want to add to `pyupgrade`\nCLI arguments specifying them without leading two dashes (`--`).\nThis is the way how you can supply any option that your version of `pyupgrade` receives\n\nThere is also one additional parameter provided exclusively by `pyproject-pyupgrade` wrapper:\n\n```toml\n[tool.pyupgrade]\npyproject-pyupgrade-debug = true\n```\n\nOr directly via CLI\n\n```shell\nppyupgrade --pyproject-pyupgrade-debug ...\n```\n\nThis option is going to output debug information about `pyproject-pyupgrade`.\nInfo about parsed configuration from pyproject.toml (if there is one) and all the flags\n\n## As a pre-commit hook\n\nSee [pre-commit](https://github.com/pre-commit/pre-commit) for instructions.\n\nSample `.pre-commit-config.yaml`:\n\n```yaml\nrepos:\n  - repo: https://github.com/venomlab/pyproject-pyupgrade\n    rev: v0.1.1\n    hooks:\n      - id: ppyupgrade\n```\n\n## ToDo\n\n- [ ] Add tests and `tox` config to run them for all supported python versions\n- [ ] Add option to specify custom `pyupgrade` command. It allows in case if you want to chain pyupgrade wrappers (for instance, with [pyupgrade-directories](https://github.com/domdfcoding/pyupgrade-directories))\n- [ ] Add better parser for TOML. Right now the parser is ultra primitive and might lead to errors if used improperly\n- [ ] If `python` version \u003e= `3.11` use tomllib for `pyproject.toml` parsing\n- [ ] Support adding custom options or key-value arguments to `pyupgrade` CLI\n- [ ] Support storing configuration in `pyupgrade.ini`\n- [ ] Support storing configuration in `tox.ini`\n- [ ] Support storing configuration in `setup.cfg`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenomlab%2Fpyproject-pyupgrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenomlab%2Fpyproject-pyupgrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenomlab%2Fpyproject-pyupgrade/lists"}