Skip to content

Commit 13d10d7

Browse files
committed
chore: move to ruff
1 parent 3321450 commit 13d10d7

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

devenv.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ in
2626

2727
git-hooks.hooks = {
2828
shellcheck.enable = true;
29-
black.enable = true;
29+
ruff.enable = true;
30+
ruff-format.enable = true;
3031
typos.enable = true;
3132
yamllint.enable = true;
3233
yamlfmt.enable = true;
@@ -41,7 +42,6 @@ in
4142
]
4243
);
4344
markdownlint.enable = true;
44-
autoflake.enable = true;
4545
};
4646

4747
scripts.format.exec = ''

dlt_source_notion/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""A source loading entities and lists from notion (notion.com)"""
22

33
from enum import StrEnum
4-
import json
54
from typing import Any, Callable, Generator, Iterable, List, Sequence, TypeVar
65
from uuid import UUID
76
import dlt
@@ -155,7 +154,6 @@ def database_resource(
155154
database_id: str,
156155
column_name_projection: ColumnNameProjection,
157156
) -> Iterable[Page]:
158-
159157
client = get_notion_client()
160158

161159
db: Database = client.databases.retrieve(database_id=database_id)

pyproject.toml

-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ dev = [
2626
"pytest>=8.3.4",
2727
]
2828

29-
[tool.black]
30-
include = '.*py$'
31-
32-
[tool.autoflake]
33-
remove-all-unused-imports = true
34-
remove-unused-variables = true
35-
3629
classifiers = [
3730
"Programming Language :: Python :: 3.12",
3831
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)