Hugo
4a953b7241
ambv/black -> python/black ( #819 )
2019-05-02 20:19:52 +01:00
Hugo
597a0e102c
Fix B011 ( #820 )
...
Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
2019-05-02 20:09:49 +01:00
Daniel Hahler
acafdcb594
minor: remove wrong comment in .flake8 ( #788 )
...
This is there since the initial commit, which did not have a setup.cfg.
2019-05-02 13:03:02 -04:00
Jelle Zijlstra
cea13f4984
Split the TRAILING_COMMA feature ( #763 )
2019-03-25 08:22:02 -07:00
Daniele Esposti
0b7913f904
Terget version option kebab-style ( #770 )
2019-03-20 08:40:01 -07:00
Thom Lu
a2f6706a1e
fix vim plugin for 19.3b0 ( #755 ) ( #766 )
2019-03-17 09:27:50 -07:00
Jelle Zijlstra
ba64fc757c
redo grammar selection, add test ( #765 )
2019-03-16 11:35:18 -07:00
Zsolt Dollenstein
2410213857
fix appveyor deploy section
2019-03-16 16:26:50 +00:00
Zsolt Dollenstein
f68500497f
Use new github token for appveyor release
2019-03-16 14:00:59 +00:00
Jelle Zijlstra
f92cd878ad
add change log entry ( #764 )
2019-03-15 11:42:24 -07:00
Jelle Zijlstra
b396f13761
fix incorrect call ( #762 )
2019-03-15 18:39:08 +01:00
Andy Freeland
d6db1c12a8
Fix print() function on Python 2 ( #754 )
...
Fixes #752
2019-03-14 16:42:54 -07:00
Łukasz Langa
026c81b834
v19.3b0
2019-03-14 18:09:10 +01:00
Jelle Zijlstra
129ebd53a6
Add back --py36 as a deprecated option ( #750 )
...
This partially reverts commit 21ab37a5d9
.
2019-03-14 17:31:27 +01:00
Łukasz Langa
6af55d8851
Mention tab comment fixes, extend tests
2019-03-14 17:17:50 +01:00
Łukasz Langa
ee7151e50f
Mention atomic cache creation in the change log
2019-03-14 17:17:50 +01:00
Greg Gandenberger
416821947a
Indicate that PyCharm instructions also work with IntelliJ ( #681 )
...
* Indicate that PyCharm instructions also work with IntelliJ
* Update README.md
2019-03-14 17:16:40 +01:00
Heaford
cfa2557df0
Update README.md - Pycharm instructions not working for files path containing white spaces ( #659 )
2019-03-14 17:10:49 +01:00
Łukasz Langa
6b381c784b
Mention fix for #632 in the change log
2019-03-14 16:34:40 +01:00
Łukasz Langa
ca9ad698ef
Enhance the type comment patch
2019-03-14 16:26:41 +01:00
Russell Davis
ca679cd177
Fix PyCharm instructions in README ( #701 )
...
Without this change, PyCharm won't refresh the file in the editor after Black runs.
2019-03-14 13:45:38 +01:00
Hugo
d00eac9944
Fix PendingDeprecationWarning: Task.all_tasks() is deprecated, use asyncio.all_tasks() instead ( #741 )
2019-03-14 13:41:42 +01:00
Łukasz Langa
53e72102e9
Updates to the change log
2019-03-14 13:40:53 +01:00
Łukasz Langa
087fedb17e
Simplify the #606 patch
...
Thanks for the original patch to solve #509 , @hauntsaninja.
2019-03-14 13:40:52 +01:00
Anders-Petter Ljungquist
227c2d77b4
Changes default logger used by blib2to3 Driver ( #732 )
...
... to stop it from spamming the log when black is used as a library in another
python application.
When used indirectly by black the logger initiated in `driver.py` will emit
thousands of debug messages making the debug level of the root logger virtually
useless. By getting a named logger instead the verbosity of logging from this
module can easily be controlled by setting its log level.
Fixes #715
2019-03-14 13:39:42 +01:00
Łukasz Langa
275a85f598
Update Pipfile environment
2019-03-14 13:17:34 +01:00
Łukasz Langa
1f2138f872
Add pip-wheel-metadata/ to ignores
2019-03-14 13:16:36 +01:00
Jelle Zijlstra
ea55ff2878
remove Python implementation-specific versions ( #736 )
2019-03-07 16:34:34 -08:00
Sami Salonen
1580477615
Put cursor in last line if old position is invalid ( #641 )
2019-03-06 19:34:17 -08:00
Jelle Zijlstra
21ab37a5d9
remove --py36 ( #724 )
...
Fixes #703 .
2019-02-24 09:15:03 -08:00
Jelle Zijlstra
f5b14b1afd
split long del statements into multiple lines ( #698 )
...
Fixes #693
2019-02-22 22:00:40 -08:00
programmer04
2ae5ce1e6e
Fix example with well formated code (add missing comma) ( #720 )
2019-02-20 11:11:14 -08:00
sponsfreixes
118b612059
Improve examples to use 88 chars line length ( #677 ) ( #714 )
...
The examples were wrapping at less than 88 characters, which is not the
default for black.
2019-02-15 22:18:58 -08:00
Jelle Zijlstra
a00f426637
add missing aiohttp dep ( #699 )
...
add missing aiohttp dep
Also mark 3.8 as allowed to fail for now; it will fail due to an aiohttp bug.
Fixes #690
2019-02-14 20:23:56 +00:00
Greg Gandenberger
a1fd7b26e7
Add PyCharm setup step ( #680 )
2019-02-13 17:41:58 -08:00
Zsolt Dollenstein
250ba7f04b
Remove numeric underscore normalization ( #696 )
2019-02-06 19:16:49 -08:00
Jelle Zijlstra
36d3c516d3
Add --target-version
option to allow users to choose targeted Python versions ( #618 )
2019-02-06 18:43:50 -08:00
Hugo
a9d8af466a
'sudo: required' no longer required https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration ( #694 )
2019-02-06 08:07:31 -08:00
Jakub Kadlubiec
ae8ea510e3
Properly close the code block in README ( #695 )
2019-02-06 08:05:40 -08:00
Nathan Goldbaum
9d749280bb
show how to exclude individual files in the exclude example ( #663 )
...
* show how to exclude individual files in the exclude example
* include comments in the regex
2019-02-05 10:50:59 -08:00
Kyle Sunden
fd9f529d8b
Update readthedocs.yml ( #611 )
...
I'm pretty sure the name shouldn't be 'jupyterhub'
2019-02-04 19:12:51 -08:00
Bryan Forbes
a862795e1a
Format pyi files correctly ( #599 )
2019-02-04 19:08:06 -08:00
Samuel Cormier-Iijima
66aa676278
Fix indent calculation with tabs when computing prefixes ( #595 )
...
Closes #262
2019-02-04 18:55:01 -08:00
Jan Hnátek
f6643c4f0c
Fix location of expression.diff in the change notification message ( #670 )
2019-02-04 18:42:42 -08:00
Jimmy Jia
1ec2470da7
chore: Fix noqa comment ( #684 )
...
Omitting the colon makes Flake8 ignore all errors, rather than the specific code.
2019-01-29 13:46:19 -08:00
Anthony Sottile
4d3107233f
Atomically write cache files ( #674 )
2019-01-18 20:59:17 -08:00
Anthony Sottile
bc7e5c949f
Turn off pre-commit's automatic parallelization for black ( #675 )
...
black internally uses multiprocessing for speed. In pre-commit 1.13.0 this is automated by the framework itself however if both pre-commit and black are forking processes this is slower and hits race-conditions in `black`.
2019-01-18 20:52:56 +00:00
Anthony Sottile
7546ed292c
delete some dead code ( #669 )
...
dead code detected via [dead](https://github.com/asottile/dead )
- **`KEYWORDS`**: introduced (unreferenced) in e74117f172
- **`FLOW_CONTROL`**: last referenced in e9a940d69e
"clean" command:
```
dead --exclude '^(tests/data/|docs/conf.py|blib2to3/)' | grep -Ev '^(visit_.*|show|_stop_signal|lib2to3_unparse) '
```
2019-01-12 09:23:20 -08:00
Utsav Shah
024c9cab55
Add support for special comments in multiline functions ( #642 )
2019-01-05 11:20:12 -08:00
Kenyon Ralph
283a5d53a8
README.md: fix mailto link ( #660 )
2019-01-05 10:46:07 -08:00