]> git.madduck.net Git - etc/vim.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

etc/vim.git
13 months agoUse inline flags for test cases (#3931)
Jelle Zijlstra [Tue, 10 Oct 2023 01:43:47 +0000 (18:43 -0700)]
Use inline flags for test cases (#3931)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
13 months agoDrop support for parsing Python 2 (#3933)
Shantanu [Mon, 9 Oct 2023 14:02:49 +0000 (07:02 -0700)]
Drop support for parsing Python 2 (#3933)

13 months agoBump pypa/cibuildwheel from 2.16.1 to 2.16.2 (#3934)
dependabot[bot] [Mon, 9 Oct 2023 14:00:49 +0000 (07:00 -0700)]
Bump pypa/cibuildwheel from 2.16.1 to 2.16.2 (#3934)

Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.16.1 to 2.16.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.16.1...v2.16.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>
13 months agoSet Docker to use 3.11 for now (#3927)
Cooper Lees [Fri, 6 Oct 2023 18:39:20 +0000 (11:39 -0700)]
Set Docker to use 3.11 for now (#3927)

Until we get new aiohttp wheels we need to build with 3.11.
You can see an example of a fail here:

Workaround for #3919 - Will leave it open until we can move to 3.21

13 months agoUpdate output display to job summary (#3914)
Cristiano Salerno [Fri, 6 Oct 2023 17:41:36 +0000 (19:41 +0200)]
Update output display to job summary (#3914)

* Update output display to job summary

* fix: handled exit-code of script

* added changelog message

13 months agoRemove `$`, `>>>` and other prompt prefixes when code copied from the… (#3884)
David Lev [Fri, 6 Oct 2023 01:21:56 +0000 (04:21 +0300)]
Remove `$`, `>>>` and other prompt prefixes when code copied from the… (#3884)

Adding configurations for sphinx-copybutton in conf.py
https://sphinx-copybutton.readthedocs.io/en/latest/use.html#using-regexp-prompt-identifiers

13 months agoexclude tests/data/.* from mypy (#3917)
John Litborn [Fri, 6 Oct 2023 01:15:35 +0000 (03:15 +0200)]
exclude tests/data/.* from mypy (#3917)

13 months agoUpdate link to VS Code formatting instructions (#3921)
Jake Anto [Fri, 6 Oct 2023 01:14:59 +0000 (06:44 +0530)]
Update link to VS Code formatting instructions (#3921)

Update link

13 months agorespect magic trailing commas in return types (#3916)
John Litborn [Wed, 4 Oct 2023 23:42:35 +0000 (01:42 +0200)]
respect magic trailing commas in return types (#3916)

13 months ago[pre-commit.ci] pre-commit autoupdate (#3915)
pre-commit-ci[bot] [Tue, 3 Oct 2023 17:19:53 +0000 (10:19 -0700)]
[pre-commit.ci] pre-commit autoupdate (#3915)

updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.0 → v1.5.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.0...v1.5.1)
- [github.com/pre-commit/mirrors-prettier: v3.0.1 → v3.0.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.1...v3.0.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
13 months agodocs: use LSP for SublimeText 4 (#3913)
Shreya Agarwal [Mon, 2 Oct 2023 14:35:57 +0000 (20:05 +0530)]
docs: use LSP for SublimeText 4 (#3913)

13 months agoBump pypa/cibuildwheel from 2.16.0 to 2.16.1 (#3911)
dependabot[bot] [Mon, 2 Oct 2023 06:40:00 +0000 (23:40 -0700)]
Bump pypa/cibuildwheel from 2.16.0 to 2.16.1 (#3911)

13 months agoFix up changelog (#3910)
Shantanu [Sun, 1 Oct 2023 22:41:32 +0000 (15:41 -0700)]
Fix up changelog (#3910)

13 months agoFix comments getting removed from inside parenthesized strings (#3909)
Eddie Darling [Sun, 1 Oct 2023 22:35:42 +0000 (15:35 -0700)]
Fix comments getting removed from inside parenthesized strings (#3909)

Since the id of the old leaf may be
the key to comments, the new leaf
must adopt the old comments

13 months agoTry newer clang in diff-shades job (#3904)
Jelle Zijlstra [Thu, 28 Sep 2023 16:10:01 +0000 (09:10 -0700)]
Try newer clang in diff-shades job (#3904)

13 months agoadd support for printing the diff of AST trees when running tests (#3902)
John Litborn [Thu, 28 Sep 2023 14:03:24 +0000 (16:03 +0200)]
add support for printing the diff of AST trees when running tests (#3902)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
13 months agoBump pypa/cibuildwheel from 2.15.0 to 2.16.0 (#3901)
dependabot[bot] [Mon, 25 Sep 2023 16:32:58 +0000 (09:32 -0700)]
Bump pypa/cibuildwheel from 2.15.0 to 2.16.0 (#3901)

Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.15.0 to 2.16.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.15.0...v2.16.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>
14 months agoadded the py311 to target-version config (#3898)
Syed Mohammad Ibrahim [Sun, 24 Sep 2023 02:23:03 +0000 (07:53 +0530)]
added the py311 to target-version config (#3898)

14 months agofix indentation of line breaks in long type hints by adding parens (#3899)
John Litborn [Fri, 22 Sep 2023 15:38:51 +0000 (17:38 +0200)]
fix indentation of line breaks in long type hints by adding parens (#3899)

* fix indentation of line breaks in long type hints by adding parentheses, and remove unnecessary parentheses

* add entry in CHANGES.md, make the style change only in preview mode

14 months agoRemove outdated mentions of runtime support of Python 3.7 (#3896)
Eero Vaher [Mon, 18 Sep 2023 17:35:07 +0000 (20:35 +0300)]
Remove outdated mentions of runtime support of Python 3.7 (#3896)

Remove mentions of runtime support of Python 3.7

Runtime support of Python 3.7 was removed in
b4dca26c7d93f930bbd5a7b552807370b60d4298 but a few mentions of it being
supported have remained until now.

14 months agoBump actions/checkout from 3 to 4 (#3893)
dependabot[bot] [Mon, 18 Sep 2023 13:48:27 +0000 (06:48 -0700)]
Bump actions/checkout from 3 to 4 (#3893)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
14 months agoBump docker/setup-qemu-action from 2 to 3 (#3890)
dependabot[bot] [Mon, 18 Sep 2023 13:48:11 +0000 (06:48 -0700)]
Bump docker/setup-qemu-action from 2 to 3 (#3890)

Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  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>
14 months agoBump docker/setup-buildx-action from 2 to 3 (#3892)
dependabot[bot] [Mon, 18 Sep 2023 13:48:03 +0000 (06:48 -0700)]
Bump docker/setup-buildx-action from 2 to 3 (#3892)

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  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>
14 months agoBump docker/login-action from 2 to 3 (#3891)
dependabot[bot] [Mon, 18 Sep 2023 13:47:43 +0000 (06:47 -0700)]
Bump docker/login-action from 2 to 3 (#3891)

Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  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>
14 months agoBump docker/build-push-action from 4 to 5 (#3894)
dependabot[bot] [Mon, 18 Sep 2023 13:47:26 +0000 (06:47 -0700)]
Bump docker/build-push-action from 4 to 5 (#3894)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  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>
14 months agoBump sphinx from 7.2.5 to 7.2.6 in /docs (#3895)
dependabot[bot] [Mon, 18 Sep 2023 13:47:02 +0000 (06:47 -0700)]
Bump sphinx from 7.2.5 to 7.2.6 in /docs (#3895)

Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.2.5 to 7.2.6.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.2.5...v7.2.6)

---
updated-dependencies:
- dependency-name: sphinx
  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>
14 months agoDocument disabling E704 (#3888)
Shantanu [Wed, 13 Sep 2023 07:40:41 +0000 (00:40 -0700)]
Document disabling E704 (#3888)

Linking #3887

14 months agomypyc build improvements (#3881)
Shantanu [Mon, 11 Sep 2023 20:36:37 +0000 (13:36 -0700)]
mypyc build improvements (#3881)

Build in separate jobs. This makes it clearer if e.g. a single Python
version is failing. It also potentially gets you more parallelism.

Build everything on push to master.

Only build Linux 3.8 and 3.11 wheels on PRs.

14 months agoBump docutils from 0.19 to 0.20.1 in /docs (#3699)
dependabot[bot] [Mon, 11 Sep 2023 20:20:36 +0000 (13:20 -0700)]
Bump docutils from 0.19 to 0.20.1 in /docs (#3699)

Bumps [docutils](https://docutils.sourceforge.io/) from 0.19 to 0.20.1.

14 months agoBump sphinx from 7.2.3 to 7.2.5 in /docs (#3882)
dependabot[bot] [Mon, 11 Sep 2023 20:19:57 +0000 (13:19 -0700)]
Bump sphinx from 7.2.3 to 7.2.5 in /docs (#3882)

Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.2.3 to 7.2.5.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.2.3...v7.2.5)

14 months agoFix broken url in editors.md (#3885)
Simon Alinder [Mon, 11 Sep 2023 16:47:47 +0000 (18:47 +0200)]
Fix broken url in editors.md (#3885)

* Fix broken url in editors.md

Update a link pointing to the Arch Linux repos.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
14 months agoBump actions/checkout from 3 to 4 (#3883)
dependabot[bot] [Mon, 11 Sep 2023 16:34:36 +0000 (09:34 -0700)]
Bump actions/checkout from 3 to 4 (#3883)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
14 months agoPrepare release 23.9.1 (#3878)
Jelle Zijlstra [Mon, 11 Sep 2023 00:35:41 +0000 (17:35 -0700)]
Prepare release 23.9.1 (#3878)

14 months agomypyc builds on PRs, skip mypyc wheels for 3.12 (#3870)
Shantanu [Sun, 10 Sep 2023 23:47:08 +0000 (16:47 -0700)]
mypyc builds on PRs, skip mypyc wheels for 3.12 (#3870)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
14 months agoPickle raw tuples in FileData cache (#3877)
Jelle Zijlstra [Sun, 10 Sep 2023 23:16:24 +0000 (16:16 -0700)]
Pickle raw tuples in FileData cache (#3877)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
14 months agoRe-export black.Mode (#3875)
Jelle Zijlstra [Sun, 10 Sep 2023 23:12:20 +0000 (16:12 -0700)]
Re-export black.Mode (#3875)

14 months agoIgnore aiohttp DeprecationWarning for 3.12 (#3876)
Jelle Zijlstra [Sun, 10 Sep 2023 22:45:13 +0000 (15:45 -0700)]
Ignore aiohttp DeprecationWarning for 3.12 (#3876)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
14 months agoUpgrade to Furo 2023.9.10 to fix docs build (#3873)
Hugo van Kemenade [Sun, 10 Sep 2023 21:36:25 +0000 (15:36 -0600)]
Upgrade to Furo 2023.9.10 to fix docs build (#3873)

14 months agoAdd mypyc test marks to new tests that patch (#3871)
Shantanu [Sun, 10 Sep 2023 14:53:27 +0000 (07:53 -0700)]
Add mypyc test marks to new tests that patch (#3871)

This is enough for me to get a clean test run on Python 3.9 with mypyc.
I have not been able to repro the pickle failures on either Linux or
macOS.

14 months agoBump RTD Python version from 3.8 to 3.11 (#3868)
Richard Si [Sat, 9 Sep 2023 16:08:28 +0000 (12:08 -0400)]
Bump RTD Python version from 3.8 to 3.11 (#3868)

Recent ReadTheDocs builds have been failing as our documentation dependencies (notably Sphinx) require Python 3.9+.

14 months agoAdd classifier for 3.12 (#3866)
Shantanu [Sat, 9 Sep 2023 05:16:25 +0000 (22:16 -0700)]
Add classifier for 3.12 (#3866)

14 months agoUpgrade mypy (#3864)
Jelle Zijlstra [Sat, 9 Sep 2023 05:16:15 +0000 (22:16 -0700)]
Upgrade mypy (#3864)

14 months agoPrepare release 23.9.0 (#3863)
Jelle Zijlstra [Sat, 9 Sep 2023 03:24:49 +0000 (20:24 -0700)]
Prepare release 23.9.0 (#3863)

14 months agoBlank line between nested and function def in stub files. (#3862)
konsti [Sat, 9 Sep 2023 01:51:27 +0000 (03:51 +0200)]
Blank line between nested and function def in stub files. (#3862)

The idea behind this change is that we stop looking into previous body to determine if there should be a blank before a function or class definition.

Input:

```python
import sys

if sys.version_info > (3, 7):
    class Nested1:
        assignment = 1
        def function_definition(self): ...
    def f1(self) -> str: ...
    class Nested2:
        def function_definition(self): ...
        assignment = 1
    def f2(self) -> str: ...

if sys.version_info > (3, 7):
    def nested1():
        assignment = 1
        def function_definition(self): ...
    def f1(self) -> str: ...
    def nested2():
        def function_definition(self): ...
        assignment = 1
    def f2(self) -> str: ...
```

Stable style
```python
import sys

if sys.version_info > (3, 7):
    class Nested1:
        assignment = 1
        def function_definition(self): ...

    def f1(self) -> str: ...

    class Nested2:
        def function_definition(self): ...
        assignment = 1
    def f2(self) -> str: ...

if sys.version_info > (3, 7):
    def nested1():
        assignment = 1
        def function_definition(self): ...

    def f1(self) -> str: ...
    def nested2():
        def function_definition(self): ...
        assignment = 1
    def f2(self) -> str: ...
```

In the stable formatting, we have a blank line sometimes, not depending on the previous statement on the same level, but on the last (potentially nested) statement in the previous body.

#2783/#3564 fixes this for classes in preview style:

```python
import sys

if sys.version_info > (3, 7):
    class Nested1:
        assignment = 1
        def function_definition(self): ...

    def f1(self) -> str: ...

    class Nested2:
        def function_definition(self): ...
        assignment = 1

    def f2(self) -> str: ...

if sys.version_info > (3, 7):
    def nested1():
        assignment = 1
        def function_definition(self): ...

    def f1(self) -> str: ...
    def nested2():
        def function_definition(self): ...
        assignment = 1
    def f2(self) -> str: ...
```

This PR additionally fixes this for function definitions:

```python
if sys.version_info > (3, 7):
    if sys.platform == "win32":
        assignment = 1
        def function_definition(self): ...

    def f1(self) -> str: ...
    if sys.platform != "win32":
        def function_definition(self): ...
        assignment = 1

    def f2(self) -> str: ...

if sys.version_info > (3, 8):
    if sys.platform == "win32":
        assignment = 1
        def function_definition(self): ...

    class F1: ...
    if sys.platform != "win32":
        def function_definition(self): ...
        assignment = 1

    class F2: ...
```

You can see the effect of this change on typeshed in https://github.com/konstin/typeshed/pull/1/files. As baseline, the preview mode changes without this PR are at https://github.com/konstin/typeshed/pull/2.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
14 months agoAvoid removing whitespace for walrus operators within subscripts (#3823)
Charlie Marsh [Fri, 8 Sep 2023 14:37:13 +0000 (16:37 +0200)]
Avoid removing whitespace for walrus operators within subscripts (#3823)

Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
14 months agoAdd Black PyCharm 2023.2 integration instructions (#3839)
Jonas Haag [Fri, 8 Sep 2023 01:35:07 +0000 (03:35 +0200)]
Add Black PyCharm 2023.2 integration instructions (#3839)

14 months agoblackd: fix mishandling of single character input (#3558)
KotlinIsland [Thu, 7 Sep 2023 07:11:50 +0000 (17:11 +1000)]
blackd: fix mishandling of single character input (#3558)

14 months agoApply ignore logic before symlink resolution (#3846)
Shantanu [Thu, 7 Sep 2023 04:06:07 +0000 (21:06 -0700)]
Apply ignore logic before symlink resolution (#3846)

This means, for instance, that a gitignored symlink cannot affect your
formatting. Fixes #3527, fixes #3826

14 months agoMove coverage configurations to `pyproject.toml` (#3858)
Johnny.H [Sun, 3 Sep 2023 02:46:23 +0000 (10:46 +0800)]
Move coverage configurations to `pyproject.toml` (#3858)

14 months agoBump furo from 2023.7.26 to 2023.8.19 in /docs + sphinx to 7.2.3 (#3848)
dependabot[bot] [Sat, 26 Aug 2023 13:44:17 +0000 (08:44 -0500)]
Bump furo from 2023.7.26 to 2023.8.19 in /docs + sphinx to 7.2.3 (#3848)

* Bump furo from 2023.7.26 to 2023.8.19 in /docs

Bumps [furo](https://github.com/pradyunsg/furo) from 2023.7.26 to 2023.8.19.
- [Release notes](https://github.com/pradyunsg/furo/releases)
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md)
- [Commits](https://github.com/pradyunsg/furo/compare/2023.07.26...2023.08.19)

---
updated-dependencies:
- dependency-name: furo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
* Move to sphinx 7.2.3 + fix intersphinx_mapping

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cooper Ry Lees <me@cooperlees.com>
15 months agoFix download badge link (#3853)
Kjell-Magnus [Tue, 22 Aug 2023 19:40:10 +0000 (21:40 +0200)]
Fix download badge link (#3853)

15 months agoImprove handling of root to get_sources (#3847)
Shantanu [Sat, 19 Aug 2023 15:13:05 +0000 (08:13 -0700)]
Improve handling of root to get_sources (#3847)

This is a little more type safe and a little cleaner

15 months agoRemove tox pin (#3844)
Marc Mueller [Sat, 19 Aug 2023 15:09:59 +0000 (17:09 +0200)]
Remove tox pin (#3844)

15 months agoImprove caching by comparing file hashes as fallback for mtime and size (#3821)
Marc Mueller [Sat, 19 Aug 2023 02:26:36 +0000 (04:26 +0200)]
Improve caching by comparing file hashes as fallback for mtime and size (#3821)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
15 months agoPin tox to fix CI (#3843)
Shantanu [Sat, 19 Aug 2023 01:32:47 +0000 (18:32 -0700)]
Pin tox to fix CI (#3843)

15 months ago[pre-commit.ci] pre-commit autoupdate (#3837)
pre-commit-ci[bot] [Wed, 16 Aug 2023 07:01:21 +0000 (00:01 -0700)]
[pre-commit.ci] pre-commit autoupdate (#3837)

15 months agoMake pre-commit do less (#3838)
Shantanu [Tue, 15 Aug 2023 13:51:26 +0000 (06:51 -0700)]
Make pre-commit do less (#3838)

15 months agoBump pypa/cibuildwheel from 2.14.1 to 2.15.0 (#3836)
dependabot[bot] [Mon, 14 Aug 2023 07:30:56 +0000 (00:30 -0700)]
Bump pypa/cibuildwheel from 2.14.1 to 2.15.0 (#3836)

15 months agoRemove ENV_PATH on Black action completion (#3759)
Christian Proud [Tue, 8 Aug 2023 18:12:05 +0000 (02:12 +0800)]
Remove ENV_PATH on Black action completion (#3759)

15 months ago[pre-commit.ci] pre-commit autoupdate (#3833)
pre-commit-ci[bot] [Tue, 8 Aug 2023 15:41:39 +0000 (08:41 -0700)]
[pre-commit.ci] pre-commit autoupdate (#3833)

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0 → v3.0.1](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0...v3.0.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
15 months agoMore concise formatting for dummy implementations (#3796)
Shantanu [Fri, 4 Aug 2023 02:11:21 +0000 (19:11 -0700)]
More concise formatting for dummy implementations (#3796)

15 months agoDocument pre-commit mirror (#3828)
Shantanu [Fri, 4 Aug 2023 01:46:08 +0000 (18:46 -0700)]
Document pre-commit mirror (#3828)

15 months ago[pre-commit.ci] pre-commit autoupdate (#3825)
pre-commit-ci[bot] [Tue, 1 Aug 2023 08:48:21 +0000 (01:48 -0700)]
[pre-commit.ci] pre-commit autoupdate (#3825)

15 months agoBump furo from 2023.5.20 to 2023.7.26 in /docs (#3824)
dependabot[bot] [Mon, 31 Jul 2023 15:43:32 +0000 (08:43 -0700)]
Bump furo from 2023.5.20 to 2023.7.26 in /docs (#3824)

Bumps [furo](https://github.com/pradyunsg/furo) from 2023.5.20 to 2023.7.26.
- [Release notes](https://github.com/pradyunsg/furo/releases)
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md)
- [Commits](https://github.com/pradyunsg/furo/compare/2023.05.20...2023.07.26)

---
updated-dependencies:
- dependency-name: furo
  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>
15 months agoAdd Lyft to organizations using black (#3818)
Aneesh Agrawal [Thu, 27 Jul 2023 21:50:51 +0000 (17:50 -0400)]
Add Lyft to organizations using black (#3818)

15 months agoRewrite mostly useless assert in test_trans.py (#3810)
freddiewanah [Thu, 27 Jul 2023 16:51:28 +0000 (02:51 +1000)]
Rewrite mostly useless assert in test_trans.py (#3810)

This PR updates an assert statement that checks the bounds of a
string-slicing operation. The updated assertion provides more accurate
and informative error handling by specifically checking the relative
values of the indices and the string length.

The original assertion was essentially checking if Python's string
slicing was behaving as expected. However, it wasn't providing any
guarantees or useful information about the bounds i and j themselves.

The updated assertion checks that the indices used for slicing are
within the bounds of the string. It will throw an AssertionError if the
indices are out of bounds or if i > j, providing a more specific and
informative error.

15 months agoFix typo in `target-version` param wrongly used in plural (#3817)
Yury V. Zaytsev [Thu, 27 Jul 2023 14:12:38 +0000 (16:12 +0200)]
Fix typo in `target-version` param wrongly used in plural (#3817)

16 months ago Fix unintentionally swapped words in index.md (#3809)
Pradeep Kumar [Mon, 24 Jul 2023 04:56:19 +0000 (21:56 -0700)]
 Fix unintentionally swapped words in index.md (#3809)

Fix unintentionally swapped words in index.md

I think the intent was to say "large changes in formatting", because it doesn't make sense to say "large formatting in changes".

16 months agoFixing pre-commit using pyyaml with broken version (#3804)
mihazagar [Sat, 22 Jul 2023 18:12:37 +0000 (20:12 +0200)]
Fixing pre-commit using pyyaml with broken version (#3804)

16 months agoSimplify empty line tracker (#3797)
Shantanu [Sat, 22 Jul 2023 15:49:51 +0000 (08:49 -0700)]
Simplify empty line tracker (#3797)

16 months agoImprovements to contributing docs (#3753)
rdrll [Tue, 18 Jul 2023 21:11:24 +0000 (14:11 -0700)]
Improvements to contributing docs (#3753)

16 months agoFix diff-shades comment missing newlines (#3799)
Richard Si [Tue, 18 Jul 2023 14:51:16 +0000 (10:51 -0400)]
Fix diff-shades comment missing newlines (#3799)

Preserving newlines is done differently when writing to $GITHUB_OUTPUT
over the deprecated :set-output: command.

16 months agoBump pypa/cibuildwheel from 2.13.1 to 2.14.1 (#3795)
dependabot[bot] [Mon, 17 Jul 2023 06:59:36 +0000 (23:59 -0700)]
Bump pypa/cibuildwheel from 2.13.1 to 2.14.1 (#3795)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
16 months agoFix most blib2to3 lint (#3794)
Shantanu [Mon, 17 Jul 2023 04:33:58 +0000 (21:33 -0700)]
Fix most blib2to3 lint (#3794)

16 months agoMaintainers += Shantanu Jain (hauntsaninja) (#3792)
Richard Si [Mon, 17 Jul 2023 01:16:12 +0000 (21:16 -0400)]
Maintainers += Shantanu Jain (hauntsaninja) (#3792)

16 months agoAvoid importing `IPython` if notebook cells do not contain magics (#3782)
Clément Robert [Mon, 17 Jul 2023 01:09:26 +0000 (03:09 +0200)]
Avoid importing `IPython` if notebook cells do not contain magics (#3782)

Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
16 months agoContinue to avoid Click typing issue (#3791)
Shantanu [Mon, 17 Jul 2023 00:35:19 +0000 (17:35 -0700)]
Continue to avoid Click typing issue (#3791)

16 months agoDocument shebang comment behaviour (#3787)
rax [Tue, 11 Jul 2023 19:16:43 +0000 (14:16 -0500)]
Document shebang comment behaviour (#3787)

16 months ago[pre-commit.ci] pre-commit autoupdate (#3780)
pre-commit-ci[bot] [Tue, 11 Jul 2023 14:50:52 +0000 (07:50 -0700)]
[pre-commit.ci] pre-commit autoupdate (#3780)

updates:
- [github.com/pycqa/flake8: 4.0.1 → 6.0.0](https://github.com/pycqa/flake8/compare/4.0.1...6.0.0)
- [github.com/pre-commit/mirrors-prettier: v2.7.1 → v3.0.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v3.0.0)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)

16 months agoFix lint in test_ipynb (#3781)
Shantanu [Tue, 11 Jul 2023 14:35:41 +0000 (07:35 -0700)]
Fix lint in test_ipynb (#3781)

Unblocks #3780

16 months agoRemove unneeded mypy dependencies (#3783)
Alex Waygood [Tue, 11 Jul 2023 14:21:36 +0000 (15:21 +0100)]
Remove unneeded mypy dependencies (#3783)

16 months agoRemove Python 3.7 from classifiers (#3784)
Nicola Soranzo [Tue, 11 Jul 2023 14:21:15 +0000 (15:21 +0100)]
Remove Python 3.7 from classifiers (#3784)

Follow-up on https://github.com/psf/black/pull/3765

16 months agoFix typo in CITATION.cff (#3779)
skykasko [Tue, 11 Jul 2023 02:38:01 +0000 (22:38 -0400)]
Fix typo in CITATION.cff (#3779)

Fix tiny typo in CITATION.cff

16 months agoPrepare release 23.7.0 (#3776)
Jelle Zijlstra [Tue, 11 Jul 2023 00:09:47 +0000 (17:09 -0700)]
Prepare release 23.7.0 (#3776)

16 months agoUnpin pytest-xdist (#3772)
Shantanu [Mon, 10 Jul 2023 18:49:40 +0000 (11:49 -0700)]
Unpin pytest-xdist (#3772)

16 months agoDisable coverage on pypy tests (#3777)
Shantanu [Mon, 10 Jul 2023 15:37:12 +0000 (08:37 -0700)]
Disable coverage on pypy tests (#3777)

The pypy tests are reeeeaaally slow. Maybe this will help.

16 months agoUpgrade to latest mypy (#3775)
Shantanu [Mon, 10 Jul 2023 00:04:50 +0000 (17:04 -0700)]
Upgrade to latest mypy (#3775)

16 months agoFix crash on type comment with trailing space (#3773)
Shantanu [Sun, 9 Jul 2023 23:28:26 +0000 (16:28 -0700)]
Fix crash on type comment with trailing space (#3773)

16 months agoFix removed comments in stub files (#3745)
Jelle Zijlstra [Sun, 9 Jul 2023 22:52:41 +0000 (15:52 -0700)]
Fix removed comments in stub files (#3745)

16 months agoImprove performance by skipping unnecessary normalisation (#3751)
Shantanu [Sun, 9 Jul 2023 22:24:01 +0000 (15:24 -0700)]
Improve performance by skipping unnecessary normalisation (#3751)

This speeds up black by about 40% when the cache is full

16 months agoAdd CITATION.cff file (#3723)
Kenneth Schackart [Sun, 9 Jul 2023 22:07:21 +0000 (15:07 -0700)]
Add CITATION.cff file (#3723)

16 months agoRun pyupgrade on blib2to3 and src (#3771)
Shantanu [Sun, 9 Jul 2023 22:05:01 +0000 (15:05 -0700)]
Run pyupgrade on blib2to3 and src (#3771)

16 months agoRemove click patch (#3768)
Shantanu [Sun, 9 Jul 2023 20:29:47 +0000 (13:29 -0700)]
Remove click patch (#3768)

Apparently this was only needed on Python 3.6. We've now dropped support
for 3.6 and 3.7. It's also not needed on new enough click.

16 months agoFix CI for Click typing issue (#3770)
Shantanu [Sun, 9 Jul 2023 15:14:38 +0000 (08:14 -0700)]
Fix CI for Click typing issue (#3770)

https://github.com/pallets/click/issues/2558

16 months agoDrop support for Python 3.7 (#3765)
Shantanu [Wed, 5 Jul 2023 17:08:04 +0000 (10:08 -0700)]
Drop support for Python 3.7 (#3765)

16 months agoBetter error message for invalid exclude types (#3764)
Shantanu [Wed, 5 Jul 2023 05:45:57 +0000 (22:45 -0700)]
Better error message for invalid exclude types (#3764)

16 months agoEnable `PYTHONWARNDEFAULTENCODING = 1` in CI (#3763)
Zac Hatfield-Dodds [Tue, 4 Jul 2023 23:38:39 +0000 (16:38 -0700)]
Enable `PYTHONWARNDEFAULTENCODING = 1` in CI (#3763)

16 months agoCI Test: Deprecating 'set-output' command (#3757)
rdrll [Fri, 30 Jun 2023 14:07:42 +0000 (07:07 -0700)]
CI Test: Deprecating 'set-output' command  (#3757)

16 months agoDoc: Developer reference update (#3755)
rdrll [Wed, 28 Jun 2023 20:45:56 +0000 (13:45 -0700)]
Doc: Developer reference update (#3755)

16 months agoFix a magical comment caused internal error (#3740)
rdrll [Tue, 27 Jun 2023 14:23:39 +0000 (07:23 -0700)]
Fix a magical comment caused internal error (#3740)

`is_type_comment` now specifically deals with general type comments for a leaf.
`is_type_ignore_comment` now handles type comments contains ignore annotation for a leaf
`is_type_ignore_comment_string` used to determine if a string is an ignore type comment