-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fade to black #314
Fade to black #314
Changes from 7 commits
e68dab3
cf52925
e08e9a0
654bbe5
1c84a7f
6d536d6
d735863
79c9d68
0a8f5ae
dd717c2
688768a
b466ca9
22c1ffd
1abbffa
d374176
524d5d9
25e8766
0cc2f26
9331d5f
cae339e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
*.pyc | ||
*~ | ||
.DS_Store | ||
/.coverage | ||
/.coverage.* | ||
/.eggs | ||
/.hypothesis/ | ||
/.mypy_cache | ||
/.tox/ | ||
/_trial_temp/ | ||
/build/ | ||
/dist/ | ||
/docs/_build/ | ||
/htmlcov/ | ||
/src/*.egg-info | ||
htmlcov |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ matrix: | |
include: | ||
- python: 3.8 | ||
env: TOXENV=flake8 | ||
- python: 3.8 | ||
env: TOXENV=black | ||
- python: 3.8 | ||
env: TOXENV=mypy | ||
|
||
|
@@ -102,8 +104,8 @@ matrix: | |
|
||
|
||
install: | ||
- ./.travis/install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This script doesn't do anything useful any more; tossing it. |
||
- pip install tox | ||
|
||
|
||
script: | ||
- ./.travis/run tox | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This script doesn't do anything useful any more; tossing it. |
||
- tox |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
include LICENSE | ||
include README.rst | ||
include .coveragerc | ||
include .travis/twistedchecker-diff | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to include this in distributions? It's not useful out of VCS, is it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think
|
||
include AUTHORS | ||
include CONTRIBUTING.rst | ||
include docs/Makefile | ||
include LICENSE | ||
include NEWS.rst | ||
include pyproject.toml | ||
include README.rst | ||
include tox.ini | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs *.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[build-system] | ||
|
||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[tool.black] | ||
|
||
line-length = 80 | ||
target-version = ["py27"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,8 +161,10 @@ def procureSession(self, request, forceInsecure=False): | |
# manipulation could succeed (no CSRF token check could | ||
# ever succeed, for example). | ||
raise NoSuchSession( | ||
u"Can't initialize a session on a {method} request." | ||
.format(method=request.method.decode("ascii")) | ||
u"Can't initialize a session on a " | ||
u"{method} request.".format( | ||
method=request.method.decode("ascii") | ||
) | ||
Comment on lines
+176
to
+179
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so that when black reformats it, we stay within max line length. |
||
) | ||
if not self._setCookieOnGET: | ||
# We don't have a session ID at all, and we're not allowed | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,10 @@ def test_interfaceCompliance(self): | |
store = MemorySessionStore() | ||
verifyObject(ISessionStore, store) # type: ignore[misc] | ||
verifyObject( | ||
ISession, self.successResultOf( # type: ignore[misc] | ||
ISession, # type: ignore[misc] | ||
self.successResultOf( | ||
store.newSession(True, SessionMechanism.Header) | ||
) | ||
), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so that when black reformats it, we the |
||
) | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -936,8 +936,11 @@ def _eb(result): | |
|
||
self.assertEqual( | ||
str(failure.value), | ||
("Request.finish called on a request after its connection was " | ||
"lost; use Request.notifyFinish to keep track of this.")) | ||
( | ||
"Request.finish called on a request after its connection " | ||
"was lost; use Request.notifyFinish to keep track of this." | ||
) | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so that when black reformats it, we stay within max line length. |
||
|
||
d.addErrback(lambda _: finished) | ||
d.addErrback(_eb) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These scribble into
./.tox/