]> 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
6 years agoMake Vim plugin work on macOS/Linux again
Łukasz Langa [Thu, 12 Apr 2018 06:29:00 +0000 (23:29 -0700)]
Make Vim plugin work on macOS/Linux again

6 years agoFix placement of dictionary unpacking inside dict literals
Łukasz Langa [Thu, 12 Apr 2018 06:19:03 +0000 (23:19 -0700)]
Fix placement of dictionary unpacking inside dict literals

Fixes #111

6 years agoRemove debug print
Łukasz Langa [Thu, 12 Apr 2018 06:09:07 +0000 (23:09 -0700)]
Remove debug print

6 years agoFix parsing of unaligned standalone comments
Łukasz Langa [Thu, 12 Apr 2018 06:07:56 +0000 (23:07 -0700)]
Fix parsing of unaligned standalone comments

Fixes #99
Fixes #112

6 years agoAdd windows support for black vim plugin (#123)
Zsolt Dollenstein [Thu, 12 Apr 2018 02:55:47 +0000 (03:55 +0100)]
Add windows support for black vim plugin (#123)

This is mostly a best effort support, and I only tested it on my
machine.

6 years ago18.4a1
Łukasz Langa [Thu, 12 Apr 2018 02:22:16 +0000 (19:22 -0700)]
18.4a1

6 years agoDon't omit escaping the second consecutive quote
Łukasz Langa [Wed, 11 Apr 2018 23:25:47 +0000 (16:25 -0700)]
Don't omit escaping the second consecutive quote

This would produce invalid code for strings like `"x = ''; y = \"\""`.

6 years agoFix an embarrassing UnboundLocalError
Łukasz Langa [Wed, 11 Apr 2018 22:49:14 +0000 (15:49 -0700)]
Fix an embarrassing UnboundLocalError

6 years agoAutomatic parentheses management
Łukasz Langa [Thu, 5 Apr 2018 04:45:01 +0000 (21:45 -0700)]
Automatic parentheses management

Fixes #4

6 years agoteam += zsol
Łukasz Langa [Mon, 9 Apr 2018 22:09:45 +0000 (15:09 -0700)]
team += zsol

6 years agoConsole formatting nits
Łukasz Langa [Mon, 9 Apr 2018 22:09:22 +0000 (15:09 -0700)]
Console formatting nits

6 years agoAdd support for all valid string literals (#115)
Zsolt Dollenstein [Mon, 9 Apr 2018 21:36:40 +0000 (22:36 +0100)]
Add support for all valid string literals (#115)

6 years agoREADME: Add instructions for PyCharm (#81)
Steven M. Vascellaro [Mon, 9 Apr 2018 19:00:37 +0000 (15:00 -0400)]
README: Add instructions for PyCharm (#81)

Instructions to add `black` to "External Tools" in PyCharm.

Adapted from https://kirankoduru.github.io/python/pylint-with-pycharm.html

6 years agoDocument that W503 is not compliant with PEP 8 (#114)
Mika⠙ [Fri, 6 Apr 2018 15:02:11 +0000 (17:02 +0200)]
Document that W503 is not compliant with PEP 8 (#114)

6 years agoteam += autophagy
Łukasz Langa [Thu, 5 Apr 2018 21:27:27 +0000 (14:27 -0700)]
team += autophagy

6 years agoLink VCS integration in documentation
Łukasz Langa [Thu, 5 Apr 2018 09:21:26 +0000 (02:21 -0700)]
Link VCS integration in documentation

6 years ago[blib2to3] Support non-ASCII identifiers
Łukasz Langa [Thu, 5 Apr 2018 04:38:25 +0000 (21:38 -0700)]
[blib2to3] Support non-ASCII identifiers

This support isn't *exactly* right per PEP 3131 as the regex engine is a bit
too limited for that and I didn't want to spend time on Other_ID_Start and
Other_ID_Continue unless they're actually needed.

Hopefully this doesn't slow it down too much.

6 years agoHandle arbitrary number of backslashes during string normalization (#110)
Zsolt Dollenstein [Thu, 5 Apr 2018 09:28:46 +0000 (10:28 +0100)]
Handle arbitrary number of backslashes during string normalization (#110)

6 years agoSimplify delimiter logic
Łukasz Langa [Wed, 4 Apr 2018 23:33:10 +0000 (16:33 -0700)]
Simplify delimiter logic

6 years agoacks += asottile
Łukasz Langa [Wed, 4 Apr 2018 22:11:48 +0000 (15:11 -0700)]
acks += asottile

6 years agoUpdate change log
Łukasz Langa [Wed, 4 Apr 2018 22:09:05 +0000 (15:09 -0700)]
Update change log

6 years agoUpdate `language-version` => `language_version` (#106)
Anthony Sottile [Wed, 4 Apr 2018 22:09:34 +0000 (15:09 -0700)]
Update `language-version` => `language_version` (#106)

6 years agoAdd a description for the pre-commit hook (#107)
Anthony Sottile [Wed, 4 Apr 2018 22:07:57 +0000 (15:07 -0700)]
Add a description for the pre-commit hook (#107)

This string appears on the hooks page on pre-commit.com.

6 years agoHandle backslashes in raw strings while normalizing (#105)
Zsolt Dollenstein [Wed, 4 Apr 2018 20:20:46 +0000 (21:20 +0100)]
Handle backslashes in raw strings while normalizing (#105)

In raw strings, a single backslash means a literal backslash. It is also used to escape quotes if it precedes them. This means it is impossible to change the quote type for strings that contain an unescaped version of the other quote type.
Fixes #100

6 years agoAdd integration for pre-commit.com (#104)
Łukasz Langa [Wed, 4 Apr 2018 20:19:30 +0000 (13:19 -0700)]
Add integration for pre-commit.com (#104)

Fixes #103

6 years agoacks += ikatanic
Łukasz Langa [Wed, 4 Apr 2018 16:57:12 +0000 (09:57 -0700)]
acks += ikatanic

6 years ago3.6.5 grammar pickles
Łukasz Langa [Tue, 3 Apr 2018 21:53:31 +0000 (14:53 -0700)]
3.6.5 grammar pickles

6 years agoFix --check for multiple files (#101)
Ivan Katanić [Wed, 4 Apr 2018 16:53:34 +0000 (17:53 +0100)]
Fix --check for multiple files (#101)

6 years agoAdd --quiet
Łukasz Langa [Tue, 3 Apr 2018 06:15:57 +0000 (23:15 -0700)]
Add --quiet

Fixes #78

6 years ago[blib2to3] Make the grammar pickles faster
Łukasz Langa [Tue, 3 Apr 2018 01:28:24 +0000 (18:28 -0700)]
[blib2to3] Make the grammar pickles faster

6 years ago18.4a0
Łukasz Langa [Sun, 1 Apr 2018 07:30:45 +0000 (00:30 -0700)]
18.4a0

6 years agoacks += zsol
Łukasz Langa [Sun, 1 Apr 2018 07:14:30 +0000 (00:14 -0700)]
acks += zsol

6 years agoIgnore `# fmt: off` as inline comment
Łukasz Langa [Sun, 1 Apr 2018 06:50:27 +0000 (23:50 -0700)]
Ignore `# fmt: off` as inline comment

Black cannot currently support this form due to its generator-based nature.
This is mostly a problem for existing `# yapf: disable` usage as trailing
comment.

Fixes #95

6 years agoDon't insert trailing commas after standalone comments
Łukasz Langa [Sun, 1 Apr 2018 06:32:11 +0000 (23:32 -0700)]
Don't insert trailing commas after standalone comments

6 years agoClarify why Black prefers double quotes
Łukasz Langa [Sun, 1 Apr 2018 03:54:26 +0000 (20:54 -0700)]
Clarify why Black prefers double quotes

6 years agoImprove test coverage a bit
Łukasz Langa [Sat, 31 Mar 2018 22:45:55 +0000 (15:45 -0700)]
Improve test coverage a bit

6 years agoSupport --diff for both files and stdin
Łukasz Langa [Sat, 31 Mar 2018 09:24:01 +0000 (02:24 -0700)]
Support --diff for both files and stdin

Fixes #87

6 years agoDescribe how string literals are handled (#96)
Zsolt Dollenstein [Sat, 31 Mar 2018 21:42:48 +0000 (22:42 +0100)]
Describe how string literals are handled (#96)

6 years agoLines now break before all delimiters (#94)
Mika⠙ [Sat, 31 Mar 2018 18:52:11 +0000 (20:52 +0200)]
Lines now break before all delimiters (#94)

The default behaviour is that now all lines break *before* delimiters,
instead of afterwards. The special cases for this are commas and
behaviour around args.

Resolves #73

6 years agoNormalize string quotes (#75)
Zsolt Dollenstein [Sat, 31 Mar 2018 18:21:25 +0000 (19:21 +0100)]
Normalize string quotes (#75)

* Normalize string quotes

Convert single-quoted strings to double-quoted. Convert triple single-quoted strings to triple double-quoted. Do not touch any strings where conversion would increase the number of backslashes.

Fixes #51.

* reformat Black itself

6 years agoDocument asyncio fixes
Łukasz Langa [Sat, 31 Mar 2018 08:02:05 +0000 (01:02 -0700)]
Document asyncio fixes

6 years agoGraceful shutdown in case of cancellation
Łukasz Langa [Sat, 31 Mar 2018 02:31:05 +0000 (19:31 -0700)]
Graceful shutdown in case of cancellation

6 years agoMerge pull request #89 from willingc/doc-conda
Carol Willing [Fri, 30 Mar 2018 13:36:40 +0000 (09:36 -0400)]
Merge pull request #89 from willingc/doc-conda

use conda for readthedocs

6 years agofloat python in doc build
Carol Willing [Fri, 30 Mar 2018 10:17:44 +0000 (06:17 -0400)]
float python in doc build

6 years agoMention fix for #22 in changelog
Łukasz Langa [Fri, 30 Mar 2018 04:20:50 +0000 (21:20 -0700)]
Mention fix for #22 in changelog

6 years agoMore comments tests
Łukasz Langa [Fri, 30 Mar 2018 04:19:20 +0000 (21:19 -0700)]
More comments tests

6 years agoRemove standalone comment hacks
Łukasz Langa [Fri, 30 Mar 2018 04:06:18 +0000 (21:06 -0700)]
Remove standalone comment hacks

Now Black properly splits standalone comments within bracketed expressions.
They are treated as another type of split instead of being bolted on with
whitespace prefixes.

A related fix: now multiple comments might appear after a given leaf.

Fixes #22

6 years agouse conda for rtd
Carol Willing [Fri, 30 Mar 2018 00:31:02 +0000 (20:31 -0400)]
use conda for rtd

6 years agoRemove the test-specific .flake8 file
Łukasz Langa [Thu, 29 Mar 2018 02:45:48 +0000 (19:45 -0700)]
Remove the test-specific .flake8 file

6 years agoFix --check with multiple files (#88)
Josh Holland [Thu, 29 Mar 2018 22:21:18 +0000 (23:21 +0100)]
Fix --check with multiple files (#88)

Passing multiple files to --check would previously result in the report
being printed as if the files had been written to.

6 years agoUse imperative language in all docstrings
Łukasz Langa [Thu, 29 Mar 2018 02:31:53 +0000 (19:31 -0700)]
Use imperative language in all docstrings

6 years agoShow __str__ in UnformattedLines
Łukasz Langa [Thu, 29 Mar 2018 02:31:40 +0000 (19:31 -0700)]
Show __str__ in UnformattedLines

6 years agoAdd DebugVisitor.show() to documentation under utility functions
Łukasz Langa [Thu, 29 Mar 2018 02:28:31 +0000 (19:28 -0700)]
Add DebugVisitor.show() to documentation under utility functions

6 years agoMore minor documentation-related changes
Łukasz Langa [Thu, 29 Mar 2018 02:03:16 +0000 (19:03 -0700)]
More minor documentation-related changes

6 years agoAuto-generated documentation-related fixes
Łukasz Langa [Thu, 29 Mar 2018 00:43:18 +0000 (17:43 -0700)]
Auto-generated documentation-related fixes

6 years agodocument classes, functions, exceptions (#82)
Carol Willing [Wed, 28 Mar 2018 17:12:27 +0000 (10:12 -0700)]
document classes, functions, exceptions (#82)

6 years agoFirst stab at the Vim plugin!
Łukasz Langa [Tue, 27 Mar 2018 09:31:51 +0000 (02:31 -0700)]
First stab at the Vim plugin!

6 years agoAllow up to two empty lines on module level and single empty lines otherwise
Łukasz Langa [Tue, 27 Mar 2018 05:54:08 +0000 (22:54 -0700)]
Allow up to two empty lines on module level and single empty lines otherwise

Fixes #74

6 years agoIt's obviously not just me, yo. Thanks y'all 🖤
Łukasz Langa [Tue, 27 Mar 2018 04:29:49 +0000 (21:29 -0700)]
It's obviously not just me, yo. Thanks y'all 🖤

6 years agoDon't crash and burn on empty lines with trailing whitespace
Łukasz Langa [Tue, 27 Mar 2018 01:41:25 +0000 (18:41 -0700)]
Don't crash and burn on empty lines with trailing whitespace

Fixes #80

6 years agoBig documentation deduplication
Łukasz Langa [Tue, 27 Mar 2018 01:37:36 +0000 (18:37 -0700)]
Big documentation deduplication

Most is not generated from README.md so we no longer have to remember to update
two Change Logs, and so on!

If we decide to diverge from the README in Sphinx, that's fine, too. We will
just create dedicated documents.

6 years agoAdd Emacs text editor integration to the README. (#79)
Artem Malyshev [Mon, 26 Mar 2018 20:41:31 +0000 (23:41 +0300)]
Add Emacs text editor integration to the README. (#79)

6 years agoImprove pypi badge template
Łukasz Langa [Mon, 26 Mar 2018 09:27:14 +0000 (02:27 -0700)]
Improve pypi badge template

6 years agoSelf-host PyPI-related badges
Łukasz Langa [Mon, 26 Mar 2018 09:11:16 +0000 (02:11 -0700)]
Self-host PyPI-related badges

6 years agoCustom MIT license badge
Łukasz Langa [Mon, 26 Mar 2018 08:53:20 +0000 (01:53 -0700)]
Custom MIT license badge

6 years agoInclude .out file(s) in the distribution (#77)
Daniel M. Capella [Mon, 26 Mar 2018 08:43:18 +0000 (04:43 -0400)]
Include .out file(s) in the distribution (#77)

> FileNotFoundError: [Errno 2] No such file or directory: '/home/user/pkg/build/black/src/black-18.3a4/tests/debug_visitor.out'

6 years agoAny logo you like
Łukasz Langa [Mon, 26 Mar 2018 08:14:10 +0000 (01:14 -0700)]
Any logo you like

6 years agoConsistently style the name (#76)
Hugo [Mon, 26 Mar 2018 08:00:31 +0000 (11:00 +0300)]
Consistently style the name (#76)

6 years ago18.3a4
Łukasz Langa [Mon, 26 Mar 2018 07:57:02 +0000 (00:57 -0700)]
18.3a4

6 years agoCoverage reporting
Łukasz Langa [Mon, 26 Mar 2018 07:49:21 +0000 (00:49 -0700)]
Coverage reporting

6 years agoThe site is cleaner without the 'Related' cruft.
Łukasz Langa [Mon, 26 Mar 2018 07:42:29 +0000 (00:42 -0700)]
The site is cleaner without the 'Related' cruft.

6 years agoReadTheDocs badge
Łukasz Langa [Sun, 25 Mar 2018 01:08:54 +0000 (18:08 -0700)]
ReadTheDocs badge

6 years agoNot actually using the Model T logo after all
Łukasz Langa [Sun, 25 Mar 2018 01:05:37 +0000 (18:05 -0700)]
Not actually using the Model T logo after all

6 years agoLink to ReadTheDocs
Łukasz Langa [Sun, 25 Mar 2018 01:03:50 +0000 (18:03 -0700)]
Link to ReadTheDocs

6 years agoCompress the logos better
Łukasz Langa [Sun, 25 Mar 2018 00:58:47 +0000 (17:58 -0700)]
Compress the logos better

6 years agoMore documentation fixes for ReadTheDocs
Łukasz Langa [Sun, 25 Mar 2018 00:28:05 +0000 (17:28 -0700)]
More documentation fixes for ReadTheDocs

6 years agoDocumentation fixes for ReadTheDocs
Łukasz Langa [Sun, 25 Mar 2018 00:15:48 +0000 (17:15 -0700)]
Documentation fixes for ReadTheDocs

6 years agoImplement `# fmt: off` and `# fmt: on`
Łukasz Langa [Sat, 24 Mar 2018 00:15:20 +0000 (17:15 -0700)]
Implement `# fmt: off` and `# fmt: on`

Fixes #5

6 years agoblib2to3: Never put prefixes on INDENT leaves either
Łukasz Langa [Sat, 24 Mar 2018 00:12:20 +0000 (17:12 -0700)]
blib2to3: Never put prefixes on INDENT leaves either

6 years agoIntroduce DebugVisitor.show() + tests
Łukasz Langa [Sat, 24 Mar 2018 00:07:20 +0000 (17:07 -0700)]
Introduce DebugVisitor.show() + tests

6 years agoadd sphinx docs skeleton (#71)
Carol Willing [Fri, 23 Mar 2018 21:27:04 +0000 (14:27 -0700)]
add sphinx docs skeleton (#71)

6 years agoOmit extra space in Sphinx auto-attribute comments
Łukasz Langa [Fri, 23 Mar 2018 15:56:55 +0000 (08:56 -0700)]
Omit extra space in Sphinx auto-attribute comments

This feature of Sphinx is described in:
http://www.sphinx-doc.org/en/stable/ext/autodoc.html#directive-autoattribute

Fixes #68

6 years agoProperle space complex expressions in default values of typed arguments
Łukasz Langa [Fri, 23 Mar 2018 06:52:21 +0000 (23:52 -0700)]
Properle space complex expressions in default values of typed arguments

Fixes #60

6 years agoIgnore typing error around Node/Leaf
Łukasz Langa [Fri, 23 Mar 2018 06:22:46 +0000 (23:22 -0700)]
Ignore typing error around Node/Leaf

6 years agoAutomatic detection of deprecated Python 2 forms of print and exec
Łukasz Langa [Fri, 23 Mar 2018 06:17:40 +0000 (23:17 -0700)]
Automatic detection of deprecated Python 2 forms of print and exec

Note: if those are handled, you can't use --safe because this check is using
Python 3.6+ builtin AST.

Fixes #49

6 years agoOnly return exit code 1 when --check is used
Łukasz Langa [Fri, 23 Mar 2018 00:33:44 +0000 (17:33 -0700)]
Only return exit code 1 when --check is used

Also, output less confusing messages in --check.

Fixes #50

6 years agoMention delimiter_split() in CannotSplit docstring
Łukasz Langa [Fri, 23 Mar 2018 00:15:28 +0000 (17:15 -0700)]
Mention delimiter_split() in CannotSplit docstring

6 years agoMention fix for #59
Łukasz Langa [Fri, 23 Mar 2018 00:15:08 +0000 (17:15 -0700)]
Mention fix for #59

6 years agoDon't remove the single trailing comma from square bracket indexing
Łukasz Langa [Thu, 22 Mar 2018 23:33:50 +0000 (16:33 -0700)]
Don't remove the single trailing comma from square bracket indexing

Fixes #59

6 years agoBadges. BADGES. BAAADDDGGGEEESSS!!!
Łukasz Langa [Thu, 22 Mar 2018 04:46:37 +0000 (21:46 -0700)]
Badges. BADGES. BAAADDDGGGEEESSS!!!

6 years agoOmit extra space in kwarg unpacking if it's an argument
Łukasz Langa [Thu, 22 Mar 2018 01:31:58 +0000 (18:31 -0700)]
Omit extra space in kwarg unpacking if it's an argument

Fixes #46

6 years agoDon't omit whitespace when the factor is not a math operator
Łukasz Langa [Thu, 22 Mar 2018 01:23:46 +0000 (18:23 -0700)]
Don't omit whitespace when the factor is not a math operator

Fixes #55

6 years agoPin attrs to >=17.4.0 for @dataclass use
Łukasz Langa [Thu, 22 Mar 2018 00:55:36 +0000 (17:55 -0700)]
Pin attrs to >=17.4.0 for @dataclass use

Fixes #54

6 years agoMention how stdio handling works
Łukasz Langa [Thu, 22 Mar 2018 00:37:16 +0000 (17:37 -0700)]
Mention how stdio handling works

Fixes #57

6 years agoExtra newlines in code examples
Łukasz Langa [Thu, 22 Mar 2018 00:14:29 +0000 (17:14 -0700)]
Extra newlines in code examples

6 years agoTwine 1.11.0
Łukasz Langa [Thu, 22 Mar 2018 00:06:19 +0000 (17:06 -0700)]
Twine 1.11.0

6 years ago18.3a3
Łukasz Langa [Wed, 21 Mar 2018 02:05:51 +0000 (19:05 -0700)]
18.3a3

6 years agoFix tests on 3.7
Łukasz Langa [Wed, 21 Mar 2018 02:04:49 +0000 (19:04 -0700)]
Fix tests on 3.7

6 years agoMention joslarson.black-vscode
Łukasz Langa [Wed, 21 Mar 2018 01:57:33 +0000 (18:57 -0700)]
Mention joslarson.black-vscode

Fixes #45

6 years agoTreat comments less magically
Łukasz Langa [Wed, 21 Mar 2018 01:42:29 +0000 (18:42 -0700)]
Treat comments less magically