ci: GHA basic format & pre-commit (#2309)

diff --git a/tests/test_smart_ptr.py b/tests/test_smart_ptr.py
index d275b3d..c9267f6 100644
--- a/tests/test_smart_ptr.py
+++ b/tests/test_smart_ptr.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 import pytest
 from pybind11_tests import smart_ptr as m
 from pybind11_tests import ConstructorStats