Skip to content

Add code quality tests - #1464

Merged
jcrist merged 2 commits into
dask:masterfrom
jcrist:quality-tests
Aug 12, 2016
Merged

jcrist merged 2 commits into
dask:masterfrom
jcrist:quality-tests

Conversation

@jcrist

@jcrist jcrist commented Aug 11, 2016

Copy link
Copy Markdown
Member

Add code quality tests, and squash all issues to make them pass. Code
quality is checked with flake8, using a subset of errors (see
setup.cfg). A test in dask/tests/test_flake8.py is added to check
that there are no flake8 errors from this subset. This can be easily run
using py.test:

py.test -m quality dask

To ignore certain errors locally you can use the # noqa: errors per
line, or # flake8: noqa at the top of a file. This is used sparingly
throughout to silence complaints that are invalid/not useful.

Add code quality tests, and squash all issues to make them pass. Code
quality is checked with `flake8`, using a subset of errors (see
`setup.cfg`). A test in `dask/tests/test_flake8.py` is added to check
that there are no flake8 errors from this subset. This can be easily run
using `py.test`:

```
py.test -m quality dask
```

To ignore certain errors locally you can use the `# noqa: errors` per
line, or `# flake8: noqa` at the top of a file. This is used sparingly
throughout to silence complaints that are invalid/not useful.
`distributed` registers the `hdfs` backend *even if* `hdfs3` isn't
installed. This goes against the logic implemented in `ensure_protocol`,
which is designed to give informative errors if `hdfs` or `s3` support
isn't available.
@mrocklin

Copy link
Copy Markdown
Member

+1

@jcrist
jcrist merged commit 904f8e2 into dask:master Aug 12, 2016
@jcrist
jcrist deleted the quality-tests branch August 12, 2016 14:11
@sinhrks sinhrks added this to the 0.11.0 milestone Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants