A monkey-patch for black uncompromising Python source code reformatter, coercing it to use tabs for indentation instead of cargo cult spaces.
Find a file
2023-10-09 02:55:35 +03:00
.ci Initial commit 2023-10-09 02:55:35 +03:00
.github Initial commit 2023-10-09 02:55:35 +03:00
antiflash Initial commit 2023-10-09 02:55:35 +03:00
tests Initial commit 2023-10-09 02:55:35 +03:00
.editorconfig Initial commit 2023-10-09 02:55:35 +03:00
.gitignore Initial commit 2023-10-09 02:55:35 +03:00
.gitlab-ci.yml Initial commit 2023-10-09 02:55:35 +03:00
Code_Of_Conduct.md Initial commit 2023-10-09 02:55:35 +03:00
MANIFEST.in Initial commit 2023-10-09 02:55:35 +03:00
pyproject.toml Initial commit 2023-10-09 02:55:35 +03:00
ReadMe.md Initial commit 2023-10-09 02:55:35 +03:00
UNLICENSE Initial commit 2023-10-09 02:55:35 +03:00

antiflash.py Unlicensed work

wheel (GitLab) wheel (GHA via nightly.link) GitLab Build Status GitLab Coverage GitHub Actions Libraries.io Status Code style: antiflash

A monkey-patch for black uncompromising Python source code reformatter, coercing it to use tabs for indentation instead of cargo cult spaces.

antiflash is white coating applied to nuclear-carrying bombers to protect them from overheating from light emitted by nuclear explosion.

Limitations

  1. It monkey-patches black to use tabs. It doesn't create any branches in black. It just replaces hardcoded 4 spaces with a hardcoded \t. After the monkey-patch is applied, black itself will use tabs.
  2. So, importing this package produces a side effect. So it is only useful in situations where only antiflash is needed, not antiflash and black simultaniously.