Any time excep July and August.
Especially recommende would be end of Septembre (23 to 25) because it's the yearly festival of the city, also 23th April, Sant Jordi's day, a very beautiful local Catalan celebration, or during Xmas.
April.
Anytime except August.
probably may or late september, not too hot and not much chance of rain or wind.