Skip to content

Latest commit

 

History

History

ep035

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Today I talk about the differences between single quote and double quote strings and some advice on which to choose -- also featuring pre-commit-hooks and black!

Setup commands

virtualenv venv

. venv/bin/activate

pip install black

pip install pre-commit-hooks

Interactive examples

Python

'foo' == "foo"
'hello " world'
"hello \" world"

Bash

black t.py
cat t.py
double-quote-string-fixer t.py
cat t.py
black --help
# black --skip-string-normalization t.py
# black -S t.py