Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Ruff #229

Merged
merged 3 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
Loading