cssify icon indicating copy to clipboard operation
cssify copied to clipboard

Convert to Python3

Open douglasdcm opened this issue 2 months ago • 0 comments

Hi, congratulations for the tool. To improve the maintenance, in this MR I am:

  • Converting the code from Python 2 to Python 3 based on Python 3.7
  • Converting string format to f-string to improve the performance
  • Adding type hinting to functions and variables. I inspected it with mypy
  • Running black formatter
  • Adding support to .env file
  • Adding .gitignore

Evidences Unit tests (I was not able to run the Web tests, because I was not able to find the values for environment variables)

nosetests tests/test_cssify.py

----------------------------------------------------------------------
Ran 2 tests in 0.001s

OK

Checking typing consistency

mypy cssify/
Success: no issues found in 2 source files

Execution command line

 python cssify/cssify.py //a
a

douglasdcm avatar Dec 01 '25 05:12 douglasdcm