We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2434cab commit ea657c4Copy full SHA for ea657c4
cpp_linter_hooks/util.py
@@ -1,11 +1,15 @@
1
import sys
2
import shutil
3
import subprocess
4
-import tomllib
5
from pathlib import Path
6
import logging
7
from typing import Optional, List
8
+try:
9
+ import tomllib
10
+except ModuleNotFoundError:
11
+ import tomli as tomllib
12
+
13
LOG = logging.getLogger(__name__)
14
15
pyproject.toml
@@ -34,7 +34,7 @@ classifiers = [
34
dependencies = [
35
"clang-format==20.1.7",
36
"clang-tidy==20.1.0",
37
- "tomllib; python_version < '3.11'",
+ "tomli>=1.1.0; python_version < '3.11'",
38
]
39
dynamic = ["version"]
40
0 commit comments