Linting: Passing Builds via Github - Hedera-Lang-Learn/hedera GitHub Wiki
Passing Builds via Github
Python Linting
-
Install
isort
andflake8
into either your local virtual environment terminal or directly into the Dockerhedera-django
container terminalpip install isort flake8
After installing you can now run the the
isort
command in the terminal to check import sortingisort -c **/*.py
and then run the following
flake8
command 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-npm
container terminal
or to check/fix the linting errorsnpm run lint
npm run lint:fix