]>
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:
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.
Jon Dufresne [Tue, 28 Aug 2018 11:52:32 +0000 (04:52 -0700)]
Update pypi.python.org URL to pypi.org (#488)
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
Eli Treuherz [Tue, 28 Aug 2018 08:56:55 +0000 (09:56 +0100)]
Change my email in the README (#483)
Would prefer my personal email here. I realise it's still in the git log but c'est la vie.
Nikolaus Waxweiler [Mon, 27 Aug 2018 09:10:45 +0000 (10:10 +0100)]
ISSUE_TEMPLATE.md: Add mention of online formatter (#481)
People can try out https://black.now.sh/?version=master to test against master. That should make issue reporting easier.
See https://github.com/jpadilla/black-playground/issues/6#issuecomment-
416088863 . Thanks @jpadilla!
Zsolt Dollenstein [Sun, 26 Aug 2018 20:27:33 +0000 (21:27 +0100)]
fix lint errors
Zsolt Dollenstein [Sun, 26 Aug 2018 20:19:22 +0000 (21:19 +0100)]
add test case for preserving newlines from stdin
Jelle Zijlstra [Thu, 23 Aug 2018 18:55:29 +0000 (11:55 -0700)]
change some numeric behavior (#469)
Zsolt Dollenstein [Thu, 23 Aug 2018 11:55:04 +0000 (12:55 +0100)]
add changelog entry for #468
Jelle Zijlstra [Thu, 23 Aug 2018 11:52:07 +0000 (04:52 -0700)]
fix bracket match bug (#470)
* fix bracket match bug
* add missing test file
Jelle Zijlstra [Wed, 22 Aug 2018 04:10:59 +0000 (21:10 -0700)]
wrap atoms in invisible parens to split adjacent strings (#463)
Jelle Zijlstra [Mon, 20 Aug 2018 15:19:25 +0000 (08:19 -0700)]
fix misformatting of floats with leading zeros (#464)
Zsolt Dollenstein [Mon, 20 Aug 2018 13:47:58 +0000 (14:47 +0100)]
Support parsing of async generators in non-async functions (#165)
This is a new syntax added in python3.7, so black can't verify that reformatting will not change the ast unless black itself is run with 3.7. We'll need to change the error message black gives in this case. @ambv any ideas?
Fixes #125.
Jelle Zijlstra [Mon, 20 Aug 2018 04:02:06 +0000 (21:02 -0700)]
autodetect Python 3.6 on the basis of underscores (#461)
ceh [Sun, 19 Aug 2018 12:10:06 +0000 (14:10 +0200)]
Fix minor typos (#443)
Łukasz Langa [Sat, 18 Aug 2018 21:01:57 +0000 (14:01 -0700)]
committers += jelle
Łukasz Langa [Fri, 17 Aug 2018 17:59:32 +0000 (10:59 -0700)]
PyPI downloads badge
Łukasz Langa [Fri, 17 Aug 2018 17:38:28 +0000 (10:38 -0700)]
Nits around numeral normalization.
Łukasz Langa [Fri, 17 Aug 2018 17:29:19 +0000 (10:29 -0700)]
Put missing blank lines after return statements.
Łukasz Langa [Fri, 17 Aug 2018 17:17:37 +0000 (10:17 -0700)]
Make schedule_formatting logic less nested.
Łukasz Langa [Fri, 17 Aug 2018 17:14:10 +0000 (10:14 -0700)]
Simplify caching logic.
Łukasz Langa [Fri, 17 Aug 2018 17:11:01 +0000 (10:11 -0700)]
Update README with missing change log, etc.
Miroslav Shubernetskiy [Fri, 17 Aug 2018 16:01:29 +0000 (12:01 -0400)]
not enforcing python3.6 for precommit hook (#430)
this should allow precommit hooks to be used with py37
David Hotham [Fri, 17 Aug 2018 15:45:47 +0000 (16:45 +0100)]
Remove mappings from Vim plugin. (#417)
They clashed with standard mappings. Simplest just to let users define
their own.
Fixes #415
Benjamin Wohlwend [Fri, 17 Aug 2018 15:44:55 +0000 (17:44 +0200)]
added instructions for PyCharm File Watcher setup (#418)
* added instructions for PyCharm File Watcher setup
With these steps, PyCharm will run black on every file save.
* Update README.md
Jonty Wareing [Fri, 17 Aug 2018 15:39:34 +0000 (16:39 +0100)]
vim: Restore cursor/window position after format (#433)
Without this the cursor jumps to the top of the window after formatting
occurs.
José Padilla [Fri, 17 Aug 2018 15:36:57 +0000 (11:36 -0400)]
Add playground link (#437)
hauntsaninja [Fri, 17 Aug 2018 15:25:47 +0000 (08:25 -0700)]
Use atom-black plugin for Atom integration (#456)
Jelle Zijlstra [Fri, 17 Aug 2018 14:40:37 +0000 (07:40 -0700)]
write cache in --check mode (#453)
Fixes #448.
This diff makes us always write to the cache in normal mode, except
if the file is already in the cache, and it makes us write to the
cache in --check mode if the file is already well formatted.
I also fixed some related docstrings.
WriteBack.NO is now used only in tests.
Jelle Zijlstra [Fri, 17 Aug 2018 14:03:58 +0000 (07:03 -0700)]
normalize numeric literals (#454)
Fixes #452
I ended up making a couple of other normalizations to numeric literals
too (lowercase everything, don't allow leading or trailing . in floats,
remove redundant + sign in exponent). I don't care too much about those,
so I'm happy to change the behavior there.
For reference, here is Python's grammar for numeric literals:
https://docs.python.org/3/reference/lexical_analysis.html#numeric-literals
Zsolt Dollenstein [Sun, 22 Jul 2018 13:47:42 +0000 (14:47 +0100)]
Look at actual parenthesis when generating ignored leafs.
Fixes #385
Zsolt Dollenstein [Wed, 18 Jul 2018 21:07:54 +0000 (22:07 +0100)]
update to mypy 0.620 and make tests pass again
Fixes #408
Anthony Sottile [Mon, 9 Jul 2018 20:42:38 +0000 (13:42 -0700)]
pre-commit: use exclusion instead of ever-growing regex (#382)
Zsolt Dollenstein [Mon, 2 Jul 2018 17:02:13 +0000 (18:02 +0100)]
add change log entry
Zsolt Dollenstein [Mon, 2 Jul 2018 16:48:48 +0000 (17:48 +0100)]
Improve get_future_imports implementation.
Closes #389.
cclauss [Mon, 2 Jul 2018 16:05:40 +0000 (18:05 +0200)]
TravisCI: Test on production Python 3.7 and 3.8-dev (#393)
David Szotten [Sat, 23 Jun 2018 07:56:05 +0000 (08:56 +0100)]
Suggest BufWritePre instead of BufWritePost for vi (#376)
closes #321
Łukasz Langa [Thu, 21 Jun 2018 21:25:07 +0000 (14:25 -0700)]
18.6b4
Łukasz Langa [Thu, 21 Jun 2018 20:29:34 +0000 (13:29 -0700)]
Don't freeze when multiple comments directly precede # fmt: off
Fixes #371
Łukasz Langa [Wed, 20 Jun 2018 19:00:07 +0000 (12:00 -0700)]
18.6b3
Łukasz Langa [Wed, 20 Jun 2018 06:46:58 +0000 (23:46 -0700)]
More tests for `# fmt: off`
Two more known limitations that I don't feel like solving now. Probably very
low priority.
Łukasz Langa [Wed, 20 Jun 2018 06:08:10 +0000 (23:08 -0700)]
Trivial nits
Łukasz Langa [Wed, 20 Jun 2018 05:40:26 +0000 (22:40 -0700)]
Stop Click from crashing Black on invalid environments
Fixes #277
Łukasz Langa [Wed, 20 Jun 2018 03:44:47 +0000 (20:44 -0700)]
Move INDENT value to the postponed prefix
This makes blib2to3's tree output valid again (which was broken by the previous
fiddling with INDENT and DEDENT nodes).
Fixes #334
Łukasz Langa [Wed, 20 Jun 2018 00:32:41 +0000 (17:32 -0700)]
Use the separate pass for `# fmt: off` on all code
This removes the hacky exception-based handling that didn't work across
statement boundaries.
Fixes #335
Łukasz Langa [Tue, 19 Jun 2018 01:14:10 +0000 (18:14 -0700)]
Support `# fmt: off/on` pairs within brackets
Fixes #329
Łukasz Langa [Mon, 18 Jun 2018 23:18:45 +0000 (16:18 -0700)]
Update README with missing fixes in Change Log
Łukasz Langa [Mon, 18 Jun 2018 23:14:58 +0000 (16:14 -0700)]
Cache generated comments
Mariatta [Tue, 19 Jun 2018 03:12:49 +0000 (20:12 -0700)]
Add travis badge and GitHub Fork banner to docs (#365)
Rupert Bedford [Sat, 16 Jun 2018 20:14:51 +0000 (21:14 +0100)]
Add pyls-black to README (#361)
Jelle Zijlstra [Sat, 16 Jun 2018 18:53:45 +0000 (11:53 -0700)]
Add blank line after constants in stub file (#360)
Fixes #340
Mariatta [Fri, 15 Jun 2018 22:12:16 +0000 (15:12 -0700)]
Add code snippet for using black badge in .rst (#356)
Katrin Leinweber [Wed, 13 Jun 2018 18:49:47 +0000 (20:49 +0200)]
Harmonise with other instances (#347)