Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Sep 21, 2023
1 parent a733ffe commit 6811e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ repos:
# Use the config file specific to each subproject so that each
# project can specify its own first/third-party packages.
args: ["--config-root=python/", "--resolve-all-configs"]
files: (python|bench/ann)/.*
files: python/.*
types_or: [python, cython, pyi]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
files: (python|bench/ann)/.*
files: python/.*
# Explicitly specify the pyproject.toml at the repo root, not per-project.
args: ["--config", "pyproject.toml"]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ["--config=.flake8"]
files: (python|bench/ann)/.*
files: python/.*$
types: [file]
types_or: [python, cython]
additional_dependencies: ["flake8-force"]
Expand Down
5 changes: 0 additions & 5 deletions python/raft-ann-bench/src/raft-ann-bench/run/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@

import yaml

RAFT_HOME = os.getenv("RAFT_HOME")
if RAFT_HOME is None:
RAFT_HOME = os.path.realpath(os.path.join(__file__, "..", "..", ".."))


def positive_int(input_str: str) -> int:
try:
Expand Down Expand Up @@ -190,7 +186,6 @@ def main():
help="dataset whose configuration file will be used",
default="glove-100-inner",
)

parser.add_argument(
"--dataset-path",
help="path to dataset folder, by default will look in "
Expand Down

0 comments on commit 6811e61

Please sign in to comment.