When you come back to France you are immediately considered a tax resident on your date of arrival. Middle if the year, end of year it does not matter. You have to register yourself with local tax office when you do so.
All your foreign bank accounts are already known by french tax office, even if you are not resident. French passport holders are reported worldwide by banks to french authorities at opening and once a year, with balance and interests earned.
You must declare all accounts, even those closed within the last 12 months.
Auto entrepreneur is the way to go for 2 years then close it after that if you managed to reach the max revenue amount.
This is the cheapest way to maximise your profit. Cheap tax.
Even foreigners use this and become resident for 2 years in France then close it, declare it and wire it back to their home country (Belgium etc) and legally leave France after that.