dask-contrib / dask-ctl

Tools to provide a control plane for managing the lifecycle of Dask clusters.
https://dask-ctl.readthedocs.io
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Make snippet simpler #48

Closed jacobtomlinson closed 2 years ago

jacobtomlinson commented 2 years ago

Now that get_cluster exists users shouldn't ever have to directly call from_name. Updating the snippet with the newer syntax.

codecov-commenter commented 2 years ago

Codecov Report

Merging #48 (0cb480e) into main (86a6664) will decrease coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
- Coverage   49.78%   49.70%   -0.09%     
==========================================
  Files          29       30       +1     
  Lines        1171     1175       +4     
==========================================
+ Hits          583      584       +1     
- Misses        588      591       +3     
Impacted Files Coverage Δ
dask_ctl/widgets/templates/snippet.py.j2 100.00% <100.00%> (ø)
dask_ctl/discovery.py 82.35% <0.00%> (-5.89%) :arrow_down:
dask_ctl/lifecycle.py 78.26% <0.00%> (-2.18%) :arrow_down:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more