"""Rules that define how assigns should be made... currentmodule:: dotenv_linter.violations.assigns.. autoclass:: SpacedAssignViolation"""fromtyping_extensionsimportfinalfromdotenv_linter.violations.baseimportBaseFSTViolation
[docs]@finalclassSpacedAssignViolation(BaseFSTViolation):""" Restricts to write ``=`` signs with extra spaces. Reasoning: Valid ``shell`` syntax requires to write assigns without any spaces. Solution: Remove any spaces between the ``=`` char. Example:: # Correct: KEY=1 OTHER= # Wrong: KEY = 1 OTHER = .. versionadded:: 0.1.0 """code=200error_template='Found spaced assign'