Linting: Passing Builds via Github - Hedera-Lang-Learn/hedera GitHub Wiki

Passing Builds via Github

Python Linting
  • Install isort and flake8 into either your local virtual environment terminal or directly into the Docker hedera-django container terminal

    pip install isort flake8
    

    After installing you can now run the the isort command in the terminal to check import sorting

    isort -c **/*.py
    

    and then run the following flake8 command to lint python

    flake8 --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
    npm run lint
    
    or to check/fix the linting errors
    npm run lint:fix