Skip to content

Commit

Permalink
Switch to Ruff (#229)
Browse files Browse the repository at this point in the history
* add ruff repo to pre-commit

* remove empty line

* remove the redundant hooks
  • Loading branch information
baydinvladislav authored Jan 13, 2024
1 parent 3cca962 commit 81dae7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
26 changes: 8 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
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:
- id: mypy
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:
- id: ruff
- id: ruff-format
1 change: 0 additions & 1 deletion examples/databases/create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 81dae7a

Please sign in to comment.