Commit Graph

458 Commits

Author SHA1 Message Date
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
Tsuyoshi Hombashi
3b72ed0d48 Improve an error message when failed to load pyproject.toml (#653) 2018-12-31 05:03:31 -08:00
Peter Stensmyr
fe24a15b84 Fix multiprocessing support for Windows binary (#632)
* Fix multiprocessing support for Windows binary

The black and blackd binaries generated for Windows builds would fail on
reformatting multiple files due to a Windows-specific
multiprocessing issue. Fix by calling freeze_support() as
described in Python docs.
2018-12-14 15:01:50 +00:00
Tushar Chandra
0b40a7badf Add CORS support to blackd (#627)
See issue #622. Use aiohttp-cors to allow cross-origin requests to blackd,
and add a dependency on it to the pipfile.
2018-12-10 08:15:57 +00:00
Jim Brännlund
55121195ce Add .eggs to default exclusions (#629) 2018-11-29 14:27:08 -08:00
Jim Brännlund
4809e365d4 Silence expected stderr (#621)
* Silence expected stderr output during test

* Change based on PR comment
2018-11-29 21:43:22 +00:00
Scott Stevenson
48022801fb Reflect renaming of IPython notebook to Jupyter (#616) 2018-11-22 22:08:20 -08:00
Timo
fa8be4ed82 Add url to pep 257 in readme (#615) 2018-11-22 22:07:08 -08:00
Jelle Zijlstra
8d58827376
Refactor Travis (#614)
Fixes #305 

- Run separate jobs for mypy, self-formatting, flake8, and test runs.
- Don't run flake8 in 3.8 because it is broken (and we can't really expect flake8 to always keep up with 3.8 development).
- Fix unused variable in test
2018-11-20 08:42:43 -08:00
hauntsaninja
e4e59f87a8 Improves performance on large commented logical lines (#606)
Fixes #509
2018-11-13 15:04:27 -08:00
hauntsaninja
5bc62a4a82 Fix two types to be Optional (#607) 2018-11-13 15:02:27 -08:00
Jelle Zijlstra
fbf59b60d7 remove unused variable (#604) 2018-11-13 21:23:56 +00:00
Calum Lind
158f796ef3 Update isort config to use_parentheses instead of combine_as_imports (#547)
The `combine_as_imports=True` modifies isort style as a side-effect and was not the intended purpose of the suggested change in #250. The problem was that isort was actually replacing the parens with backslash and using `combine_as_imports=True` happened to also produce the same result.

The actual setting should be `use_parentheses` as this tells isort to use parenthesis for line continuation instead of \ for lines over the allotted line length limit and matches precisely what black is outputting.
2018-11-08 11:54:05 +01:00
jgirardet
32eed7d188 set entry to black (#553) 2018-10-29 11:17:37 +01:00
Chuck Wooters
5c2dd96a69 patch main to ensure click_patch() gets called (#572) 2018-10-29 11:10:32 +01:00
Felix Kohlgrüber
99c97c3d7f delete unused code (#588) 2018-10-29 11:09:06 +01:00
Tony Narlock
2cb3c2a050 Typo (#561) 2018-10-29 11:07:50 +01:00
Zsolt Dollenstein
52da1f08da
use blackrelease github user for uploading release artifacts 2018-10-27 17:53:04 +01:00
Hugo
85eeea1283 Link to Bugbear's documentation (#577) 2018-10-19 07:58:33 +02:00
jgirardet
44e9cd4a03 Explicit # fmt: on/off indentation level (#554) 2018-10-09 13:11:47 -07:00
jgirardet
f1ac6fe109 add --skip-numeric-underscore-normalization in readme (#537) 2018-09-27 15:47:51 -07:00
Łukasz Langa
ed9b31b139
Require attrs >= 18.1.0 to work around ctypes failure in Vim
Fixes #116, #539
2018-09-27 07:49:04 -07:00
Łukasz Langa
61feadc0f8
v18.9b0 2018-09-26 13:05:49 -07:00
Cong
913915d1b4 Deploy windows binary (#422) 2018-09-26 20:23:16 +01:00
Łukasz Langa
7145fa325c
Remove whitespace at the beginning of the file
Fixes #399
2018-09-26 12:18:45 -07:00
Cong
649c3c7a05 Deploy linux binary (#362) (#410) 2018-09-26 20:07:35 +01:00
Łukasz Langa
c6c8ef76a4
Fix mangling pweave and Spyder IDE special comments
Fixes #532.
2018-09-26 09:42:42 -07:00
Łukasz Langa
9372dc8510
Make CHANGELOG more accurate 2018-09-26 09:20:52 -07:00
Łukasz Langa
a4b5c085a3
Move should_explode handling to bracket_split_build_line 2018-09-26 08:53:56 -07:00
Łukasz Langa
1610fd6bc5
Add trailing comma for single as imports, too 2018-09-26 08:26:35 -07:00
Łukasz Langa
0c5c537431
Refactor left_hand_split and right_hand_split to deduplicate line building logic 2018-09-26 07:41:34 -07:00
jgirardet
0171a5e524 add blackd ignore pyproject (#536) 2018-09-26 13:47:08 +01:00
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