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

David Read noreply at github.com
Fri Nov 8 22:06:21 UTC 2019


  Branch: refs/heads/flake8-comprehensions
  Home:   https://github.com/ckan/ckan
  Commit: 79342991f1b5811325b4d7226a51fa4158a703e4
      https://github.com/ckan/ckan/commit/79342991f1b5811325b4d7226a51fa4158a703e4
  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: 22e2df7b575fee05bd48eaadc1d1b6eeb99fa67e
      https://github.com/ckan/ckan/commit/22e2df7b575fee05bd48eaadc1d1b6eeb99fa67e
  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: aaa4d1a76127d5e2f798b107db15042da2709f82
      https://github.com/ckan/ckan/commit/aaa4d1a76127d5e2f798b107db15042da2709f82
  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/79342991f1b5%5E...aaa4d1a76127


More information about the ckan-changes mailing list