Zsolt Dollenstein
25d24a10a4
Add trailing comma when a single import doesn't fit on a line. ( #504 )
...
Fixes #250 .
2018-09-26 13:26:50 +01:00
Zsolt Dollenstein
5f9eb9e4f7
Add underscores to numeric literals with more than six digits ( #529 )
2018-09-26 12:32:11 +01:00
Tim Swast
2d99573b34
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.
2018-09-25 16:25:58 +01:00
Zsolt Dollenstein
bbf38400ce
Uppercase digits in hex literals ( #530 )
2018-09-25 16:01:56 +01:00
Łukasz Langa
9db8d4b2d7
Move things around in change log for the latest version to sort in rough notability order
2018-09-17 10:15:16 -07:00
Zsolt Dollenstein
a82f186787
blackd: a HTTP server for blackening ( #460 )
2018-09-17 10:02:25 -07:00
Zsolt Dollenstein
80500748a7
fix unstable formatting when unpacking big tuples ( #514 )
...
* fix unstable formatting when unpacking big tuples
* add changelog entry
2018-09-17 12:03:21 +01:00
mikehoyio
6f5e1277e9
Update atom plugin link to point to the python-black plugin ( #505 )
2018-09-10 10:19:55 +01:00
Zsolt Dollenstein
08f1cdd00b
Make sure async for
is not broken up to separate lines ( #503 )
...
Fixes #372 .
2018-09-08 10:34:08 +01:00
Jon Dufresne
6027cca10d
Prefer https:// links where available ( #485 )
2018-08-28 13:00:05 +01:00
Jon Dufresne
e069017178
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
2018-08-28 12:52:32 +01:00
Eli Treuherz
7f3fb65346
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.
2018-08-28 09:56:55 +01:00
Jelle Zijlstra
a37abdcbc5
change some numeric behavior ( #469 )
2018-08-23 11:55:29 -07:00
Zsolt Dollenstein
c67feaf04f
add changelog entry for #468
2018-08-23 12:55:04 +01:00
Jelle Zijlstra
8b340e2102
wrap atoms in invisible parens to split adjacent strings ( #463 )
2018-08-21 21:10:59 -07:00
Jelle Zijlstra
b719d85ccc
autodetect Python 3.6 on the basis of underscores ( #461 )
2018-08-19 21:02:06 -07:00
Łukasz Langa
0c77c58722
committers += jelle
2018-08-18 14:01:57 -07:00
Łukasz Langa
0bf683a659
PyPI downloads badge
2018-08-17 10:59:32 -07:00
Łukasz Langa
b7e216f554
Update README with missing change log, etc.
2018-08-17 10:13:19 -07:00
David Hotham
3fb4516872
Remove mappings from Vim plugin. ( #417 )
...
They clashed with standard mappings. Simplest just to let users define
their own.
Fixes #415
2018-08-17 16:45:47 +01:00
Benjamin Wohlwend
450983e333
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
2018-08-17 16:44:55 +01:00
José Padilla
1e56d02cad
Add playground link ( #437 )
2018-08-17 16:36:57 +01:00
hauntsaninja
9c8caecdd6
Use atom-black plugin for Atom integration ( #456 )
2018-08-17 16:25:47 +01:00
Zsolt Dollenstein
e94a41f92a
Look at actual parenthesis when generating ignored leafs.
...
Fixes #385
2018-07-22 15:30:02 +01:00
Zsolt Dollenstein
3316dce22d
add change log entry
2018-07-02 18:02:13 +01:00
David Szotten
579a8f9344
Suggest BufWritePre instead of BufWritePost for vi ( #376 )
...
closes #321
2018-06-23 00:56:05 -07:00
Łukasz Langa
d93e726806
Don't freeze when multiple comments directly precede # fmt: off
...
Fixes #371
2018-06-21 14:03:01 -07:00
Łukasz Langa
2dfa69bb7f
Stop Click from crashing Black on invalid environments
...
Fixes #277
2018-06-19 22:55:57 -07:00
Łukasz Langa
e1ef57a29e
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
2018-06-19 20:44:47 -07:00
Łukasz Langa
df2ae3bbe6
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
2018-06-19 17:32:41 -07:00
Łukasz Langa
8a8c58252c
Support # fmt: off/on
pairs within brackets
...
Fixes #329
2018-06-18 22:37:46 -07:00
Łukasz Langa
013cb2b374
Update README with missing fixes in Change Log
2018-06-18 22:37:46 -07:00
Rupert Bedford
d6872cdf87
Add pyls-black to README ( #361 )
2018-06-16 13:14:51 -07:00
Mariatta
af8fd24068
Add code snippet for using black badge in .rst ( #356 )
2018-06-15 15:12:16 -07:00
Katrin Leinweber
7462ef3ea6
Harmonise with other instances ( #347 )
2018-06-13 11:49:47 -07:00
Joseph Larson
fb34c9e195
Remove reference to deprecated Visual Studio Code extension ( #343 )
2018-06-12 13:36:55 -07:00
Zsolt Dollenstein
efcd039482
Fix string normalization eating all backslashes above 3
2018-06-10 09:44:41 +01:00
Łukasz Langa
2228890d62
Cache child sibling lookups
...
Removes catastrophically quadratic behavior on nodes with very many siblings.
2018-06-09 18:52:46 -07:00
Łukasz Langa
d240ca25ea
Make is_complex_subscript()
ignore list literals
...
This fixes catastrophically quadratic behavior on long lists.
2018-06-09 16:04:09 -07:00
Zsolt Dollenstein
5d0a469e8e
Fix string normalization sometimes producing invalid fstrings ( #327 )
2018-06-09 12:30:49 -07:00
Łukasz Langa
5623581e09
Update README with missing Change Log entries
2018-06-08 12:05:44 -07:00
Łukasz Langa
8482d38fb4
Return early from comment placement calculation on lines without comments
2018-06-08 12:00:53 -07:00
Zsolt Dollenstein
7f3678885f
fix handling of empty triple quoted strings ( #314 )
2018-06-07 11:41:34 -07:00
Łukasz Langa
82d09eda09
Fix link
2018-06-06 17:29:31 -07:00
Łukasz Langa
7ba4725993
Trim TOC to fit in two lines again
2018-06-06 17:07:07 -07:00
Łukasz Langa
489d00ed8f
Support pyproject.toml
...
Fixes #65
2018-06-06 17:02:10 -07:00
Łukasz Langa
92a150d9e4
Fix improper unmodified file caching when -S
was used
...
This will also future-proof the cache to changes to FileMode.
2018-06-06 15:46:30 -07:00
Matthew Walster
e5f5d54a22
vim: add "--skip-string-normalization" support ( #310 )
...
Since 18.6b0 was released, there has been a new option to skip string
normalization when Black is called, but it wasn't able to be specified
from within the vim plugin. This commit adds that functionality.
Tested with g:black_skip_string_normalization set to 0 (off) and 1 (on).
2018-06-06 15:45:17 -07:00
Brett Cannon
4ad7c9c107
List the Python extension for VS Code as an editor integration ( #308 )
2018-06-06 15:40:44 -07:00
Hugo
9e9ee449b4
Link to GitHub + HTTPS + typos ( #303 )
...
* Link to GitHub, update 3.6 minor version
* http -> https
* Fix typos
* The Black style for Black, the project, is italics
2018-06-06 09:50:08 -07:00