From 341182e3783e48110c1a801f50ef607eaa457c04 Mon Sep 17 00:00:00 2001 From: baydinvladislav Date: Tue, 9 Jan 2024 22:23:19 +0300 Subject: [PATCH 1/3] add ruff repo to pre-commit --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5ea58c..6becf5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,8 @@ repos: rev: 2.3.5 hooks: - id: editorconfig-checker +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.11 + hooks: + - id: ruff + - id: ruff-format From 63ff488b736f156b8098b97ad6533c51dff178d4 Mon Sep 17 00:00:00 2001 From: baydinvladislav Date: Thu, 11 Jan 2024 22:49:27 +0300 Subject: [PATCH 2/3] remove empty line --- examples/databases/create_database.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/databases/create_database.py b/examples/databases/create_database.py index ec4d39f..83f4a3b 100644 --- a/examples/databases/create_database.py +++ b/examples/databases/create_database.py @@ -84,7 +84,6 @@ def create_database(parent_id: str, db_name: str) -> dict: if __name__ == "__main__": - parent_id, db_name = manual_inputs() newdb = create_database(parent_id=parent_id, db_name=db_name) print(f"\n\nDatabase {db_name} created at {newdb['url']}\n") From 4e4684978aaa043f1da5016d05e6eaeddaf23e8a Mon Sep 17 00:00:00 2001 From: baydinvladislav Date: Sat, 13 Jan 2024 13:26:20 +0300 Subject: [PATCH 3/3] remove the redundant hooks --- .pre-commit-config.yaml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6becf5a..2f44f0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,9 @@ repos: -- repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black -- repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - args: ["--profile", "black", "--filter-files"] -- repo: https://github.com/pycqa/flake8 - rev: 6.1.0 - hooks: - - id: flake8 - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.27.1 hooks: - id: markdownlint + - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.900 hooks: @@ -23,15 +11,12 @@ repos: additional_dependencies: ["httpx"] args: [] files: "^notion_client\/.*" -- repo: https://github.com/pycqa/pydocstyle - rev: 6.0.0 - hooks: - - id: pydocstyle - files: "^notion_client\/.*" + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: 2.3.5 hooks: - id: editorconfig-checker + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.11 hooks: