diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 552da2e..689e9ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,17 +33,8 @@ repos: hooks: - id: mypy pass_filenames: false - args: [pytket/phir, tests] + args: [.] additional_dependencies: [ - lark-parser==0.12.0, pytest==7.4.2, types-setuptools==68.2.0.0, ] - -# Building docs on precommit seems like this will be slow. -# - repo: https://github.com/pre-commit/mirrors-sphinx -# rev: v4.2.0 -# hooks: -# - id: sphinx -# stages: [commit] -# language_version: python3.11 diff --git a/pyproject.toml b/pyproject.toml index 758a596..aafb143 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,15 +7,11 @@ name = "pytket-phir" version = "0.0.1" description = "A python library" requires-python = ">=3.10" -authors = [{name = "Author", email = "author@email.com" }] +authors = [{name = "Author", email = "author@quantinuum.com" }] [tool.setuptools.packages.find] where = ["."] -[tool.ruff.pydocstyle] -# Use Google-style docstrings. -convention = "google" - [tool.pytest.ini_options] pythonpath = [ "." diff --git a/ruff.toml b/ruff.toml index 825b5ed..7dc820d 100644 --- a/ruff.toml +++ b/ruff.toml @@ -47,3 +47,6 @@ ignore = [] [per-file-ignores] "__init__.py" = ["F401"] # module imported but unused "tests/*" = ["S101"] # Use of `assert` detected + +[pydocstyle] +convention = "google"