Skip to content

Commit 497360e

Browse files
committed
update after isort
1 parent 2534765 commit 497360e

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

tinydb/pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tool.black]
2+
line-length = 70
3+
target-version = ["py312"]
4+
exclude = '''
5+
/(
6+
\.git
7+
| venv
8+
| migrations
9+
| node_modules
10+
)/
11+
'''
12+
13+
14+
[tool.ruff]
15+
target-version = "py312"
16+
exclude = [".git", "venv", "migrations", "node_modules"]
17+
line-length = 70
18+
19+
[tool.ruff.lint]
20+
select = ["E", "F", "I", "RUF100"]
21+
ignore = ["E501"] # Line length is handled by Black

tinydb/read.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from pprint import pprint
2+
23
from tinydb import Query, TinyDB
34

45
countries_db = TinyDB("ten_countries.json")

tinydb/update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from pprint import pprint
2+
23
from tinydb import TinyDB, where
34

45
with TinyDB("ten_countries.json") as countries_db:
56
countries_tb = countries_db.table(name="countries")
67
countries_tb.update(
7-
{"population": 130_575_786}, where("location") == "Mexico"
8+
{"population": 130_575_786},
9+
where("location") == "Mexico",
810
)
911
countries_tb.update(
1012
{"source": "National quarterly update"},

0 commit comments

Comments
 (0)