Skip to content

Commit

Permalink
Merge pull request #10 from akaihola/doctest
Browse files Browse the repository at this point in the history
Enable and fix doctests
  • Loading branch information
akaihola authored Jul 1, 2020
2 parents a6a3a42 + aee5cd3 commit 701393a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ python:
- "nightly" # nightly build
install:
- pip install -e '.[isort,test]'
script: pytest --black --mypy src
script: pytest --black --mypy --doctest-modules src
2 changes: 1 addition & 1 deletion src/darker/black_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
First, :func:`run_black` uses Black to reformat the contents of a given file.
Original and reformatted lines are returned e.g.::
>>> src_lines, dst_lines = run_black(src)
>>> src_lines, dst_lines = run_black(src, black_args={})
>>> src_lines
['for i in range(5): print(i)',
'print("done")']
Expand Down

0 comments on commit 701393a

Please sign in to comment.