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] <support@github.com>

* module: specify encoding when opening files

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cn <cn@mycrobase.de>
This commit is contained in:
dependabot[bot] 2021-08-26 17:01:08 +02:00 committed by GitHub
parent 9a3bccaf07
commit d70f9b9ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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}...')

View File

@ -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"