Page MenuHomeDevCentral

Update Black style
ClosedPublic

Authored by dereckson on Jun 7 2026, 10:19.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 8, 14:40
Unknown Object (File)
Thu, Aug 6, 19:16
Unknown Object (File)
Thu, Aug 6, 01:05
Unknown Object (File)
Wed, Aug 5, 09:26
Unknown Object (File)
Tue, Aug 4, 15:20
Unknown Object (File)
Fri, Jul 31, 17:06
Unknown Object (File)
Sat, Jul 25, 15:53
Unknown Object (File)
Sat, Jul 25, 14:54
Subscribers
None

Details

Summary

Black style now enforces the number of blank line above a method or class.
As such, our symmetric choice of two blank lines between import and first
definition doesn't comply with black style anymore.

Test Plan

'{path="' + value + '"}' == "{path=\"" + value + "\"}" returns True

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Flake8 comments unrelated to Black.

Also:

$ find . -type f -name '*.py' | xargs black
All done! ✨ 🍰 ✨
81 files left unchanged.

As we remove lines, and only amend one, an edit to .git-blame-ignore-revs isn't useful, line around the edit points to c56da24dc in git blame.

This revision is now accepted and ready to land.Jun 7 2026, 10:22
This revision was landed with ongoing or failed builds.Jun 7 2026, 10:22
This revision was automatically updated to reflect the committed changes.