FlukeAndFeather / stickleback

Automated behavioral event detection in bio-logging data.
0 stars 2 forks source link

Introduce pre-commit Python code-formatter #6

Open brodyberg opened 3 years ago

brodyberg commented 3 years ago

Run the Python code-formatter Black via a pre-commit hook. The objective of this is that all code will end up looking the same regardless of author transparently.

brodyberg commented 3 years ago

Please assign to @brodyberg

brodyberg commented 3 years ago

Playing around - I have code-formatting and pytest running prior to a commit:

Screen Shot 2021-10-01 at 1 12 14 AM

And pytest integrated into VS Code:

Screen Shot 2021-10-01 at 1 10 36 AM
brodyberg commented 3 years ago

Also got code coverage working - will move the test files out to the root-level test folder in order to clear the test files out of the coverage report.

Screen Shot 2021-10-01 at 1 24 21 AM