drf-extra-fields icon indicating copy to clipboard operation
drf-extra-fields copied to clipboard

Modernize the code for Python 3.7

Open ulgens opened this issue 3 years ago • 1 comments

  • Applies pyupgrade --py37-plus
  • Removed mock from requirements_dev.txt (replaced by unittest.mock)
  • Simplify string formatting with a f-string

ulgens avatar Jun 12 '22 12:06 ulgens

Codecov Report

Merging #178 (2b1da9b) into master (3dbb40b) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   93.88%   93.88%           
=======================================
  Files           4        4           
  Lines         474      474           
=======================================
  Hits          445      445           
  Misses         29       29           
Impacted Files Coverage Δ
tests/test_fields.py 96.33% <100.00%> (ø)
tests/utils.py 83.33% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3dbb40b...2b1da9b. Read the comment docs.

codecov-commenter avatar Jun 12 '22 12:06 codecov-commenter