Showing "tick0" with tickmode auto

I want to plot some data using px.lines and I have xaxis tickmode set to auto. I want to show the first and last tick with the first and last x data.

I don’t see anything about it in the documentation, I think the only solution would be for me to replicate the auto behaviour with a custom method and using array mode instead.

Or is there an easy plotly solution?