- Update to version 3.1.0
- regenerate import symbols
- sync import rewrites from latest reorder-python-imports
- there is a comment in the code about this causing a SyntaxError but as far as I can tell that is incorrect
- Update to version 3.0.0
- Merge pull request #718 from asottile/py3-plus
- remove python-2-compatible rewriting mode
- Update to version 2.38.4
- Merge pull request #716 from asottile/lt-5
- Update to version 2.38.3
- Merge pull request #715 from asottile/limit-tokenize-rt-before-break
- limit tokenize-rt to <4 before breaks
- tokenze-rt will remove python2-compat parsing
- Merge pull request #711 from asottile/pre-commit-ci-update-config
OBS-URL: https://build.opensuse.org/request/show/1032250
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=65
- Do not remove quoted annotations on 3.11
`from __future__ import annotations` will not be the default
behavior on 3.11.
Fixes#637.
- update to version 2.32.0:
- rewrite check_output(...) universal_newlines -> text
- convert fstring rewriter to a plugin
- move typed class rewrite to a plugin
- change is_name_attr to accept multiple modules
- reorder pre-commit config
Committed via https://github.com/asottile/all-repos
- Update default branch to main
Committed via https://github.com/asottile/all-repos
- remove unneeded gitignore lines
- coverage-html: coverage>=6.2 writes a .gitignore file
- mypy_cache: mypy>=0.770 writes a .gitignore file
- pytest_cache: pytest>=3.8.1 writes a .gitignore file
- venv: virtualenv>=20.0.21 writes a .gitignore file
Committed via https://github.com/asottile/all-repos
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=57
- unpack argument list comprehensions
- revert string join for potential perf reasons
- update to version 2.19.2
- replace open modes with string flags
- update to version 2.19.3
- ignore unrelated calls to .encode(...)
- fix elif -> else when indented
- update to version 2.19.4
- fix __metaclass__ = type replacement without extra newline
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=30
- genericize future import detection
- rewrite pep585 generic builtins
- move py2 compat fixer to plugins
- move %-format rewrite to a plugin
- move py3+ base class removal to plugins
- move lru_cache rewrite to a plugin
- move six decorator removal to a plugin
- move six.b / six.ensure_binary to a plugin
- move __metaclass__ = test checker to a plugin
- move io.open rewriting to a plugin
- move simple six attrs to a plugin
- move typing pep585 rewrite to a plugin
- move default encoding to a plugin
- move native literals to a plugin
- move versioned branches rewrite to a plugin
- move open mode fix to a plugin
- move os error alias rename to a plugin
- move six calls / metaclass rewrites to plugins
- settings in separate class
- move mock rewrite to a plugin
- refactor Py3Plus scope management
- move super and yield from to a legacy plugin
- combine six_b into six_calls plugin
- replace typing.Text with str
- rewrite pep604 (+ add --py310-plus)
- document PEP 604 rewrites
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=12