python-escpos / python-escpos

Python library to manipulate ESC/POS printers
https://python-escpos.readthedocs.io
MIT License
978 stars 280 forks source link

Refactor to using f-strings #608

Closed patkan closed 6 months ago

patkan commented 6 months ago

Description

Use f-strings everywhere

Tested with

If applicable, please describe with which device you have tested.

codecov[bot] commented 6 months ago

Codecov Report

Merging #608 (9fbec35) into master (dcc71ce) will not change coverage. The diff coverage is 30.43%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #608 +/- ## ======================================= Coverage 80.98% 80.98% ======================================= Files 21 21 Lines 1620 1620 Branches 288 288 ======================================= Hits 1312 1312 Misses 226 226 Partials 82 82 ``` | [Flag](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | `80.80% <30.43%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | Coverage Δ | | |---|---|---| | [src/escpos/capabilities.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9jYXBhYmlsaXRpZXMucHk=) | `83.51% <100.00%> (ø)` | | | [src/escpos/config.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9jb25maWcucHk=) | `82.97% <ø> (ø)` | | | [src/escpos/magicencode.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9tYWdpY2VuY29kZS5weQ==) | `90.40% <100.00%> (ø)` | | | [src/escpos/escpos.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9lc2Nwb3MucHk=) | `71.32% <50.00%> (ø)` | | | [src/escpos/exceptions.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/608?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9leGNlcHRpb25zLnB5) | `66.08% <0.00%> (ø)` | |