Skip to content

Commit d26310b

Browse files
committed
try to add precommit
1 parent 4a5a5c7 commit d26310b

File tree

4 files changed

+223
-3
lines changed

4 files changed

+223
-3
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- repo: https://github.com/astral-sh/ruff-pre-commit
2+
# Ruff version.
3+
rev: v0.1.4
4+
hooks:
5+
# Run the linter.
6+
- id: ruff
7+
# Run the formatter.
8+
- id: ruff-format

poetry.lock

Lines changed: 208 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ authors = ["Oleg Ovcharuk <vgvoleg@gmail.com>"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "^3.8"
9+
python = "^3.9"
1010
ydb = "^3.18.1"
1111

1212

13+
[tool.poetry.group.dev.dependencies]
14+
pre-commit = "^4.0.1"
15+
ruff = "^0.6.9"
16+
1317
[build-system]
1418
requires = ["poetry-core"]
1519
build-backend = "poetry.core.masonry.api"

ydb_dbapi/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import ydb
2+

0 commit comments

Comments
 (0)