Skip to content

Commit 81dae7a

Browse files
Switch to Ruff (ramnes#229)
* add ruff repo to pre-commit * remove empty line * remove the redundant hooks
1 parent 3cca962 commit 81dae7a

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.3.0
4-
hooks:
5-
- id: black
6-
- repo: https://github.com/pycqa/isort
7-
rev: 5.12.0
8-
hooks:
9-
- id: isort
10-
args: ["--profile", "black", "--filter-files"]
11-
- repo: https://github.com/pycqa/flake8
12-
rev: 6.1.0
13-
hooks:
14-
- id: flake8
152
- repo: https://github.com/igorshubovych/markdownlint-cli
163
rev: v0.27.1
174
hooks:
185
- id: markdownlint
6+
197
- repo: https://github.com/pre-commit/mirrors-mypy
208
rev: v0.900
219
hooks:
2210
- id: mypy
2311
additional_dependencies: ["httpx"]
2412
args: []
2513
files: "^notion_client\/.*"
26-
- repo: https://github.com/pycqa/pydocstyle
27-
rev: 6.0.0
28-
hooks:
29-
- id: pydocstyle
30-
files: "^notion_client\/.*"
14+
3115
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
3216
rev: 2.3.5
3317
hooks:
3418
- id: editorconfig-checker
19+
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.1.11
22+
hooks:
23+
- id: ruff
24+
- id: ruff-format

examples/databases/create_database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def create_database(parent_id: str, db_name: str) -> dict:
8484

8585

8686
if __name__ == "__main__":
87-
8887
parent_id, db_name = manual_inputs()
8988
newdb = create_database(parent_id=parent_id, db_name=db_name)
9089
print(f"\n\nDatabase {db_name} created at {newdb['url']}\n")

0 commit comments

Comments
 (0)