Skip to content

Commit

Permalink
Only exclude one troublesome example, not all of them (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Jul 6, 2021
1 parent 1bde590 commit f65964a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/source/guide/examples/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)


def approximate_pi(sample_count=10**8, report_interval=10 ** 6):
def approximate_pi(sample_count=10 ** 8, report_interval=10 ** 6):
"""
Yield successive approximations to π via Monte Carlo methods.
"""
Expand All @@ -42,6 +42,7 @@ async def future_wrapper(traits_future):
"""
Wrap a Traits Futures future as a schedulable coroutine.
"""

def set_result(event):
traits_future = event.object
asyncio_future.set_result(traits_future.result)
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[tool.black]
line-length = 79
target-version = ['py36']
exclude = "/docs/source/guide/examples"
# black introduces extra blank lines that we don't want in the Sphinx
# rendering. xref: https://github.com/sphinx-doc/sphinx/issues/9407
exclude = "/docs/source/guide/examples/fizz_buzz_task.py"

0 comments on commit f65964a

Please sign in to comment.