The inversion rule doesn't apply when the initial negative modifies a noun, as in hardly a month. You could also say not a month, and the same idea would apply. These do not trigger inversion because hardly a and not a modify month, not the verb of the sentence.