diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7eddf32..4812aed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,12 +2,12 @@ repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: @@ -15,13 +15,13 @@ repos: - pep8-naming==0.13.3 - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 + rev: v2.5.0 hooks: - id: setup-cfg-fmt args: [--min-py3-version=3.6] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-json - id: check-toml @@ -33,7 +33,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort (python) diff --git a/casement/registry.py b/casement/registry.py index 1210c10..6b88236 100644 --- a/casement/registry.py +++ b/casement/registry.py @@ -3,6 +3,7 @@ Each node in the tree is called a key. Each key can contain both subkeys and data entries called values. """ + import six from six.moves import winreg diff --git a/setup.cfg b/setup.cfg index ef0c19d..03d5610 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ url = https://github.com/blurstudio/casement author = Blur Studio author_email = opensource@blur.com license = LGPL-3.0 -license_file = LICENSE +license_files = LICENSE classifiers = Development Status :: 3 - Alpha Environment :: Console @@ -18,8 +18,8 @@ classifiers = Operating System :: Microsoft :: Windows :: Windows 7 Operating System :: Microsoft :: Windows :: Windows 10 Programming Language :: Python - Programming Language :: Python :: 2 Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy platform = any @@ -33,7 +33,7 @@ install_requires = pywin32 six winshell>=0.6 -python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.* +python_requires = >=3.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.* include_package_data = True setup_requires = setuptools diff --git a/tests/test_env_var.py b/tests/test_env_var.py index eaeb94e..ca2bd3e 100644 --- a/tests/test_env_var.py +++ b/tests/test_env_var.py @@ -13,6 +13,7 @@ Note: See test_registry.py to see how testing registry keys/entries are handled. """ + from __future__ import absolute_import import os diff --git a/tests/test_registry.py b/tests/test_registry.py index 0fecb52..36a3f35 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -13,6 +13,7 @@ Note: See test_env_var.py to see how testing Environment variables are handled. """ + # TODO: Look into using a custom testing registry hive to handle all testing # without the need for the host to actually have these registry keys. We should # only enable testing of registry modifications once this is resolved.