In PyPugJS, when you want to add an HTML5 data attribute without a value, you need to set it to "true" rather than leaving it empty
"true"
div(uk-grid="true") div
This will generate
<div uk-grid> <div></div> </div>