[ckan-changes] [ckan/ckan] 487c13: Improvement according to C407 flake8 comprehension...

David Read noreply at github.com
Fri Nov 8 22:16:36 UTC 2019


  Branch: refs/heads/flake8-comprehensions
  Home:   https://github.com/ckan/ckan
  Commit: 487c13e8525e593894f91bfa774378618d38c510
      https://github.com/ckan/ckan/commit/487c13e8525e593894f91bfa774378618d38c510
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-11-08 (Fri, 08 Nov 2019)

  Changed paths:
    M ckan/lib/dictization/model_dictize.py
    M ckan/tests/legacy/functional/api/model/test_group.py
    M ckan/tests/legacy/functional/api/model/test_vocabulary.py
    M ckan/tests/legacy/lib/test_solr_search_index.py
    M ckan/tests/lib/search/test_index.py
    M ckan/tests/lib/test_datapreview.py
    M ckan/tests/logic/action/test_create.py
    M ckan/tests/logic/action/test_delete.py
    M ckan/tests/logic/action/test_get.py
    M ckan/tests/logic/action/test_update.py
    M ckan/tests/logic/test_conversion.py

  Log Message:
  -----------
  Improvement according to C407 flake8 comprehension rule

C407 Unnecessary list comprehension - 'sorted' can take a generator


  Commit: 9a13a4b71a458d943d9110b0a814e79ff7f90792
      https://github.com/ckan/ckan/commit/9a13a4b71a458d943d9110b0a814e79ff7f90792
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-11-08 (Fri, 08 Nov 2019)

  Changed paths:
    M ckan/tests/legacy/lib/test_resource_search.py

  Log Message:
  -----------
  Improvement according to C406 flake8 comprehension rule

C406 Unnecessary (list/tuple) literal - rewrite as a dict literal.


  Commit: 44cf609e7e0455fd234e9199f1d38a129ec1ee05
      https://github.com/ckan/ckan/commit/44cf609e7e0455fd234e9199f1d38a129ec1ee05
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-11-08 (Fri, 08 Nov 2019)

  Changed paths:
    M ckan/tests/helpers.py

  Log Message:
  -----------
  Improvement according to C409 flake8 comprehension rule

C409 Unnecessary (list/tuple) passed to tuple() - (remove the outer call to tuple()/rewrite as a tuple literal).


Compare: https://github.com/ckan/ckan/compare/aaa4d1a76127...44cf609e7e04


More information about the ckan-changes mailing list