At some New York public schools, most of the kids failed state tests, data released last week showed. Yet at the Success Academy charter in Flatbush, no one did.

That’s right. Not a single student at SA Flatbush flunked either the math or the reading test. Kudos — that’s impressive.

Since 2013, notes Success Academy, only two other city schools notched a 100 percent pass rate. And unlike SA Flatbush, where 98 percent of the kids are minorities and 82 percent qualify for a free or reduced-cost lunch, those other two had vastly different demographics.

And it wasn’t just the SA network’s Flatbush school that saw a remarkable “success” rate: Of the 7,405 kids who took the tests at all the Success Academy schools, 99 percent passed math and 90 percent made the grade in reading. That’s stunning.

Though not surprising: Year after year, SA charters, which serve 17,000 students, wind up among the best-performing schools not just in the city but in the state.

Other charters, of course, do well, too: In the city, the pass rate for all charters beat the rate for regular public schools by 15 points in math and 10 points in reading.

The sad news? Mayor Bill de Blasio refuses to let charters grow, because the regular schools (which, unlike most charters, are union-run) can’t compete, and Hizzoner puts the unions before kids.

Tens of thousands of kids desperate for a charter seat languish on wait lists. They’re trapped in schools where most kids fail — when they could be learning at places like Success, where almost no one does.