From 0d99f675bef658c7f358465f90c2a585a667bb58 Mon Sep 17 00:00:00 2001 From: naokiyokoyama Date: Thu, 6 Jun 2024 12:41:31 -0400 Subject: [PATCH] reverted accidental upgrade to python 3.10 to 3.9 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac8502c..ecd8ed1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: rev: 23.10.0 hooks: - id: black - language_version: python3.10 + language_version: python3.9 args: ['--config', 'pyproject.toml'] # we want this to refer to `bdai/pyproject.toml` verbose: true - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/pyproject.toml b/pyproject.toml index b81c518..3fe19df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ authors = [ {name = "Naoki Yokoyama", email = "nyokoyama@theaiinstitute.com"}, ] readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.9" dependencies = [ "torch >= 1.10.1", "numpy >= 1.22.4", @@ -92,8 +92,8 @@ line-length = 120 # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -# Assume Python 3.10 -target-version = "py310" +# Assume Python 3.9 +target-version = "py39" [tool.ruff.per-file-ignores] "__init__.py" = ["F401"] @@ -104,7 +104,7 @@ max-complexity = 10 [tool.black] line-length = 120 -target-version = ['py310'] +target-version = ['py39'] include = '\.pyi?$' # `extend-exclude` is not honored when `black` is passed a file path explicitly, # as is typical when `black` is invoked via `pre-commit`. @@ -122,7 +122,7 @@ relative_files = true # mypy configuration [tool.mypy] -python_version = "3.10" +python_version = "3.9" disallow_untyped_defs = true ignore_missing_imports = true explicit_package_bases = true