Ł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
Zsolt Dollenstein
80bd2b3134
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
2018-03-31 11:21:25 -07:00
Łukasz Langa
4dfec562ed
Document asyncio fixes
2018-03-31 01:02:05 -07:00
Łukasz Langa
ba61bfe386
Graceful shutdown in case of cancellation
2018-03-30 19:38:08 -07:00
Carol Willing
2ad642754b
Merge pull request #89 from willingc/doc-conda
...
use conda for readthedocs
2018-03-30 09:36:40 -04:00
Carol Willing
3c62b9cada
float python in doc build
2018-03-30 06:17:44 -04:00
Łukasz Langa
fa159bb357
Mention fix for #22 in changelog
2018-03-29 21:20:50 -07:00
Łukasz Langa
17b22642f5
More comments tests
2018-03-29 21:19:20 -07:00
Łukasz Langa
c55d08d0b9
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
2018-03-29 21:10:00 -07:00
Carol Willing
d2f29f86f4
use conda for rtd
2018-03-29 20:31:02 -04:00
Łukasz Langa
728c56c986
Remove the test-specific .flake8 file
2018-03-29 15:25:16 -07:00
Josh Holland
3ee9ebb091
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.
2018-03-29 15:21:18 -07:00
Łukasz Langa
44a2351731
Use imperative language in all docstrings
2018-03-28 19:31:53 -07:00
Łukasz Langa
b901d75deb
Show __str__ in UnformattedLines
2018-03-28 19:31:40 -07:00
Łukasz Langa
653aa40579
Add DebugVisitor.show() to documentation under utility functions
2018-03-28 19:28:31 -07:00
Łukasz Langa
7f7b31058a
More minor documentation-related changes
2018-03-28 19:03:16 -07:00
Łukasz Langa
d01460d939
Auto-generated documentation-related fixes
2018-03-28 17:43:18 -07:00
Carol Willing
a9f50cd0b5
document classes, functions, exceptions ( #82 )
2018-03-28 10:12:27 -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
fa7f3e9166
Improve pypi badge template
2018-03-26 02:27:14 -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
Daniel M. Capella
91e99b27e1
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'
2018-03-26 01:43:18 -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
cbf010e0a2
The site is cleaner without the 'Related' cruft.
2018-03-26 00:42:29 -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
fddf5d44d5
Link to ReadTheDocs
2018-03-24 18:03:50 -07:00
Łukasz Langa
8cf6bdb5b7
Compress the logos better
2018-03-24 17:58:47 -07:00
Łukasz Langa
be563a4748
More documentation fixes for ReadTheDocs
2018-03-24 17:54:13 -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
8c565d8684
blib2to3: Never put prefixes on INDENT leaves either
2018-03-23 17:15:47 -07:00
Łukasz Langa
7e1c5b2ba6
Introduce DebugVisitor.show() + tests
2018-03-23 16:08:05 -07:00
Carol Willing
c98a6f134f
add sphinx docs skeleton ( #71 )
2018-03-23 14:27:04 -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
7bd6f3cb2f
Ignore typing error around Node/Leaf
2018-03-22 23:22:46 -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