]>
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:
Jelle Zijlstra [Mon, 6 May 2019 15:09:04 +0000 (11:09 -0400)]
add to CHANGELOG
Jelle Zijlstra [Mon, 6 May 2019 13:13:25 +0000 (09:13 -0400)]
fix handling of comments in from imports (#829)
Fixes #671
Tom Christie [Sun, 5 May 2019 18:58:26 +0000 (19:58 +0100)]
Wrap `loop.run_in_executor` up in `asyncio.ensure_future` for reliable cross-platform berhavior. (#679)
Closes #494
Task completion should also remove the task from `pending`.
Only replicates on some platforms. (eg. Can replicate on Python 3.7+, with either Windows or whatever default Linux distro Travis uses.)
Hugo [Thu, 2 May 2019 19:19:52 +0000 (22:19 +0300)]
ambv/black -> python/black (#819)
Hugo [Thu, 2 May 2019 19:09:49 +0000 (22:09 +0300)]
Fix B011 (#820)
Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
Daniel Hahler [Thu, 2 May 2019 17:03:02 +0000 (19:03 +0200)]
minor: remove wrong comment in .flake8 (#788)
This is there since the initial commit, which did not have a setup.cfg.
Jelle Zijlstra [Mon, 25 Mar 2019 15:22:02 +0000 (08:22 -0700)]
Split the TRAILING_COMMA feature (#763)
Daniele Esposti [Wed, 20 Mar 2019 15:40:01 +0000 (15:40 +0000)]
Terget version option kebab-style (#770)
Thom Lu [Sun, 17 Mar 2019 16:27:50 +0000 (11:27 -0500)]
fix vim plugin for 19.3b0 (#755) (#766)
Jelle Zijlstra [Sat, 16 Mar 2019 18:35:18 +0000 (11:35 -0700)]
redo grammar selection, add test (#765)
Zsolt Dollenstein [Sat, 16 Mar 2019 16:26:50 +0000 (16:26 +0000)]
fix appveyor deploy section
Zsolt Dollenstein [Sat, 16 Mar 2019 14:00:59 +0000 (14:00 +0000)]
Use new github token for appveyor release
Jelle Zijlstra [Fri, 15 Mar 2019 18:42:24 +0000 (11:42 -0700)]
add change log entry (#764)
Jelle Zijlstra [Fri, 15 Mar 2019 17:39:08 +0000 (10:39 -0700)]
fix incorrect call (#762)
Andy Freeland [Thu, 14 Mar 2019 23:42:54 +0000 (16:42 -0700)]
Fix print() function on Python 2 (#754)
Fixes #752
Łukasz Langa [Thu, 14 Mar 2019 17:09:10 +0000 (18:09 +0100)]
v19.3b0
Jelle Zijlstra [Thu, 14 Mar 2019 16:31:27 +0000 (09:31 -0700)]
Add back --py36 as a deprecated option (#750)
This partially reverts commit
21ab37a5d92c866a289320cba7c4689df70b3342 .
Łukasz Langa [Thu, 14 Mar 2019 16:08:45 +0000 (17:08 +0100)]
Mention tab comment fixes, extend tests
Łukasz Langa [Thu, 14 Mar 2019 15:40:31 +0000 (16:40 +0100)]
Mention atomic cache creation in the change log
Greg Gandenberger [Thu, 14 Mar 2019 16:16:40 +0000 (11:16 -0500)]
Indicate that PyCharm instructions also work with IntelliJ (#681)
* Indicate that PyCharm instructions also work with IntelliJ
* Update README.md
Heaford [Thu, 14 Mar 2019 16:10:49 +0000 (16:10 +0000)]
Update README.md - Pycharm instructions not working for files path containing white spaces (#659)
Łukasz Langa [Thu, 14 Mar 2019 15:34:40 +0000 (16:34 +0100)]
Mention fix for #632 in the change log
Łukasz Langa [Thu, 14 Mar 2019 15:26:06 +0000 (16:26 +0100)]
Enhance the type comment patch
Russell Davis [Thu, 14 Mar 2019 12:45:38 +0000 (05:45 -0700)]
Fix PyCharm instructions in README (#701)
Without this change, PyCharm won't refresh the file in the editor after Black runs.
Hugo [Thu, 14 Mar 2019 12:41:42 +0000 (14:41 +0200)]
Fix PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead (#741)
Łukasz Langa [Thu, 14 Mar 2019 12:25:46 +0000 (13:25 +0100)]
Updates to the change log
Łukasz Langa [Thu, 14 Mar 2019 12:18:12 +0000 (13:18 +0100)]
Simplify the #606 patch
Thanks for the original patch to solve #509, @hauntsaninja.
Anders-Petter Ljungquist [Thu, 14 Mar 2019 12:39:42 +0000 (13:39 +0100)]
Changes default logger used by blib2to3 Driver (#732)
... to stop it from spamming the log when black is used as a library in another
python application.
When used indirectly by black the logger initiated in `driver.py` will emit
thousands of debug messages making the debug level of the root logger virtually
useless. By getting a named logger instead the verbosity of logging from this
module can easily be controlled by setting its log level.
Fixes #715
Łukasz Langa [Thu, 14 Mar 2019 12:17:34 +0000 (13:17 +0100)]
Update Pipfile environment
Łukasz Langa [Thu, 14 Mar 2019 12:16:36 +0000 (13:16 +0100)]
Add pip-wheel-metadata/ to ignores
Jelle Zijlstra [Fri, 8 Mar 2019 00:34:34 +0000 (16:34 -0800)]
remove Python implementation-specific versions (#736)
Sami Salonen [Thu, 7 Mar 2019 03:34:17 +0000 (05:34 +0200)]
Put cursor in last line if old position is invalid (#641)
Jelle Zijlstra [Sun, 24 Feb 2019 17:15:03 +0000 (09:15 -0800)]
remove --py36 (#724)
Fixes #703.
Jelle Zijlstra [Sat, 23 Feb 2019 06:00:40 +0000 (22:00 -0800)]
split long del statements into multiple lines (#698)
Fixes #693
programmer04 [Wed, 20 Feb 2019 19:11:14 +0000 (20:11 +0100)]
Fix example with well formated code (add missing comma) (#720)
sponsfreixes [Sat, 16 Feb 2019 06:18:58 +0000 (22:18 -0800)]
Improve examples to use 88 chars line length (#677) (#714)
The examples were wrapping at less than 88 characters, which is not the
default for black.
Jelle Zijlstra [Thu, 14 Feb 2019 20:23:56 +0000 (12:23 -0800)]
add missing aiohttp dep (#699)
add missing aiohttp dep
Also mark 3.8 as allowed to fail for now; it will fail due to an aiohttp bug.
Fixes #690
Greg Gandenberger [Thu, 14 Feb 2019 01:41:58 +0000 (19:41 -0600)]
Add PyCharm setup step (#680)
Zsolt Dollenstein [Thu, 7 Feb 2019 03:16:49 +0000 (03:16 +0000)]
Remove numeric underscore normalization (#696)
Jelle Zijlstra [Thu, 7 Feb 2019 02:43:50 +0000 (18:43 -0800)]
Add `--target-version` option to allow users to choose targeted Python versions (#618)
Hugo [Wed, 6 Feb 2019 16:07:31 +0000 (18:07 +0200)]
'sudo: required' no longer required https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration (#694)
Jakub Kadlubiec [Wed, 6 Feb 2019 16:05:40 +0000 (17:05 +0100)]
Properly close the code block in README (#695)
Nathan Goldbaum [Tue, 5 Feb 2019 18:50:59 +0000 (12:50 -0600)]
show how to exclude individual files in the exclude example (#663)
* show how to exclude individual files in the exclude example
* include comments in the regex
Kyle Sunden [Tue, 5 Feb 2019 03:12:51 +0000 (21:12 -0600)]
Update readthedocs.yml (#611)
I'm pretty sure the name shouldn't be 'jupyterhub'
Bryan Forbes [Tue, 5 Feb 2019 03:08:06 +0000 (21:08 -0600)]
Format pyi files correctly (#599)
Samuel Cormier-Iijima [Tue, 5 Feb 2019 02:55:01 +0000 (21:55 -0500)]
Fix indent calculation with tabs when computing prefixes (#595)
Closes #262
Jan Hnátek [Tue, 5 Feb 2019 02:42:42 +0000 (03:42 +0100)]
Fix location of expression.diff in the change notification message (#670)
Jimmy Jia [Tue, 29 Jan 2019 21:46:19 +0000 (16:46 -0500)]
chore: Fix noqa comment (#684)
Omitting the colon makes Flake8 ignore all errors, rather than the specific code.
Anthony Sottile [Sat, 19 Jan 2019 04:59:17 +0000 (20:59 -0800)]
Atomically write cache files (#674)
Anthony Sottile [Fri, 18 Jan 2019 20:52:56 +0000 (12:52 -0800)]
Turn off pre-commit's automatic parallelization for black (#675)
black internally uses multiprocessing for speed. In pre-commit 1.13.0 this is automated by the framework itself however if both pre-commit and black are forking processes this is slower and hits race-conditions in `black`.
Anthony Sottile [Sat, 12 Jan 2019 17:23:20 +0000 (09:23 -0800)]
delete some dead code (#669)
dead code detected via [dead](https://github.com/asottile/dead)
- **`KEYWORDS`**: introduced (unreferenced) in
e74117f172e29e8a980e2c9de929ad50d3769150
- **`FLOW_CONTROL`**: last referenced in
e9a940d69e789ce8caf1f3c1ded786dc102df2fd
"clean" command:
```
dead --exclude '^(tests/data/|docs/conf.py|blib2to3/)' | grep -Ev '^(visit_.*|show|_stop_signal|lib2to3_unparse) '
```
Utsav Shah [Sat, 5 Jan 2019 19:20:12 +0000 (11:20 -0800)]
Add support for special comments in multiline functions (#642)
Kenyon Ralph [Sat, 5 Jan 2019 18:46:07 +0000 (10:46 -0800)]
README.md: fix mailto link (#660)
Tsuyoshi Hombashi [Mon, 31 Dec 2018 13:03:31 +0000 (22:03 +0900)]
Improve an error message when failed to load pyproject.toml (#653)
Peter Stensmyr [Fri, 14 Dec 2018 15:01:50 +0000 (02:01 +1100)]
Fix multiprocessing support for Windows binary (#632)
* Fix multiprocessing support for Windows binary
The black and blackd binaries generated for Windows builds would fail on
reformatting multiple files due to a Windows-specific
multiprocessing issue. Fix by calling freeze_support() as
described in Python docs.
Tushar Chandra [Mon, 10 Dec 2018 08:15:57 +0000 (02:15 -0600)]
Add CORS support to blackd (#627)
See issue #622. Use aiohttp-cors to allow cross-origin requests to blackd,
and add a dependency on it to the pipfile.
Jim Brännlund [Thu, 29 Nov 2018 22:27:08 +0000 (23:27 +0100)]
Add .eggs to default exclusions (#629)
Jim Brännlund [Thu, 29 Nov 2018 21:43:22 +0000 (22:43 +0100)]
Silence expected stderr (#621)
* Silence expected stderr output during test
* Change based on PR comment
Scott Stevenson [Fri, 23 Nov 2018 06:08:20 +0000 (06:08 +0000)]
Reflect renaming of IPython notebook to Jupyter (#616)
Timo [Fri, 23 Nov 2018 06:07:08 +0000 (07:07 +0100)]
Add url to pep 257 in readme (#615)
Jelle Zijlstra [Tue, 20 Nov 2018 16:42:43 +0000 (08:42 -0800)]
Refactor Travis (#614)
Fixes #305
- Run separate jobs for mypy, self-formatting, flake8, and test runs.
- Don't run flake8 in 3.8 because it is broken (and we can't really expect flake8 to always keep up with 3.8 development).
- Fix unused variable in test
hauntsaninja [Tue, 13 Nov 2018 23:04:27 +0000 (15:04 -0800)]
Improves performance on large commented logical lines (#606)
Fixes #509
hauntsaninja [Tue, 13 Nov 2018 23:02:27 +0000 (15:02 -0800)]
Fix two types to be Optional (#607)
Jelle Zijlstra [Tue, 13 Nov 2018 21:23:56 +0000 (13:23 -0800)]
remove unused variable (#604)
Calum Lind [Thu, 8 Nov 2018 10:54:05 +0000 (10:54 +0000)]
Update isort config to use_parentheses instead of combine_as_imports (#547)
The `combine_as_imports=True` modifies isort style as a side-effect and was not the intended purpose of the suggested change in #250. The problem was that isort was actually replacing the parens with backslash and using `combine_as_imports=True` happened to also produce the same result.
The actual setting should be `use_parentheses` as this tells isort to use parenthesis for line continuation instead of \ for lines over the allotted line length limit and matches precisely what black is outputting.
jgirardet [Mon, 29 Oct 2018 10:17:37 +0000 (11:17 +0100)]
set entry to black (#553)
Chuck Wooters [Mon, 29 Oct 2018 10:10:32 +0000 (03:10 -0700)]
patch main to ensure click_patch() gets called (#572)
Felix Kohlgrüber [Mon, 29 Oct 2018 10:09:06 +0000 (11:09 +0100)]
delete unused code (#588)
Tony Narlock [Mon, 29 Oct 2018 10:07:50 +0000 (05:07 -0500)]
Typo (#561)
Zsolt Dollenstein [Sat, 27 Oct 2018 16:50:59 +0000 (17:50 +0100)]
use blackrelease github user for uploading release artifacts
Hugo [Fri, 19 Oct 2018 05:58:33 +0000 (08:58 +0300)]
Link to Bugbear's documentation (#577)
jgirardet [Tue, 9 Oct 2018 20:11:47 +0000 (22:11 +0200)]
Explicit # fmt: on/off indentation level (#554)
jgirardet [Thu, 27 Sep 2018 22:47:51 +0000 (00:47 +0200)]
add --skip-numeric-underscore-normalization in readme (#537)
Łukasz Langa [Thu, 27 Sep 2018 14:49:04 +0000 (07:49 -0700)]
Require attrs >= 18.1.0 to work around ctypes failure in Vim
Fixes #116, #539
Łukasz Langa [Wed, 26 Sep 2018 20:05:49 +0000 (13:05 -0700)]
v18.9b0
Cong [Wed, 26 Sep 2018 19:23:16 +0000 (05:23 +1000)]
Deploy windows binary (#422)
Łukasz Langa [Wed, 26 Sep 2018 19:18:45 +0000 (12:18 -0700)]
Remove whitespace at the beginning of the file
Fixes #399
Cong [Wed, 26 Sep 2018 19:07:35 +0000 (05:07 +1000)]
Deploy linux binary (#362) (#410)
Łukasz Langa [Wed, 26 Sep 2018 16:42:42 +0000 (09:42 -0700)]
Fix mangling pweave and Spyder IDE special comments
Fixes #532.
Łukasz Langa [Wed, 26 Sep 2018 16:20:44 +0000 (09:20 -0700)]
Make CHANGELOG more accurate
Łukasz Langa [Wed, 26 Sep 2018 15:53:56 +0000 (08:53 -0700)]
Move should_explode handling to bracket_split_build_line
Łukasz Langa [Wed, 26 Sep 2018 15:26:35 +0000 (08:26 -0700)]
Add trailing comma for single `as` imports, too
Łukasz Langa [Wed, 26 Sep 2018 14:40:23 +0000 (07:40 -0700)]
Refactor left_hand_split and right_hand_split to deduplicate line building logic
jgirardet [Wed, 26 Sep 2018 12:47:08 +0000 (14:47 +0200)]
add blackd ignore pyproject (#536)
Zsolt Dollenstein [Wed, 26 Sep 2018 12:26:50 +0000 (13:26 +0100)]
Add trailing comma when a single import doesn't fit on a line. (#504)
Fixes #250.
Zsolt Dollenstein [Wed, 26 Sep 2018 11:32:11 +0000 (12:32 +0100)]
Add underscores to numeric literals with more than six digits (#529)
Tim Swast [Tue, 25 Sep 2018 15:25:58 +0000 (08:25 -0700)]
Add .nox directories to default exclude (#525)
[Nox](https://nox.readthedocs.io/) is similar to Tox. It creates a .nox directory that contains virtualenv for testing with different Python versions.
Zsolt Dollenstein [Tue, 25 Sep 2018 15:01:56 +0000 (16:01 +0100)]
Uppercase digits in hex literals (#530)
Łukasz Langa [Tue, 18 Sep 2018 23:50:20 +0000 (16:50 -0700)]
Improve Poetry support
Sébastien Eustace [Tue, 18 Sep 2018 22:27:41 +0000 (17:27 -0500)]
Update Poetry section in pyproject.toml (#490)
Łukasz Langa [Tue, 18 Sep 2018 19:04:30 +0000 (12:04 -0700)]
Fix documentation build
Łukasz Langa [Mon, 17 Sep 2018 17:15:16 +0000 (10:15 -0700)]
Move things around in change log for the latest version to sort in rough notability order
Zsolt Dollenstein [Mon, 17 Sep 2018 17:02:25 +0000 (18:02 +0100)]
blackd: a HTTP server for blackening (#460)
Zsolt Dollenstein [Mon, 17 Sep 2018 11:03:21 +0000 (12:03 +0100)]
fix unstable formatting when unpacking big tuples (#514)
* fix unstable formatting when unpacking big tuples
* add changelog entry
mikehoyio [Mon, 10 Sep 2018 09:19:55 +0000 (10:19 +0100)]
Update atom plugin link to point to the python-black plugin (#505)
Zsolt Dollenstein [Sat, 8 Sep 2018 09:34:08 +0000 (10:34 +0100)]
Make sure `async for` is not broken up to separate lines (#503)
Fixes #372.
Jon Dufresne [Tue, 28 Aug 2018 12:00:57 +0000 (05:00 -0700)]
Add trove classifier for Python 3.7 support (#486)
Testing added in
3bdd42389128bbbe8b64a8e050563f09bff99979 .
Jon Dufresne [Tue, 28 Aug 2018 12:00:05 +0000 (05:00 -0700)]
Prefer https:// links where available (#485)
Jon Dufresne [Tue, 28 Aug 2018 11:59:00 +0000 (04:59 -0700)]
Add build & dist directories to .gitignore (#487)
Generated when running the command "python3 setup.py bdist_wheel".
Jon Dufresne [Tue, 28 Aug 2018 11:58:21 +0000 (04:58 -0700)]
Include license file in the generated wheel package (#484)
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:
https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
Helps project comply with its own license:
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.