text_lint.sequencers.textfile.TextFileSequencer

class text_lint.sequencers.textfile.TextFileSequencer(file_path: str)[source]

Bases: SequencerBase[str]

Iterator that returns the lines of a text file.

__init__(file_path: str) None[source]

Initialize TextFileSequencer instances.

Parameters:

file_path (str) – The text file to load lines from.

__next__() str[source]

Return the next line in the text file.

Return type:

str

configure(schema: Schema) None[source]

Apply schema configuration to the text file.

Parameters:

schema (Schema) – The schema containing the required configuration.