Skip to content

Commit c83c617

Browse files
committed
Merge remote-tracking branch 'upstream/master' into groupby-plot
* upstream/master: Python 3.8 CI (pydata#3727) PKG: Explicitly add setuptools dependency (pydata#3628) update whats-new Typo in Universal Functions section (pydata#3663) Release v0.15.0 fix setup.cfg Documentation fixes (pydata#3732) Remove extra && in PR template (pydata#3730) Remove garbage text inserted in DASK_LICENSE (pydata#3729) Avoid unsafe use of pip (pydata#3726) remove PR pre-black instructions (pydata#3707) Fix whats-new for 0.15 (pydata#3723) Add isort to CI (pydata#3721) setuptools-scm (3) (pydata#3724) Fix Sphinx links on contributing doc page (pydata#3710)
2 parents e694a50 + 4c96d53 commit c83c617

37 files changed

+606
-315
lines changed

.binder/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: xarray-examples
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.7
5+
- python=3.8
66
- boto3
77
- bottleneck
88
- cartopy
@@ -31,6 +31,7 @@ dependencies:
3131
- rasterio
3232
- scipy
3333
- seaborn
34+
- setuptools
3435
- sparse
3536
- toolz
3637
- xarray

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- [ ] Closes #xxxx
44
- [ ] Tests added
5-
- [ ] Passes `black . && mypy . && flake8`
5+
- [ ] Passes `isort -rc . && black . && mypy . && flake8`
66
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# https://pre-commit.com/
2-
# https://github.com/python/black#version-control-integration
32
repos:
3+
# isort should run before black as black sometimes tweaks the isort output
4+
- repo: https://github.com/timothycrosley/isort
5+
rev: 4.3.21-2
6+
hooks:
7+
- id: isort
8+
# https://github.com/python/black#version-control-integration
49
- repo: https://github.com/python/black
510
rev: stable
611
hooks:
712
- id: black
8-
language_version: python3.7
913
- repo: https://github.com/pre-commit/pre-commit-hooks
1014
rev: v2.2.3
1115
hooks:
@@ -14,7 +18,7 @@ repos:
1418
rev: v0.761 # Must match ci/requirements/*.yml
1519
hooks:
1620
- id: mypy
17-
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
21+
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
1822
# - repo: https://github.com/asottile/pyupgrade
1923
# rev: v1.22.1
2024
# hooks:
@@ -23,7 +27,3 @@ repos:
2327
# - "--py3-only"
2428
# # remove on f-strings in Py3.7
2529
# - "--keep-percent-format"
26-
# - repo: https://github.com/timothycrosley/isort
27-
# rev: 4.3.21-2
28-
# hooks:
29-
# - id: isort

asv_bench/asv.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// The Pythons you'd like to test against. If not provided, defaults
4242
// to the current version of Python used to run `asv`.
43-
"pythons": ["3.6"],
43+
"pythons": ["3.8"],
4444

4545
// The matrix of dependencies to test. Each key is the name of a
4646
// package (in PyPI) and the values are version numbers. An empty

azure-pipelines.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
conda_env: py37
2121
py38:
2222
conda_env: py38
23-
py37-upstream-dev:
24-
conda_env: py37
23+
py38-upstream-dev:
24+
conda_env: py38
2525
upstream_dev: true
26-
py36-flaky:
27-
conda_env: py36
26+
py38-flaky:
27+
conda_env: py38
2828
pytest_extra_flags: --run-flaky --run-network-tests
2929
allow_failure: true
3030
pool:
@@ -35,8 +35,8 @@ jobs:
3535
- job: MacOSX
3636
strategy:
3737
matrix:
38-
py36:
39-
conda_env: py36
38+
py38:
39+
conda_env: py38
4040
pool:
4141
vmImage: 'macOS-10.13'
4242
steps:
@@ -74,7 +74,7 @@ jobs:
7474

7575
- job: TypeChecking
7676
variables:
77-
conda_env: py37
77+
conda_env: py38
7878
pool:
7979
vmImage: 'ubuntu-16.04'
8080
steps:
@@ -84,6 +84,18 @@ jobs:
8484
mypy .
8585
displayName: mypy type checks
8686
87+
- job: isort
88+
variables:
89+
conda_env: py38
90+
pool:
91+
vmImage: 'ubuntu-16.04'
92+
steps:
93+
- template: ci/azure/install.yml
94+
- bash: |
95+
source activate xarray-tests
96+
isort -rc --check .
97+
displayName: isort formatting checks
98+
8799
- job: MinimumVersionsPolicy
88100
pool:
89101
vmImage: 'ubuntu-16.04'

ci/azure/install.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ steps:
66
- template: add-conda-to-path.yml
77

88
- bash: |
9+
conda update -y conda
910
conda env create -n xarray-tests --file ${{ parameters.env_file }}
1011
displayName: Install conda dependencies
1112

1213
- bash: |
1314
source activate xarray-tests
14-
pip install -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
15+
python -m pip install \
16+
-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com \
1517
--no-deps \
1618
--pre \
1719
--upgrade \
1820
matplotlib \
1921
numpy \
2022
pandas \
2123
scipy
22-
pip install \
24+
python -m pip install \
2325
--no-deps \
2426
--upgrade \
2527
git+https://github.com/dask/dask \
@@ -33,7 +35,7 @@ steps:
3335

3436
- bash: |
3537
source activate xarray-tests
36-
pip install --no-deps -e .
38+
python -m pip install --no-deps -e .
3739
displayName: Install xarray
3840

3941
- bash: |

ci/min_deps_check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"coveralls",
1616
"flake8",
1717
"hypothesis",
18+
"isort",
1819
"mypy",
1920
"pip",
2021
"pytest",

ci/requirements/doc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
# Don't change to pkgs/main, as it causes random timeouts in readthedocs
44
- conda-forge
55
dependencies:
6-
- python=3.7
6+
- python=3.8
77
- bottleneck
88
- cartopy
99
- cfgrib
@@ -20,6 +20,7 @@ dependencies:
2020
- pandas
2121
- rasterio
2222
- seaborn
23+
- setuptools
2324
- sphinx
2425
- sphinx_rtd_theme
2526
- zarr

ci/requirements/py36-bare-minimum.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ channels:
44
dependencies:
55
- python=3.6
66
- coveralls
7+
- pip
78
- pytest
89
- pytest-cov
910
- pytest-env
1011
- numpy=1.15
1112
- pandas=0.25
13+
- setuptools=41.2

ci/requirements/py36-min-all-deps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
- hdf5=1.10
2424
- hypothesis
2525
- iris=2.2
26+
- isort
2627
- lxml=4.4 # Optional dep of pydap
2728
- matplotlib=3.1
2829
- mypy=0.761 # Must match .pre-commit-config.yaml
@@ -42,6 +43,7 @@ dependencies:
4243
- rasterio=1.0
4344
- scipy=1.3
4445
- seaborn=0.9
46+
- setuptools=41.2
4547
# - sparse # See py36-min-nep18.yml
4648
- toolz=0.10
4749
- zarr=2.3

0 commit comments

Comments
 (0)