This project was helded in the 1st edition of 2024 of Rocketseat NLW. The idea is simple, generate an barcode image after receiving a product-code.
- Virtual Env
1. pip install virtualenv
2. python -m venv .venv
- Linter for python
1. pip install pylintgenerate linter config file
2. pylint --generate-rcfile > .pylintrc- Python Pre-commit 3.1 Create a filename
touch .pre-commit-config.yaml or echo '' > .pre-commit-config.yaml3.2 Append this info
repos:
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the source
"--rcfile=.pylintrc", # Link to your config file
"--load-plugins=pylint.extensions.docparams", # Load an extension
]3.3 Install the configurations
pre-commit install