ray/test
Alok Singh f795173b51 Use flake8-comprehensions (#1976)
* Add flake8 to Travis

* Add flake8-comprehensions

[flake8 plugin](https://github.com/adamchainz/flake8-comprehensions) that
checks for useless constructions.

* Use generators instead of lists where appropriate

A lot of the builtins can take in generators instead of lists.

This commit applies `flake8-comprehensions` to find them.

* Fix lint error

* Fix some string formatting

The rest can be fixed in another PR

* Fix compound literals syntax

This should probably be merged after #1963.

* dict() -> {}

* Use dict literal syntax

dict(...) -> {...}

* Rewrite nested dicts

* Fix hanging indent

* Add missing import

* Add missing quote

* fmt

* Add missing whitespace

* rm duplicate pip install

This is already installed in another file.

* Fix indent

* move `merge_dicts` into utils

* Bring up to date with `master`

* Add automatic syntax upgrade

* rm pyupgrade

In case users want to still use it on their own, the upgrade-syn.sh script was
left in the `.travis` dir.
2018-05-20 16:15:06 -07:00
..
jenkins_tests [tune] [rllib] Automatically determine RLlib resources and add queueing mechanism for autoscaling (#1848) 2018-04-16 16:58:15 -07:00
travis-ci Migrate repositories to ray-project. (#438) 2016-09-17 00:52:05 -07:00
actor_test.py Use flake8-comprehensions (#1976) 2018-05-20 16:15:06 -07:00
array_test.py Fix python linting (#2076) 2018-05-16 15:04:31 -07:00
autoscaler_test.py [autoscaler] Remove faulty assert that breaks during downscaling, pull configs from env (#2006) 2018-05-15 12:47:11 -07:00
component_failures_test.py Lint Python files with Yapf (#1872) 2018-04-11 10:11:35 -07:00
credis_test.py Lint Python files with Yapf (#1872) 2018-04-11 10:11:35 -07:00
cython_test.py Add basic functionality for Cython functions and actors (#1193) 2017-11-09 17:49:06 -08:00
failure_test.py Improve error message printing and suppression. (#2104) 2018-05-20 12:13:14 -07:00
microbenchmarks.py Move calls to ray.worker.cleanup into tearDown part of tests for isolation. (#1433) 2018-01-22 22:54:56 -08:00
monitor_test.py Start chain replicated GCS with Ray (#1538) 2018-03-07 10:18:58 -08:00
multi_node_test.py [xray] Add Travis build for testing xray on Linux. (#2047) 2018-05-13 21:22:01 -07:00
recursion_test.py Switch Python indentation from 2 spaces to 4 spaces. (#726) 2017-07-13 21:53:57 +00:00
runtest.py Use flake8-comprehensions (#1976) 2018-05-20 16:15:06 -07:00
stress_tests.py [xray] Add Travis build for testing xray on Linux. (#2047) 2018-05-13 21:22:01 -07:00
tensorflow_test.py Use flake8-comprehensions (#1976) 2018-05-20 16:15:06 -07:00
xray_test.py Lint Python files with Yapf (#1872) 2018-04-11 10:11:35 -07:00