AntoineArchy / Lettings-FR

Refactoring d'une base de code comportant de nombreuses dettes techniques. Mise en place d'un pipeline CI/CD avec GitHub Actions et Docker.
1 stars 0 forks source link

Mise en cohérence avec le Linting #3

Closed AntoineArchy closed 12 months ago

AntoineArchy commented 1 year ago

Directement après installation du dépot, lors de la commande 'flake8', plusieurs erreurs :

(venv) archy@ArchyMothership:~/Oc Formation/Projets/p13/intro/second/Lettings-FR$ flake8
./oc_lettings_site/views.py:7:1: E303 too many blank lines (4)
./oc_lettings_site/views.py:7:100: E501 line too long (198 > 99 characters)
./oc_lettings_site/views.py:8:100: E501 line too long (153 > 99 characters)
./oc_lettings_site/views.py:9:100: E501 line too long (174 > 99 characters)
./oc_lettings_site/views.py:10:1: E302 expected 2 blank lines, found 4
./oc_lettings_site/views.py:13:100: E501 line too long (131 > 99 characters)
./oc_lettings_site/views.py:14:100: E501 line too long (140 > 99 characters)
./oc_lettings_site/views.py:15:1: E302 expected 2 blank lines, found 1
./oc_lettings_site/views.py:21:1: E265 block comment should start with '# '
./oc_lettings_site/views.py:21:100: E501 line too long (189 > 99 characters)
./oc_lettings_site/views.py:22:100: E501 line too long (216 > 99 characters)
./oc_lettings_site/views.py:23:100: E501 line too long (391 > 99 characters)
./oc_lettings_site/views.py:32:100: E501 line too long (112 > 99 characters)
./oc_lettings_site/views.py:34:1: E302 expected 2 blank lines, found 1
./oc_lettings_site/views.py:40:100: E501 line too long (147 > 99 characters)
./oc_lettings_site/views.py:41:100: E501 line too long (100 > 99 characters)
./oc_lettings_site/views.py:42:1: E302 expected 2 blank lines, found 1
./oc_lettings_site/settings.py:103:1: E265 block comment should start with '# '
./oc_lettings_site/settings.py:114:40: E231 missing whitespace after ','

Le linting code doit être corrigé en accord avec les principes de la PEP pour obtenir un linting valide