One-dimensional repulsive Fermi gas in a tunable periodic potential