Adopt black as a code formatter #6

Merged
Jaculabilis merged 3 commits from tvb/black-style into develop 2021-06-03 03:25:23 +00:00
Owner

This change adopts the opinionated formatter black as the code style tool for Amanuensis. Black's formatting is, for the most part, in agreement with or not significantly different from the current code style. The main difference is that black enforces double-quotes for strings, but because black does the formatting for you instead of requiring user to fix it, you can still write strings with single quotes and have black clean it up afterwards.

Black is currently configured to ignore the v0.1 codebase that has not been integrated into the newer development push. These exclusions can be removed as the rest of the codebase is pulled in.

This change adopts the opinionated formatter `black` as the code style tool for Amanuensis. Black's formatting is, for the most part, in agreement with or not significantly different from the current code style. The main difference is that black enforces double-quotes for strings, but because black does the formatting for you instead of requiring user to fix it, you can still write strings with single quotes and have black clean it up afterwards. Black is currently configured to ignore the v0.1 codebase that has not been integrated into the newer development push. These exclusions can be removed as the rest of the codebase is pulled in.
Jaculabilis added 3 commits 2021-06-03 03:21:53 +00:00
Jaculabilis merged commit 2982f6ea0f into develop 2021-06-03 03:25:23 +00:00
Jaculabilis deleted branch tvb/black-style 2021-06-03 03:25:27 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Jaculabilis/amanuensis#6
No description provided.