Facts

The appellant, a Moroccan national born in 1976, has been domiciled in Geneva since 26 December 2001. On 9 August 2010, he entered into a registered partnership in Geneva with [B.] , born in 1942, who had left Geneva in 1988 to settle in Marrakech (Morocco), where he occupied a property of 5'600 m2.

By letter of 25 July 2011, the Geneva Cantonal Tax Administration considered that the partners were jointly subject to unlimited tax liability from 1 January 2010 in the canton of Geneva. By decisions of 13 March 2013, and then decisions on objection of 14 May 2013, the tax authority confirmed the joint and unlimited taxation for direct federal tax, cantonal and communal tax for 2010.

By judgment of 24 November 2014, the Geneva Administrative Court of First Instance dismissed the appeals of both partners. By judgment of 3 November 2015, the Geneva Court of Justice, Administrative Chamber, dismissed the appellant's appeal.

According to the findings of the prior authority, the appellant wished to be taxed individually; it nevertheless found that he lived in his partner's duplex, acted as a majordomo, had no financial independence (30'000 fr. received in 2010 as 'salary', without an employment contract), that housing, food, vehicle expenses and lifestyle were covered by [B.] , and that the relationship had lasted since 2007. The appellant produced no evidence demonstrating a separate life. The Court of Justice refused, by anticipatory assessment of evidence, to hear two witnesses who were supposed to demonstrate the absence of a common household.

The appellant lodged a public law appeal with the Federal Supreme Court, seeking annulment of the cantonal judgment and remittal of the case. He complains of an inaccurate establishment of the facts and of a violation of his right to be heard (art. 29 para. 2 Cst.). The Cantonal Tax Administration and the Federal Tax Administration seek dismissal of the appeal. The Court of Justice waived the filing of observations.

Cases 2C_1128/2015 (cantonal tax) and 2C_1130/2015 (direct federal tax) were joined by the Federal Supreme Court.

Considerations

The two cases are joined, the legal question being resolved in the same way under federal law and under harmonised cantonal law, a single decision having been rendered by the Court of Justice (art. 71 FSCA and 24 FCPA; ATF 135 II 260 consid. 1.3.1).

The Federal Supreme Court bases its reasoning on the facts established by the prior authority (art. 105 para. 1 FSCA), unless the facts were established in a manifestly inaccurate manner or in breach of the law (art. 105 para. 2 FSCA), which must be explained in a detailed manner (art. 97 para. 1 FSCA). A complaint of arbitrariness in the assessment of evidence presupposes that the judge manifestly failed to understand the scope of an argument, omitted without serious reason an important argument, or drew untenable inferences (ATF 136 III 552 consid. 4.2). The complaint concerning the failure to take into account an appeal by [B.] is dismissed, the prior authority not having based its reasoning on this point.

As regards the right to be heard (art. 29 para. 2 Cst.), it includes the right to have one's relevant offers of evidence taken, except for a non-arbitrary anticipatory assessment allowing the judge to conclude that the proposed evidence would not alter his conviction (ATF 142 II 218 consid. 2.3). The prior authority did not establish a hierarchy between documents and testimony; it merely assessed in advance that the evidence by…