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
Peter Bengtsson
8406fcd9af
correct email for Peter Bengtsson ( #302 )
2018-06-05 17:48:53 -07:00
Łukasz Langa
26b92e66ac
acks += beterbe
2018-06-05 10:10:15 -07:00
Łukasz Langa
ed50737290
18.6b1
2018-06-05 09:49:06 -07:00
Łukasz Langa
d638d56e0e
Fix unnecessary parentheses when a line contains multiline strings
...
Fixes #232
2018-06-04 21:27:51 -07:00
Łukasz Langa
23a00f0515
Fix long trivial assignments being wrapped in unnecessary parentheses
...
Fixes #273
2018-06-04 20:24:50 -07:00
Łukasz Langa
728e5a2f1e
Properly format unified diff
...
Previously we weren't using timestamps.
2018-06-04 18:07:03 -07:00
Zsolt Dollenstein
00a302560b
Preserve line endings when formatting a file in place ( #288 )
2018-06-04 15:52:06 -07:00
Łukasz Langa
4c352ad4be
Add --verbose
and report excluded paths in it, too
...
Fixes #283
2018-06-04 12:09:18 -07:00
Anthony Sottile
ecb3d8c472
python_version
=> language_version
(#296 )
...
Noticed this in `pytest`'s config -- `python_version` isn't a thing :D
2018-06-03 11:46:59 -07:00
Łukasz Langa
435aa7ac4a
Reorder command-line options
2018-05-31 19:24:09 -07:00
Mika⠙
51756a405c
Added --include and --exclude cli options ( #281 )
...
These 2 options allow you to pass in regular expressions that determine
whether files/directories are included or excluded in the recursive file
search.
Fixes #270
2018-05-31 17:51:15 -07:00
Łukasz Langa
1b189f6cde
acks += Stavros; document fix, add to Pipfile
2018-05-31 10:53:26 -07:00
Łukasz Langa
8ebbd26888
Add --skip-string-normalization
...
Fixes #118
2018-05-30 12:56:16 -07:00
LukasDrude
608019dffb
Improve doc regarding PyCharm keyboard shortcut ( #271 )
2018-05-29 14:50:15 -07:00
Łukasz Langa
b2067aabbf
18.5b1
2018-05-29 02:07:09 -07:00
Łukasz Langa
059cb12270
Change minor whitespace in "Usage"
2018-05-29 02:04:57 -07:00
Łukasz Langa
ad01a51868
Mention fix for #196 in the README
2018-05-29 01:12:16 -07:00
Łukasz Langa
2057bf6fae
Clean up PEP 257 support
...
I documented the new behavior, added it to the change log, greatly expanded
tests, added support for inner defs and classes, and added Luka to ACKS.
Fixes #196
2018-05-29 00:47:52 -07:00
Łukasz Langa
6d924b01e4
Reword isort configuration, add --combine-as
2018-05-28 23:16:01 -07:00
Jason Friedland
d320e283aa
Add isort args to README ( #268 )
2018-05-28 23:06:02 -07:00
Mahmoud Hossam
fd9bd07fe5
Add instructions for running Black on save in Vim ( #255 )
2018-05-26 13:01:17 -07:00
Łukasz Langa
bbed104e6d
Reword --pyi and --py36 documentation
2018-05-23 11:52:41 -07:00
Carl Meyer
230f1d277c
Update changelog for PR 249.
2018-05-23 12:13:13 -06:00
wouter bolsterlee
c7bc22388d
tweak grammar in docs about fluent interfaces ( #247 )
...
...to make the sentence a bit easier to understand.
2018-05-22 08:54:28 -07:00
Łukasz Langa
658eb7161d
Fix unstable formatting on trailers omitted from line splitting with comments
...
Fixes #238
2018-05-22 00:38:31 -07:00
Łukasz Langa
9a6c88c7f4
Fix invalid code on stars in long from-imports being wrapped in parentheses
...
Fixes #234
2018-05-21 16:37:29 -07:00
Łukasz Langa
808754af18
Fix optional parentheses being removed within # fmt: off
sections
...
Fixes #224
2018-05-21 15:21:14 -07:00
Hugo
86e1c36507
Sentence case ( #242 )
2018-05-21 13:20:41 -07:00
Łukasz Langa
91de9ea6e3
Fix invalid code in an omitted trailer on large expressions
...
Fixes #237
2018-05-21 12:29:36 -07:00
Łukasz Langa
f1f12284e0
Mention fix for pickle files
2018-05-21 11:22:08 -07:00
Carol Willing
5fd1e91bff
Add navigation ( #229 )
2018-05-21 09:58:04 -07:00
Hugo
34646945e7
README updates ( #235 )
...
* Consistent titles in 'Sentence case'
* Add console Markdown formatting
* Fix macOS typos
* Fix Homebrew typo
2018-05-20 09:50:41 -07:00
Łukasz Langa
7395f55564
18.5b0
2018-05-17 17:32:43 -07:00
Łukasz Langa
180bc06ede
Don't explode a one-element collection ending with a comma.
2018-05-17 17:32:43 -07:00
Łukasz Langa
dd4477b701
Always explode data structure literals
...
Fixes #152
2018-05-17 17:32:43 -07:00
Łukasz Langa
dafa12f10b
Consistent empty lines in the README
2018-05-17 17:32:43 -07:00
Hynek Schlawack
e94bda11c3
Fix double colon ( #216 )
2018-05-16 23:38:47 -04:00
Łukasz Langa
3ad0f5855c
Fix multiline strings unnecessarily wrapped in optional parentheses
...
Fixes #215
2018-05-16 19:19:48 -07:00
Łukasz Langa
665ed8a240
Explain automatic parentheses management better
2018-05-16 15:26:36 -07:00
Łukasz Langa
8c74d7901f
Implement fluent interfaces
...
Fixes #67
2018-05-16 15:21:40 -07:00
Łukasz Langa
1dadeef47a
Consider in
, not in
, is
, is not
operators
2018-05-16 14:46:43 -07:00
Łukasz Langa
96e68f0341
Report progress on multiple files incrementally
2018-05-16 11:45:32 -07:00
Łukasz Langa
b4cee97c99
Link fix to issue
2018-05-15 22:15:28 -07:00
Łukasz Langa
5a47fd13cc
Don't use optional parentheses in unnecessary situations
...
If an expression starts or ends with a bracket and only contains a single
delimiter, don't wrap it in additional optional parentheses. We can use the
brackets for the split.
Fixes #177
Fixes #193
2018-05-15 22:13:16 -07:00
Łukasz Langa
2b3206dc23
Document .pyi formatting
2018-05-15 13:05:19 -07:00
Łukasz Langa
3eab6d3131
acks += miggaiowski
2018-05-15 01:08:51 -07:00
Łukasz Langa
3eea3aad86
Don't explode trailers that fit in a single line
2018-05-15 01:05:39 -07:00
Łukasz Langa
5db5697eb1
acks += JelleZijlstra
2018-05-15 01:05:39 -07:00
jose nazario
0da97417ed
fix a spelling typo ( #206 )
2018-05-12 18:44:30 +01:00
Łukasz Langa
262230a13b
Document string prefix standardization
2018-05-09 15:45:38 -07:00
Vishwas B Sharma
2c6413f2b2
Adding Jupyter Notebook magic command ( #200 )
2018-05-09 18:26:56 -04:00
Łukasz Langa
32e2f20e9a
Show badge for stable docs, not latest
2018-05-09 00:07:27 -07:00
Łukasz Langa
e400fe8582
Clarify language in README
2018-05-08 21:57:09 -07:00
Łukasz Langa
793450aeb0
Automatic management of parentheses in assignments
...
Fixes #140
Note: this is an evolution but the end result needs to be different. See
cantfit.py for some good examples on bad formatting caused by this change.
2018-05-08 21:57:09 -07:00
Łukasz Langa
7811f957f3
Delimit multiline expressions according to math operator priority
...
Fixes #148
2018-05-08 21:57:09 -07:00
Łukasz Langa
1747c388bb
Discover whether a file is Python 3.6+ also by stars in calls
...
Fixes a pathological situation where if a function signature used a trailing
comma but was later reformatted to a single line (with the trailing comma
removed), Black would change its mind whether a file is Python
3.6-compatible between runs.
2018-05-08 21:57:09 -07:00
Łukasz Langa
0967dfcbeb
Don't fail the entire right_hand_split if an optional split failed
...
Fixes splitting long import lines with only a single name.
2018-05-08 10:11:16 -07:00
Łukasz Langa
cfb003f51c
Make parentheses invisible recursively in atoms
...
This fixes non-deterministic formatting when multiple pairs of removable
parentheses are used.
Fixes #183
2018-05-07 11:13:55 -07:00
Łukasz Langa
c6a6cfd3a2
Update README (change log; acks += skapil; acks += tiran)
2018-05-07 10:29:37 -07:00
Łukasz Langa
21ccf44b27
More detailed isort configuration explanation
2018-05-07 10:10:54 -07:00
David Szotten
e84dee52d9
Should this be "_cede_ control" ( #187 )
2018-05-02 20:25:23 -07:00
Zsolt Dollenstein
9f096d5536
Format subscriptions in a PEP-8 compliant way ( #178 )
...
Fixes #157
2018-04-30 22:49:30 -07:00
Łukasz Langa
0f3ecb7e50
18.4a4 hotfix: don't populate the cache on --check
...
Fixes #175
2018-04-27 14:04:46 -07:00
Łukasz Langa
25abcea6c5
Reword inspiration
...
Fixes #167
2018-04-26 17:13:17 -07:00
Łukasz Langa
1445bea97e
18.4a3
2018-04-24 13:52:12 -07:00
Łukasz Langa
09f5ee3a19
Split imports like isort
...
Fixes #127
Partially addresses #152
2018-04-24 13:44:28 -07:00
Łukasz Langa
b250aed47b
Do not enforce empty lines after control flow statements
...
Fixes #90
2018-04-24 12:42:46 -07:00
Łukasz Langa
9d671bdbe1
Split ternary expressions
...
Fixes #141
2018-04-24 12:21:56 -07:00
Jonas Obrist
92957a41e3
Make cache work with non-default line lenghts ( #163 )
2018-04-24 11:56:50 -07:00
Łukasz Langa
52fda8b0e9
Support sticky standalone comments (comments preceding defs, classes, and decorators)
...
Fixes #56
Fixes #154
2018-04-24 11:50:31 -07:00
Josh Holland
337a4199f9
Add install instructions for Vim plugin ( #131 )
2018-04-24 09:36:28 -07:00
Łukasz Langa
2ba1d7ef7a
Improve change log message
2018-04-23 16:17:12 -07:00
Łukasz Langa
54d707e10a
Allow standalone comments to close code blocks
...
Fixes #16
Fixes #32
2018-04-23 16:17:12 -07:00
Łukasz Langa
06e95b1e9b
Show full path on diffs
...
Fixes #130
2018-04-23 12:00:03 -07:00
Łukasz Langa
2e52a2b3ec
acks += csurfer
2018-04-23 11:48:58 -07:00
Łukasz Langa
d73166c42b
Move delimiter token skipping to BracketTracker
...
Also, added lambda argument delimiter skipping.
Fixes #133
2018-04-21 15:08:36 -07:00
Jonas Obrist
5cfea54c15
fixed cache file location in readme ( #150 )
2018-04-21 12:15:13 -07:00
Łukasz Langa
e00e3d5bb2
acks += ojii
2018-04-18 22:17:18 -07:00
Jonas Obrist
639b62dcd3
Added caching ( #136 )
...
Black will cache already formatted files using their file size and
modification timestamp. The cache is per-user and will always be used
unless Black is used with --diff or with code provided via standard
input.
2018-04-18 17:27:07 -07:00
jgirardet
f7fd36b228
add sublack plugin for sublimetext ( #137 )
2018-04-17 13:24:29 -07:00
Zsolt Dollenstein
68cc9786d3
Add changelog entry
2018-04-17 20:46:40 +01:00
Łukasz Langa
a764f1bb3b
Generalize star expression handling
...
Fixes #132
2018-04-16 01:34:15 -07:00
Łukasz Langa
f294cc272c
18.4a2
2018-04-13 12:06:40 -07:00
Zsolt Dollenstein
2104b7cdcb
Handle unnecessarily escaped strings ( #128 )
2018-04-13 11:31:23 -07:00
Łukasz Langa
c071af761e
Consistent empty lines in Change Log
2018-04-11 23:36:50 -07:00
Łukasz Langa
51635ef68c
Advertise Windows support in Vim plugin
2018-04-11 23:29:57 -07:00
Łukasz Langa
19d69b34e5
Fix placement of dictionary unpacking inside dict literals
...
Fixes #111
2018-04-11 23:22:22 -07:00
Łukasz Langa
9138a75b75
Fix parsing of unaligned standalone comments
...
Fixes #99
Fixes #112
2018-04-11 23:22:22 -07:00
Łukasz Langa
cb5aadad74
Automatic parentheses management
...
Fixes #4
2018-04-11 01:36:18 -07:00
Łukasz Langa
e8ba352777
team += zsol
2018-04-09 15:09:45 -07:00
Łukasz Langa
6f6762dba0
Console formatting nits
2018-04-09 15:09:22 -07:00
Steven M. Vascellaro
ecc294741e
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
2018-04-09 12:00:37 -07:00
Mika⠙
00cadd43ee
Document that W503 is not compliant with PEP 8 ( #114 )
2018-04-06 08:02:11 -07:00
Łukasz Langa
60a8333857
team += autophagy
2018-04-05 14:27:27 -07:00
Łukasz Langa
b7f4ace0d1
acks += asottile
2018-04-04 15:11:48 -07:00
Łukasz Langa
f20e1f61f8
Update change log
2018-04-04 15:10:58 -07:00
Anthony Sottile
12a095f038
Update language-version
=> language_version
( #106 )
2018-04-04 15:09:34 -07:00
Łukasz Langa
f8e9544c93
Add integration for pre-commit.com ( #104 )
...
Fixes #103
2018-04-04 13:19:30 -07:00
Łukasz Langa
0f99987c0a
acks += ikatanic
2018-04-04 09:57:12 -07:00
Łukasz Langa
21c32d80b6
Add --quiet
...
Fixes #78
2018-04-02 23:17:39 -07:00
Łukasz Langa
65c52a655f
18.4a0
2018-04-01 00:30:45 -07:00
Łukasz Langa
a7ff469869
acks += zsol
2018-04-01 00:14:30 -07:00
Łukasz Langa
2f260514f6
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
2018-04-01 00:08:09 -07:00
Łukasz Langa
fcaaf955be
Clarify why Black prefers double quotes
2018-03-31 20:56:29 -07:00
Łukasz Langa
a20a3eeb0f
Support --diff for both files and stdin
...
Fixes #87
2018-03-31 15:46:09 -07:00
Zsolt Dollenstein
a42aef7806
Describe how string literals are handled ( #96 )
2018-03-31 14:42:48 -07:00
Mika⠙
3455389e48
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
2018-03-31 11:52:11 -07:00
Łukasz Langa
4dfec562ed
Document asyncio fixes
2018-03-31 01:02:05 -07:00
Łukasz Langa
fa159bb357
Mention fix for #22 in changelog
2018-03-29 21:20:50 -07:00
Łukasz Langa
10bb45c35e
First stab at the Vim plugin!
2018-03-27 02:31:51 -07:00
Łukasz Langa
e5f8251704
Allow up to two empty lines on module level and single empty lines otherwise
...
Fixes #74
2018-03-26 22:55:56 -07:00
Łukasz Langa
1f445a01c8
It's obviously not just me, yo. Thanks y'all 🖤
2018-03-26 21:29:49 -07:00
Łukasz Langa
fc869039eb
Don't crash and burn on empty lines with trailing whitespace
...
Fixes #80
2018-03-26 18:41:25 -07:00
Łukasz Langa
611737f9cc
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.
2018-03-26 18:39:02 -07:00
Artem Malyshev
5c6a0dd03f
Add Emacs text editor integration to the README. ( #79 )
2018-03-26 13:41:31 -07:00
Łukasz Langa
4b8823e563
Self-host PyPI-related badges
2018-03-26 02:15:13 -07:00
Łukasz Langa
74f8c1316c
Custom MIT license badge
2018-03-26 01:53:29 -07:00
Łukasz Langa
b38a3b94bd
Any logo you like
2018-03-26 01:27:15 -07:00
Hugo
70a9e5618a
Consistently style the name ( #76 )
2018-03-26 01:00:31 -07:00
Łukasz Langa
c5fd578279
18.3a4
2018-03-26 00:57:02 -07:00
Łukasz Langa
42519f8b32
Coverage reporting
2018-03-26 00:49:21 -07:00
Łukasz Langa
1f18cd2ba5
ReadTheDocs badge
2018-03-24 18:08:54 -07:00
Łukasz Langa
0095701ff9
Not actually using the Model T logo after all
2018-03-24 18:05:37 -07:00
Łukasz Langa
9e31754284
Documentation fixes for ReadTheDocs
2018-03-24 17:15:48 -07:00
Łukasz Langa
0677a53937
Implement # fmt: off
and # fmt: on
...
Fixes #5
2018-03-23 17:16:08 -07:00
Łukasz Langa
475179a53a
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
2018-03-23 08:56:55 -07:00
Łukasz Langa
cf6f577928
Properle space complex expressions in default values of typed arguments
...
Fixes #60
2018-03-22 23:52:21 -07:00
Łukasz Langa
6316e293ac
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
2018-03-22 23:19:23 -07:00
Łukasz Langa
8de552eb4f
Only return exit code 1 when --check is used
...
Also, output less confusing messages in --check.
Fixes #50
2018-03-22 17:33:44 -07:00
Łukasz Langa
584d51a042
Mention fix for #59
2018-03-22 17:15:08 -07:00
Łukasz Langa
c9f8983936
Badges. BADGES. BAAADDDGGGEEESSS!!!
2018-03-21 21:46:37 -07:00
Łukasz Langa
df7aacb43e
Omit extra space in kwarg unpacking if it's an argument
...
Fixes #46
2018-03-21 18:35:25 -07:00
Łukasz Langa
92b377556e
Don't omit whitespace when the factor is not a math operator
...
Fixes #55
2018-03-21 18:34:16 -07:00
Łukasz Langa
79b720ca9f
Mention how stdio handling works
...
Fixes #57
2018-03-21 18:00:32 -07:00
Łukasz Langa
afff418fa1
Extra newlines in code examples
2018-03-21 17:14:29 -07:00
Łukasz Langa
fd3400d44c
Mention joslarson.black-vscode
...
Fixes #45
2018-03-20 18:57:33 -07:00
Łukasz Langa
b1a7600b0a
Treat comments less magically
2018-03-20 18:55:19 -07:00
Łukasz Langa
5bc40707af
Fix numpy-style array indexing for real
...
Fixes #33
2018-03-20 18:54:33 -07:00
Łukasz Langa
e911c79809
Don't remove single empty lines outside of bracketed expressions
...
Fixes #19
2018-03-20 18:54:19 -07:00
Łukasz Langa
d9c6b99073
Restore ability to format code with legacy usage of async
as a name
...
Fixes #20
Fixes #42
2018-03-20 18:54:01 -07:00
Łukasz Langa
155aa71db0
Update README with stdin information
2018-03-20 18:53:26 -07:00
Łukasz Langa
94f50c1461
Update formatting example
2018-03-17 02:13:11 -07:00
Łukasz Langa
9d78a57187
18.3a2
2018-03-17 01:26:30 -07:00
Łukasz Langa
68c71b621f
Don't fold postscriptum standalone comment into last statement
...
This happened when the last statement was a simple statement.
Fixes #18
Fixes #28
2018-03-17 00:59:28 -07:00
Łukasz Langa
b9c06a0d23
Don't put four empty lines between top-level functions split by a comment
2018-03-16 22:14:43 -07:00
Łukasz Langa
7ad9445caf
Describe fix for #21 in README
2018-03-16 21:55:41 -07:00
Łukasz Langa
9c9f6eb6d5
Remove the trailing comma if there is only one argument to a call
...
This makes it consistent with removing the trailing comma when multiple
arguments to a call fit in a single line. It also makes it a tiny bit more
likely that an expression will fit a line that didn't use to.
2018-03-16 17:32:55 -07:00
Łukasz Langa
2854794249
Add words
2018-03-16 01:05:36 -07:00
Łukasz Langa
1ec7544ab7
Bump version, update README with current fixes
2018-03-16 00:01:22 -07:00
Łukasz Langa
5fb5cc8c2b
Only use trailing commas in function signatures when it's safe
...
Trailing commas after * or ** in a function signature are only safe for Python 3.6
code. So now Black checks whether the file was already Python 3.6 to begin
with. If so, trailing commas are used in such cases. Otherwise, they're not.
When * and ** don't appear in a function signature, the trailing comma is
always safe.
Fixes #8
2018-03-15 19:44:09 -07:00
Łukasz Langa
c26daa4fd5
Don't split on for-loop variable unpacks
...
Fixes #23
2018-03-15 19:23:19 -07:00
Łukasz Langa
4c480bcac2
Add --check
...
Fixes #9
2018-03-15 16:02:57 -07:00
Osaetin Daniel
80f9b14a30
Fixed malformed link to pathlib
2018-03-15 15:04:00 -07:00
Łukasz Langa
5370714c96
Fix spurious space after unary expression
...
This happened when the operand was a complex expression.
Fixes #15
2018-03-15 14:54:37 -07:00
Łukasz Langa
174fc47b78
Fix spurious space in parenthesized set expressions
...
Fixes #7
2018-03-15 11:28:59 -07:00
Łukasz Langa
e1e89091d1
Fix invalid spacing of dots in relative imports
...
Fixes #6
Fixes #13
2018-03-15 11:21:53 -07:00
Hugo
de860cccf1
Use HTTPS
2018-03-15 11:07:33 -07:00
Hugo
3539d910bc
Update code formatting
...
!XXX doesn't render as code formatting, XXX does
2018-03-15 10:57:16 -07:00
Łukasz Langa
4c086b137e
testimonials += 1 # kennethreitz
2018-03-14 14:38:33 -07:00
Łukasz Langa
e74117f172
Initial commit
2018-03-14 12:55:32 -07:00