autolab / Tango

Standalone RESTful autograding service
http://www.autolabproject.com/
Apache License 2.0
48 stars 60 forks source link

Add linting pre-commit hook, and do linting #211

Closed oliverli closed 3 years ago

oliverli commented 3 years ago

Installed the pre-commit package, and used it to create a pre-commit hook that runs some of its own linting fixes (lines 7-10 in .pre-commit-config.yaml) and Black.

Created a new requirements-dev.txt with the two development dependencies.

Ran the two linters. Black initially had some trouble with vmms/tashiSSH.py and vmms/ec2SSH.py due to a bug in Black, which was bypassed by first running Black with the --fast flag.