/training-py

python training

Primary LanguagePython

Customize VsCode settings

cp settings.json /mnt/<drive_replace_me>/Users/<userId_replace_me_here>/AppData/Roaming/Code/User/settings.json

I choose Carmel Case

codesmelling with pylint/black:

pylint --generate-rcfile > .pylintrc

reformatting with pre-commit:

pip install -r requirements.txt
cat <<- ECHO >|.pre-commit-config.yaml
repos:
  - repo: https://github.com/psf/black
    rev: 22.3.0
    hooks:
      - id: black
        args: [--line-length=88]
        language_version: python3.10
ECHO
pre-commit install
# testing with cli prior to posting with git.
pre-commit run --all-files

tips:

https://github.com/guettli/python-tips

notes:

https://stackoverflow.com/search?tab=votes&q=user%3a229602%20%5bpython%5d&searchOn=3 https://stackoverflow.com/users/125382/mak https://stackoverflow.com/users/633961/guettli