Łukasz Langa
9fea478022
Also run mypy on test_black.py
2018-03-15 23:55:22 -07:00
Łukasz Langa
fb84d8b2ee
Fix numpy-style array indexing
...
Fixes #33
2018-03-15 23:39:45 -07:00
Łukasz Langa
907dc6c35e
Clean up typing ignores, fix build
2018-03-15 23:26:56 -07:00
Łukasz Langa
c87b33c4d5
Add mypy to CI
2018-03-15 23:17:02 -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
c85cb48ec2
Fix tests after introducing --check
2018-03-15 17:05:59 -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
da3c2f3582
Fix spurious extra spaces after opening parentheses and in default arguments
...
Fixes #14
Fixes #17
2018-03-15 12:53:23 -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
76e6acb9ca
Add Python 3-only classifier
...
https://pypi.python.org/pypi?%3Aaction=list_classifiers
2018-03-15 11:09:19 -07:00
Hugo
de860cccf1
Use HTTPS
2018-03-15 11:07:33 -07:00
Łukasz Langa
ed48bd378d
Mention *args and **kwargs backport
2018-03-15 10:58:15 -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
f86b30a610
Bummer, Python 3.8 builds don't work yet
2018-03-14 14:26:14 -07:00
Łukasz Langa
f5cc3e3556
Actually use the bundled Grammar.txt
2018-03-14 14:20:16 -07:00
Łukasz Langa
b1075f8b02
Include Grammar.txt in the distribution
2018-03-14 14:16:34 -07:00
Łukasz Langa
e74117f172
Initial commit
2018-03-14 12:55:32 -07:00