forked from Infinidat/infi.clickhouse_orm
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (88 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (88 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "clickhouse_orm"
version = "3.2.0"
readme = "README.md"
description = "A simple ORM for working with the Clickhouse database. Maintainance fork of infi.clickhouse_orm."
authors = [
{name = "Oliver Margetts", email = "oliver.margetts@gmail.com"}
]
license = { text = "BSD-3-Clause" }
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
]
# requires_python = ">=3.11"
dependencies = [
"requests",
"pytz",
]
[project.optional-dependencies]
dev = [
"docker==7.1.0",
"pytest==9.0.2",
"ruff==0.14.14",
]
[project.urls]
Homepage = "https://github.com/SuadeLabs/clickhouse_orm"
Repository = "https://github.com/SuadeLabs/clickhouse_orm"
[tool.ruff]
line-length = 120
target-version = "py311"
# File Selection
force-exclude = true # don't check excluded files even if passed directly
extend-exclude = ["./venv"]
[tool.ruff.lint]
# Rule Selection
# to read about ruff rules check this: https://beta.ruff.rs/docs/rules/
select = [
"E",
"W", # pycodestyle: E, W
"F", # pyflakes: F
"B", # flake8-bugbear: B
"I", # isort: I
"ISC", # flake8-implicit-str-concat: ISC
"N", # pep8-naming: N
"PYI", # flake8-pyi: PYI
"RUF013", # ruff: RUF (Specifically implicit-optional)
"RUF022", # unsorted-dunder-all: https://docs.astral.sh/ruff/rules/unsorted-dunder-all/
"RUF023", # unsorted-dunder-slots: https://docs.astral.sh/ruff/rules/unsorted-dunder-slots/
"RUF101", # redirected-noqa: https://docs.astral.sh/ruff/rules/redirected-noqa/
"T10", # flake8-debugger
"TC", # flake8-type-checking
"UP", # pyupgrade: U
]
ignore = [
"B904", # raising without from clause
"B905", # zip without strict parameter
"E501", # line-too-long
"F403", # from module import *
"F405", # name defined from star imports
"N802", # function names often mirror clickhouse function names
"N806", # dynamically created classes
"N999", # migration module names: 1234.py
"UP031", # percent formatting
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
relative-imports-order = "closest-to-furthest"
combine-as-imports = true
split-on-trailing-comma = false
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]