One-sample linear rank tests are considered for the case where the observations are not independent but come from an autoregressive process. It is proposed to apply the tests under these circumstances to certain transformations of the observations, rather than to the observations themselves. Then the tests have asymptotically the same properties as under independence, both under the hypothesis and under contiguous location alternatives. In particular, they are asymptotically distribution-free.
"One-Sample Rank Tests Under Autoregressive Dependence." Ann. Statist. 6 (4) 836 - 845, July, 1978. https://doi.org/10.1214/aos/1176344257