Zsolt Dollenstein
f5e16e339b
Replace multiprocessing with ProcessPoolExecutor
...
Instead of relying on `multiprocessing.Pool`, this PR replaces the implementation of `parallel_exec_transform_with_prettyprint` with `concurrent.futures.ProcessPoolExecutor`
2025-05-21 20:02:47 +01:00
dependabot[bot]
be0b668d08
Bump black from 24.8.0 to 25.1.0 ( #1290 )
...
* Bump black from 24.8.0 to 25.1.0
Bumps [black](https://github.com/psf/black ) from 24.8.0 to 25.1.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/24.8.0...25.1.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix formatting and tests
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <amethyst@n7.gg>
2025-05-19 20:53:44 -04:00
dependabot[bot]
d3386b168f
build(deps): bump astral-sh/setup-uv from 5 to 6 ( #1327 )
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 5 to 6.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 19:53:09 -04:00
dependabot[bot]
6e70e1cadc
build(deps): bump trybuild from 1.0.99 to 1.0.105 in /native ( #1329 )
2025-05-19 23:51:23 +00:00
dependabot[bot]
64c761d486
build(deps): bump flake8 from 7.1.2 to 7.2.0 ( #1321 )
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.1.2 to 7.2.0.
- [Commits](https://github.com/pycqa/flake8/compare/7.1.2...7.2.0 )
---
updated-dependencies:
- dependency-name: flake8
dependency-version: 7.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 19:14:36 -04:00
dependabot[bot]
26139e72de
build(deps): bump jinja2 from 3.1.5 to 3.1.6 ( #1310 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.5...3.1.6 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 19:14:19 -04:00
Nathan Goldbaum
b2406e799c
update pyo3 to 0.25 ( #1324 )
...
* build(deps): bump pyo3 from 0.23.5 to 0.25.0 in /native
Bumps [pyo3](https://github.com/pyo3/pyo3 ) from 0.23.5 to 0.25.0.
- [Release notes](https://github.com/pyo3/pyo3/releases )
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pyo3/pyo3/compare/v0.23.5...v0.25.0 )
---
updated-dependencies:
- dependency-name: pyo3
dependency-version: 0.25.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* update pyo3 to 0.24
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <amethyst@n7.gg>
2025-05-19 19:13:17 -04:00
dependabot[bot]
11d6e36450
build(deps): bump pypa/cibuildwheel from 2.23.1 to 2.23.2 ( #1317 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.23.1 to 2.23.2.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.23.1...v2.23.2 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-02 10:19:43 +01:00
Nathan Goldbaum
a4804cf07e
allow configuring empty formatter lists in codemod CLI ( #1319 )
...
* allow configuring empty formatter lists
* appease linter
2025-04-02 10:19:27 +01:00
Nathan Goldbaum
6d31b5ead5
use released version of setup-python ( #1318 )
2025-03-31 21:12:13 -07:00
dependabot[bot]
cef85096b6
build(deps): bump pypa/cibuildwheel from 2.23.0 to 2.23.1 ( #1315 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.23.0 to 2.23.1.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/v2.23.1/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.23.0...v2.23.1 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-22 21:24:55 +00:00
Hadi Alqattan
2c7834eae6
ci: enable macos intel wheels ( #1316 )
2025-03-22 21:24:15 +00:00
Nathan Goldbaum
79f736ac60
ci: don't use --no-build-isolation for free-threaded CI ( #1314 )
2025-03-13 19:17:02 +00:00
Zsolt Dollenstein
5902ccede3
Bump version to 1.7.0 ( #1313 )
2025-03-13 09:56:58 +00:00
Michał Górny
17eafc3f43
Bump PyO3 to 0.23.5 ( #1311 )
2025-03-13 07:39:55 +00:00
Nathan Goldbaum
d580469ea5
add free-threaded CI ( #1312 )
2025-03-12 21:57:31 +00:00
Zsolt Dollenstein
129d9876d2
ci: force LIBCST_NO_LOCAL_SCHEME in cibuildwheel
...
Summary:
Test Plan:
2025-03-07 18:12:22 +00:00
Zsolt Dollenstein
cd959d66c0
ci: pass through LIBCST_NO_LOCAL_SCHEME
...
try #2
2025-03-07 17:23:58 +00:00
Zsolt Dollenstein
218e8e5d43
ci: strip local scheme from uploaded wheels
2025-03-07 16:29:53 +00:00
dependabot[bot]
e2e712d43f
Bump flake8 from 7.1.1 to 7.1.2 ( #1292 )
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.1.1 to 7.1.2.
- [Commits](https://github.com/pycqa/flake8/compare/7.1.1...7.1.2 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-07 15:36:26 +00:00
Nathan Goldbaum
727e433539
Update for Pyo3 0.23 ( #1289 )
...
* Update Cargo.lock and Cargo.toml for PyO3 0.23 support
* Replace deprecated _bound methods with their new undeprecated names
* Update TryIntoPy trait to use IntoPyObject
* Update ParserError wrapper to use IntoPyObject
* replace unwrap with early return
2025-03-07 15:35:17 +00:00
Zsolt Dollenstein
5eccb5f08b
ci: use native arm github runners ( #1303 )
2025-03-07 15:32:39 +00:00
Zsolt Dollenstein
64ca5ed8df
ci: move cibuildwheel config into pyproject.toml ( #1277 )
2025-03-07 14:21:41 +00:00
Zsolt Dollenstein
eae77997be
ci: install libatomic on linux before rustup ( #1301 )
2025-03-07 14:18:25 +00:00
dependabot[bot]
edd75bfa62
Bump pypa/cibuildwheel from 2.22.0 to 2.23.0 ( #1299 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.22.0...v2.23.0 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-07 11:23:36 +00:00
Zanie Blue
985cec808e
Remove dependency on chic and upgrade annotate-snippets ( #1293 )
...
* Vendor `chic`
At 0761036492
* Remove unused `Error::help` method
* Upgrade to `annotate_snippets` 0.9.x
Applying 27c99b5038
* Upgrade to `annotate_snippets` 0.10.x
See https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/chic/debian/patches/annotate-snippets-0.10
* Upgrade to `annotate_snippets` 0.11.x
As in https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/chic/debian/patches/annotate-snippets-0.11
* Drop `chic` compatibility layer
2025-02-21 22:20:49 +00:00
Zsolt Dollenstein
c825afb87d
Bump to 1.6.0
...
Summary:
Test Plan:
2025-01-09 19:09:48 +00:00
dependabot[bot]
01c2939445
Bump jinja2 from 3.1.4 to 3.1.5 ( #1265 )
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-09 19:00:34 +00:00
dependabot[bot]
af136b91ac
Bump astral-sh/setup-uv from 4 to 5 ( #1264 )
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 4 to 5.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-09 18:59:38 +00:00
Danny Yang
6b483c6113
Add codemod to rename typing aliases of builtins ( #1267 )
...
* add codemod to rename typing aliases of builtins
* format
2025-01-09 18:59:00 +00:00
Zsolt Dollenstein
403782d5e9
Cargo.lock changes
2025-01-09 18:50:02 +00:00
Jelmer Vernooij
d2382d81ac
Upgrade pyo3 to 0.22 ( #1180 )
...
* Upgrade pyo3 to 0.22
* libcst_native: add optional signature
Newer versions of pyo3 warn about missing signatures
2025-01-09 18:47:12 +00:00
Zsolt Dollenstein
20837f7824
ci: disable macos intel wheels ( #1275 )
...
cibuildwheel fails to build these after a recent version upgrade
2025-01-09 18:39:18 +00:00
Zsolt Dollenstein
b523b360c1
run cargo fmt
...
Summary:
Test Plan:
2025-01-08 20:02:17 +00:00
Crozzers
595d7f6aaf
Expose TypeAlias and TypeVar related structs in rust library ( #1274 )
2025-01-08 19:58:37 +00:00
Danny Yang
c4e7934253
add types classifier and badge ( #1272 )
2025-01-04 09:59:40 +00:00
Danny Yang
776452f351
Add codemod to fix variadic callable annotations ( #1269 )
...
* add fix variadic callable codemod
* format
2025-01-02 19:49:03 -05:00
Danny Yang
d26987202b
Add codemod to convert typing.Union to | ( #1270 )
...
* add union to or codemod
* lint
* early return
2025-01-02 19:48:55 -05:00
Zsolt Dollenstein
230f177c84
ci: audit workflows with zizmor ( #1262 )
...
https://woodruffw.github.io/zizmor/
2024-12-16 10:01:02 +00:00
dependabot[bot]
3e4bae471b
Bump ufmt from 2.7.3 to 2.8.0 ( #1236 )
...
Bumps [ufmt](https://github.com/omnilib/ufmt ) from 2.7.3 to 2.8.0.
- [Changelog](https://github.com/omnilib/ufmt/blob/main/CHANGELOG.md )
- [Commits](https://github.com/omnilib/ufmt/compare/v2.7.3...v2.8.0 )
---
updated-dependencies:
- dependency-name: ufmt
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-13 11:41:48 +00:00
Zsolt Dollenstein
a3b5529bb3
rename: fix renaming toplevel names ( #1260 )
...
For toplevel module names imported via `import foo`, the rename codemod would fail to change these. This PR fixes that.
2024-12-11 20:30:33 +00:00
khameeteman
b04670c166
bump 3.12 to 3.13 in readme ( #1228 )
2024-12-07 21:33:56 +00:00
Zsolt Dollenstein
d24192a40f
rename: don't eat commas unnecessarily ( #1256 )
...
#1254 was a bit too aggressive in removing commas. They shouldn't be removed if there are parenthesis around the imported names.
2024-12-02 16:13:12 +00:00
Zsolt Dollenstein
8c30fcef30
rename: don't leave trailing commas ( #1254 )
...
When renaming the last element of a `from a import b,c` import, don't leave the trailing comma after `b`
2024-12-02 10:00:59 +00:00
Zsolt Dollenstein
c05ac74b9a
refactor: allow scheduled_removals to accept a tuple ( #1253 )
...
This fixes a TODO
2024-12-02 10:00:35 +00:00
Zsolt Dollenstein
a36432c958
rename: Fix imports with aliases ( #1252 )
...
When renaming `a.b` -> `c.d`, in imports like `import a.b as x` the as_name wasn't correctly removed even though references to `x` were renamed to `c.d`.
This PR makes the codemod remove the `x` asname in these cases.
2024-11-29 11:23:59 +00:00
Zsolt Dollenstein
28e0f397b2
rename: handle imports via a parent module ( #1251 )
...
When requesting a rename for `a.b.c`, we want to act on `import a` when it's used to access `a.b.c`
2024-11-28 20:02:23 +00:00
Zsolt Dollenstein
6fdca74c90
rename: store state in scratch ( #1250 )
...
This PR changes RenameCodemod to store its per-module state in `self.context.scratch` which gets properly reset between files.
2024-11-28 14:59:43 +00:00
dependabot[bot]
08da127e54
Bump pypa/cibuildwheel from 2.21.2 to 2.22.0 ( #1247 )
...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel ) from 2.21.2 to 2.22.0.
- [Release notes](https://github.com/pypa/cibuildwheel/releases )
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md )
- [Commits](https://github.com/pypa/cibuildwheel/compare/v2.21.2...v2.22.0 )
---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 12:27:11 +00:00
Zsolt Dollenstein
4aa92f3857
Bump version to 1.5.1 ( #1246 )
2024-11-18 20:19:01 +00:00