Skip to content

Commit

Permalink
reverted accidental upgrade to python 3.10 to 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiyokoyama committed Jun 6, 2024
1 parent 792fa54 commit 0d99f67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"]
Expand All @@ -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`.
Expand All @@ -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
Expand Down

0 comments on commit 0d99f67

Please sign in to comment.