From d70f9b9ada7ee239e7ec694dd1347ea5facd4fe0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Aug 2021 17:01:08 +0200 Subject: [PATCH] module: update pylint to version 2.10 * module: update pylint requirement from ~2.9 to ~2.10 (#47) Updates the requirements on [pylint](https://github.com/PyCQA/pylint) to permit the latest version. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/v2.9.0...v2.10.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development ... Signed-off-by: dependabot[bot] * module: specify encoding when opening files Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cn --- kube-stale-resources.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kube-stale-resources.py b/kube-stale-resources.py index e547d62..ceea38e 100644 --- a/kube-stale-resources.py +++ b/kube-stale-resources.py @@ -136,14 +136,14 @@ def main(): if args.blacklist_file: print(f'Reading blacklist file {args.blacklist_file}...') - with open(args.blacklist_file, 'r') as f: + with open(args.blacklist_file, 'r', encoding='utf-8') as f: blacklist_regexs += list(filter(lambda x: not re.match(r'^\s*$', x), f.read().split('\n'))) print('Retrieving target state...') if args.target_manifests_file == '-': target_tuples = get_target_namespaced_resources(sys.stdin) else: - with open(args.target_manifests_file, 'r') as f: + with open(args.target_manifests_file, 'r', encoding='utf-8') as f: target_tuples = get_target_namespaced_resources(f) print(f'Retrieving live state from {args.k8s_apiserver_url}...') diff --git a/pyproject.toml b/pyproject.toml index 5f2e8bb..154aa64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ requests = "~2.26" [tool.poetry.dev-dependencies] mypy = "0.910" -pylint = "~2.9" +pylint = "~2.10" rope = "~0.19" types-PyYAML = "~5.4" types-requests = "~2.25"