diff --git a/.gitignore b/.gitignore index a18bd12..d271cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -320,3 +320,4 @@ tags *.pyc .tox *.orig +.vscode/* diff --git a/dev-requirements b/dev-requirements deleted file mode 100644 index 0d5b74d..0000000 --- a/dev-requirements +++ /dev/null @@ -1,10 +0,0 @@ -# requirements to run development steps - -# also change in tox.ini -flake8>=4.0.1 -flake8-polyfill -pylint>=2.11.0 -tox>=3.0.0 -tox-pyenv -# conflicting in py27 -importlib-metadata>=0.12 diff --git a/pyproject.toml b/pyproject.toml index 3be36d1..5e93932 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,4 +79,5 @@ ignore = [ ] [tool.ruff.lint.isort] +required-imports = ["from __future__ import annotations"] known-first-party = ["cmakelint"] diff --git a/src/cmakelint/__main__.py b/src/cmakelint/__main__.py index 769e1a6..37b21bb 100644 --- a/src/cmakelint/__main__.py +++ b/src/cmakelint/__main__.py @@ -11,6 +11,8 @@ License for the specific language governing permissions and limitations under the License. """ +from __future__ import annotations + import getopt import os import re diff --git a/src/cmakelint/__version__.py b/src/cmakelint/__version__.py index 94dc080..331a5d1 100644 --- a/src/cmakelint/__version__.py +++ b/src/cmakelint/__version__.py @@ -1 +1,3 @@ +from __future__ import annotations + VERSION = "1.4.2"