gus-caribe / voidsafe

A "null-safe-like" approach to Python programming language.
MIT License
1 stars 0 forks source link

Adaptation: Python files Metadata #31

Closed felalmeida closed 6 months ago

felalmeida commented 7 months ago

In the Python files it's a best practice to include the encoding on which that file was written for the interpreter to be "sure" of the encoding it will use to read the file.

It's typically the first line (or second, after shebang) of the file.

Here's an example (with shebang):

#!/usr/bin/python3
# -*- coding: UTF-8 -*-
gus-caribe commented 7 months ago

As mentioned at #30, the present issue will solve both the shebang and the encoding problems reported.

gus-caribe commented 7 months ago

A Pull Request has been opened to merge proposed adaptations to the develop branch.

Note that we've applied #!/usr/bin/env python3 shebang to guarantee that your shell will execute the scripts using the latest Python3 version added to your path, wherever it is installed.

The encoding has been added with lowercase, as determined in the PEP mentioned.

The pull request will stay open until the end of the week or until further approval.

gus-caribe commented 6 months ago

-merged-