Skip to content

Commit

Permalink
Merge pull request #85 from kmpaul/remove-check-python-3
Browse files Browse the repository at this point in the history
Remove check python 3 and update CI
  • Loading branch information
Kevin Paul authored Apr 13, 2022
2 parents d0cba37 + f30d5fc commit bb5e4a8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 32 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/linting.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.6', '3.7', '3.8']
python: ['3.8', '3.9', '3.10']
mpi: ['mpich', 'openmpi']
env:
PYTHON: ${{ matrix.python }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ exclude: 'docs/source/conf.py|versioneer.py'

repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
rev: v5.10.1
hooks:
- id: isort
10 changes: 2 additions & 8 deletions dask_mpi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import json

import click
from dask.distributed import Scheduler, Worker
from distributed.cli.utils import check_python_3
from distributed import Scheduler, Worker
from distributed.utils import import_term
from mpi4py import MPI

Expand Down Expand Up @@ -148,10 +147,5 @@ async def run_worker():
asyncio.get_event_loop().run_until_complete(run_worker())


def go():
check_python_3()
main()


if __name__ == "__main__":
go()
main()
2 changes: 1 addition & 1 deletion dask_mpi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

import dask
from dask.distributed import Client, Nanny, Scheduler
from distributed import Client, Nanny, Scheduler
from distributed.utils import import_term
from tornado import gen
from tornado.ioloop import IOLoop
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def environment_dependencies(obj, dependencies=None):
long_description=long_description,
entry_points="""
[console_scripts]
dask-mpi=dask_mpi.cli:go
dask-mpi=dask_mpi.cli:main
""",
zip_safe=False,
)

0 comments on commit bb5e4a8

Please sign in to comment.