4 ms·
the inline tests / class documentation via classvars is a very neat idea! did you come up with that for fixit or is it a common pattern i just happen to not hav
by zem 3y ago
the inline tests / class documentation via classvars is a very neat idea! did you come up with that for fixit or is it a common pattern i just happen to not have encountered before?
- amethyst 3y agoIt's a pattern that I have used multiple times in the past, and greatly appreciate for modular components like this, but in this specific case, this was the pattern used by the original authors of Fixit 1, and I was very happy to maintain and improve upon that during the redesign.
- iib 3y agoWhere can I see this? I didn't find the pattern in the repo or the article.
- amethyst 3y agoThe user guide has a short section on writing custom rules [1], and the API reference also covers the attributes of a LintRule [2]. I plan to document this in more detail at some point in the future. 1: https://fixit.readthedocs.io/en/latest/guide.html#custom-rules https://fixit.readthedocs.io/en/latest/guide.html#custom-rul... 2: https://fixit.readthedocs.io/en/latest/api.html#lint-rules https://fixit.readthedocs.io/en/latest/api.html#lint-rules