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
cb67a32242
Improve Poetry support
2018-09-18 16:50:20 -07:00
Sébastien Eustace
2f0a1852a9
Update Poetry section in pyproject.toml ( #490 )
2018-09-18 15:27:41 -07:00
Łukasz Langa
41368138bb
Fix documentation build
2018-09-18 12:04:30 -07: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
25795c9ff5
Add trove classifier for Python 3.7 support ( #486 )
...
Testing added in 3bdd423891
.
2018-08-28 13:00:57 +01:00
Jon Dufresne
6027cca10d
Prefer https:// links where available ( #485 )
2018-08-28 13:00:05 +01:00
Jon Dufresne
8e90e46204
Add build & dist directories to .gitignore ( #487 )
...
Generated when running the command "python3 setup.py bdist_wheel".
2018-08-28 12:59:00 +01:00
Jon Dufresne
975ca9cefc
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.
2018-08-28 12:58:21 +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
Nikolaus Waxweiler
7613a49197
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!
2018-08-27 10:10:45 +01:00
Zsolt Dollenstein
66a6be642c
fix lint errors
2018-08-26 21:27:33 +01:00
Zsolt Dollenstein
401836d02e
add test case for preserving newlines from stdin
2018-08-26 21:19:22 +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
b53cb94743
fix bracket match bug ( #470 )
...
* fix bracket match bug
* add missing test file
2018-08-23 12:52:07 +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
d4f0521754
fix misformatting of floats with leading zeros ( #464 )
2018-08-20 08:19:25 -07:00
Zsolt Dollenstein
883689366c
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 .
2018-08-20 14:47:58 +01:00
Jelle Zijlstra
b719d85ccc
autodetect Python 3.6 on the basis of underscores ( #461 )
2018-08-19 21:02:06 -07:00
ceh
66b82ced50
Fix minor typos ( #443 )
2018-08-19 13:10:06 +01: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
2a357b3606
Nits around numeral normalization.
2018-08-17 10:38:28 -07:00
Łukasz Langa
71bdd727a8
Put missing blank lines after return statements.
2018-08-17 10:29:19 -07:00
Łukasz Langa
ebbb98919d
Make schedule_formatting logic less nested.
2018-08-17 10:17:37 -07:00
Łukasz Langa
1dbe77cd91
Simplify caching logic.
2018-08-17 10:14:10 -07:00
Łukasz Langa
b7e216f554
Update README with missing change log, etc.
2018-08-17 10:13:19 -07:00
Miroslav Shubernetskiy
33601ffa6d
not enforcing python3.6 for precommit hook ( #430 )
...
this should allow precommit hooks to be used with py37
2018-08-17 17:01:29 +01: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
Jonty Wareing
2ec4c5f4f9
vim: Restore cursor/window position after format ( #433 )
...
Without this the cursor jumps to the top of the window after formatting
occurs.
2018-08-17 16:39:33 +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
Jelle Zijlstra
9e15cacc67
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.
2018-08-17 15:40:37 +01:00
Jelle Zijlstra
cc48bc56ca
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
2018-08-17 15:03:58 +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
df965b0558
update to mypy 0.620 and make tests pass again
...
Fixes #408
2018-07-18 22:10:52 +01:00
Anthony Sottile
c50b107493
pre-commit: use exclusion instead of ever-growing regex ( #382 )
2018-07-09 22:42:38 +02:00
Zsolt Dollenstein
3316dce22d
add change log entry
2018-07-02 18:02:13 +01:00
Zsolt Dollenstein
dd8bde6d2f
Improve get_future_imports implementation.
...
Closes #389 .
2018-07-02 17:49:47 +01:00
cclauss
3bdd423891
TravisCI: Test on production Python 3.7 and 3.8-dev ( #393 )
2018-07-02 18:05:40 +02:00