vinayak-mehta / present

A terminal-based presentation tool with colors and effects.
https://present.readthedocs.io
Apache License 2.0
4.32k stars 165 forks source link

Undefined name: import warnings for lines 120 and 123 #97

Closed cclauss closed 3 years ago

cclauss commented 3 years ago

flake8 testing of https://github.com/vinayak-mehta/present on Python 3.9.0rc2+

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./present/slide.py:119:13: F821 undefined name 'warnings'
            warnings.warn("Codio speed < 1, setting it to 1")
            ^
./present/slide.py:122:13: F821 undefined name 'warnings'
            warnings.warn("Codio speed > 10, setting it to 10")
            ^
2     F821 undefined name 'warnings'
2

https://flake8.pycqa.org/en/latest/user/error-codes.html

On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead, these tests are focus on runtime safety and correctness: