Skip to content

Commit 9f1e3ad

Browse files
authored
Merge branch 'main' into main
2 parents 9583b72 + 842cc75 commit 9f1e3ad

File tree

126 files changed

+5174
-2616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+5174
-2616
lines changed

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
2-
include =
3-
distributed/*
2+
source =
3+
distributed
44
omit =
55
distributed/tests/test*
66
distributed/hdfs.py

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
- [ ] Closes #xxxx
22
- [ ] Tests added / passed
3-
- [ ] Passes `black distributed` / `flake8 distributed` / `isort distributed`
3+
- [ ] Passes `pre-commit run --all-files`

.github/workflows/tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,15 @@ jobs:
116116
source continuous_integration/scripts/set_ulimit.sh
117117
118118
pytest distributed -m "not avoid_ci and ${{ matrix.partition }}" --runslow \
119-
--junitxml reports/pytest.xml -o junit_suite_name=$TEST_ID
119+
--junitxml reports/pytest.xml -o junit_suite_name=$TEST_ID --cov=distributed --cov-report=xml
120120
121121
# - name: Debug with tmate on failure
122122
# if: ${{ failure() }}
123123
# uses: mxschmitt/action-tmate@v3
124124

125+
- name: Coverage
126+
uses: codecov/codecov-action@v1
127+
125128
- name: Upload test artifacts
126129
# ensure this runs even if pytest fails
127130
if: >

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
*.pyc
22
*.pyd
33
*.py~
4+
5+
# Cython files
46
*.c
57
*.so
8+
distributed/scheduler.html
9+
610
build/
711
dist/
812
*.egg-info
@@ -11,6 +15,8 @@ continuous_integration/hdfs-initialized
1115
.DS_Store
1216
.cache
1317
.coverage
18+
.coverage.*
19+
coverage.xml
1420
*.lock
1521
.#*
1622
.eggs/
@@ -23,3 +29,4 @@ dask-worker-space/
2329
.ycm_extra_conf.py
2430
tags
2531
.ipynb_checkpoints
32+
.venv/

.pre-commit-config.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
repos:
22
- repo: https://github.com/pycqa/isort
3-
rev: 5.8.0
3+
rev: 5.9.3
44
hooks:
55
- id: isort
66
language_version: python3
7+
- repo: https://github.com/asottile/pyupgrade
8+
# Do not upgrade: there's a bug in Cython that causes sum(... for ...) to fail;
9+
# it needs sum([... for ...])
10+
rev: v2.13.0
11+
hooks:
12+
- id: pyupgrade
13+
args:
14+
- --py37-plus
715
- repo: https://github.com/psf/black
8-
rev: 21.5b1
16+
rev: 21.9b0
917
hooks:
1018
- id: black
1119
language_version: python3
@@ -17,3 +25,22 @@ repos:
1725
hooks:
1826
- id: flake8
1927
language_version: python3
28+
- repo: https://github.com/pre-commit/mirrors-mypy
29+
rev: v0.910
30+
hooks:
31+
- id: mypy
32+
additional_dependencies:
33+
# Type stubs
34+
- types-docutils
35+
- types-requests
36+
- types-paramiko
37+
- types-pkg_resources
38+
- types-PyYAML
39+
- types-setuptools
40+
- types-psutil
41+
# Libraries exclusively imported under `if TYPE_CHECKING:`
42+
- typing_extensions # To be reviewed after dropping Python 3.7
43+
# Typed libraries
44+
- numpy
45+
- dask
46+
- tornado

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Distributed
22
===========
33

4-
|Test Status| |Doc Status| |Gitter| |Version Status| |NumFOCUS|
4+
|Test Status| |Coverage| |Doc Status| |Gitter| |Version Status| |NumFOCUS|
55

66
A library for distributed computation. See documentation_ for more details.
77

@@ -11,6 +11,9 @@ A library for distributed computation. See documentation_ for more details.
1111
.. |Doc Status| image:: https://readthedocs.org/projects/distributed/badge/?version=latest
1212
:target: https://distributed.dask.org
1313
:alt: Documentation Status
14+
.. |Coverage| image:: https://codecov.io/gh/dask/distributed/branch/main/graph/badge.svg
15+
:target: https://codecov.io/gh/dask/distributed/branch/main
16+
:alt: Coverage status
1417
.. |Gitter| image:: https://badges.gitter.im/Join%20Chat.svg
1518
:alt: Join the chat at https://gitter.im/dask/dask
1619
:target: https://gitter.im/dask/dask?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

codecov.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "85...100"
8+
9+
status:
10+
project:
11+
default:
12+
target: 85%
13+
threshold: 1%
14+
patch: no
15+
changes: no
16+
17+
comment: off

continuous_integration/environment-3.7.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- bokeh
1010
- click
1111
- cloudpickle
12+
- coverage
1213
- cython # Only tested here; also a dependency of crick
1314
- dask # overridden by git tip below
1415
- filesystem-spec
@@ -17,15 +18,17 @@ dependencies:
1718
- ipywidgets
1819
- jinja2
1920
- joblib
20-
- jupyter_client<7 # FIXME distributed#5272
21+
- jupyter_client
2122
- msgpack-python
2223
- netcdf4
2324
- paramiko
2425
- pickle5 # Backport from Python 3.8
26+
- pre-commit
2527
- prometheus_client
2628
- psutil
2729
- pytest
2830
- pytest-asyncio<0.14.0
31+
- pytest-cov
2932
- pytest-faulthandler
3033
- pytest-repeat
3134
- pytest-rerunfailures

continuous_integration/environment-3.8.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ dependencies:
99
- bokeh
1010
- click
1111
- cloudpickle
12+
- coverage
1213
- dask # overridden by git tip below
1314
- filesystem-spec
1415
- h5py
1516
- ipykernel
1617
- ipywidgets
1718
- jinja2
1819
- joblib
19-
- jupyter_client<7 # FIXME distributed#5272
20+
- jupyter_client
2021
- msgpack-python
2122
- netcdf4
2223
- paramiko
24+
- pre-commit
2325
- prometheus_client
2426
- psutil
2527
- pytest
2628
- pytest-asyncio<0.14.0
29+
- pytest-cov
2730
- pytest-faulthandler
2831
- pytest-repeat
2932
- pytest-rerunfailures

continuous_integration/environment-3.9.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@ dependencies:
1010
- bokeh
1111
- click
1212
- cloudpickle
13+
- coverage
1314
- dask # overridden by git tip below
1415
- filesystem-spec # overridden by git tip below
1516
- h5py
1617
- ipykernel
1718
- ipywidgets
1819
- jinja2
1920
- joblib # overridden by git tip below
20-
- jupyter_client<7 # FIXME distributed#5272
21+
- jupyter_client
2122
- lz4 # Only tested here
2223
- msgpack-python
2324
- netcdf4
2425
- paramiko
26+
- pre-commit
2527
- prometheus_client
2628
- psutil
2729
- pynvml # Only tested here
2830
- pytest
2931
- pytest-asyncio<0.14.0
32+
- pytest-cov
3033
- pytest-faulthandler
3134
- pytest-repeat
3235
- pytest-rerunfailures
@@ -49,6 +52,7 @@ dependencies:
4952
- git+https://github.com/dask/dask
5053
- git+https://github.com/dask/s3fs
5154
- git+https://github.com/dask/zict
52-
- git+https://github.com/intake/filesystem_spec
55+
# FIXME https://github.com/dask/distributed/issues/5345
56+
# - git+https://github.com/intake/filesystem_spec
5357
- git+https://github.com/joblib/joblib
5458
- keras

0 commit comments

Comments
 (0)