Linting: Passing Builds via Github - Hedera-Lang-Learn/hedera GitHub Wiki
Passing Builds via Github
Python Linting
-
Install
isortandflake8into either your local virtual environment terminal or directly into the Dockerhedera-djangocontainer terminalpip install isort flake8After installing you can now run the the
isortcommand in the terminal to check import sortingisort -c **/*.pyand then run the following
flake8command to lint pythonflake8 --show-source databasetext hedera lattices lemmatization lemmatized_text vocab_list lti
Javascript Linting
- The linting packages should be installed from the setup instructions as noted above. We can run the following command in either your local terminal or in the docker
hedera-npmcontainer terminal
or to check/fix the linting errorsnpm run lintnpm run lint:fix