diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c49c48..6b01c4d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: codespell - repo: https://github.com/asottile/reorder_python_imports - rev: v3.8.3 + rev: v3.8.4 hooks: - id: reorder-python-imports args: @@ -24,7 +24,7 @@ repos: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v3.0.0 + rev: v3.1.0 hooks: - id: pyupgrade args: diff --git a/test_autoflake.py b/test_autoflake.py index 9f7c436..170fcdb 100755 --- a/test_autoflake.py +++ b/test_autoflake.py @@ -3113,7 +3113,7 @@ def create_dir(self, path): def create_file(self, path, contents=""): effective_path = self.effective_path(path) self.create_dir(os.path.split(path)[0]) - with open(effective_path, "wt") as f: + with open(effective_path, "w") as f: f.write(contents) def test_no_config_file(self):