jacobbudin / city-score

Score and rank US cities and towns to find the best city for you 📍
MIT License
0 stars 1 forks source link

add TrailLink source #7

Closed grelas closed 11 months ago

grelas commented 12 months ago
  1. 👍
  2. is there a "prettier" for python?
  3. 👍
jacobbudin commented 12 months ago

@grelas

is there a "prettier" for python?

Many Python projects use flake8 for code conformity. Like many developers, I cheat using autopep8.

The problem with string quotes though is the Python coding style standard (a k a PEP8, readable version), specifically skirts this:

In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability.

I'll fix the code formatting project-wide later, but you can reformat your code if you want.