You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported by: Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve)
In #4, Dave was confused because his misnamed function was not being picked up by the Pygame Zero runtime.
To mitigate this danger, we could include a spell checker that identifies names in the module namespace, which look like misspellings of the names we expect. The spellchecker would emit warnings at startup time, but would not otherwise affect the program's behaviour.
The names we could spellcheck are a relatively small list, including:
Originally reported by: Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve)
In #4, Dave was confused because his misnamed function was not being picked up by the Pygame Zero runtime.
To mitigate this danger, we could include a spell checker that identifies names in the module namespace, which look like misspellings of the names we expect. The spellchecker would emit warnings at startup time, but would not otherwise affect the program's behaviour.
The names we could spellcheck are a relatively small list, including:
draw
update
and theon_mouse_*
,on_key_*
hooksTITLE
,WIDTH
,HEIGHT
andICON
There is a fairly succinct example code for a spellchecker here, which should be adapted to also catch:
The text was updated successfully, but these errors were encountered: