-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (74 loc) · 2.02 KB
/
pyproject.toml
File metadata and controls
87 lines (74 loc) · 2.02 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
# Implementation of a library for handling Greek texts
# Copyright (C) 2025 Alexios Zavras
# SPDX-License-Identifier: LGPL-2.1-or-later
[project]
name = "greek"
version = "0.1.0"
description = "Python code for handling Greek language"
readme = "README.md"
authors = [
{ name = "Alexios Zavras (zvr)", email = "github@zvr.gr" }
]
requires-python = ">=3.13"
dependencies = []
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[dependency-groups]
dev = [
"ruff>=0.9.2",
"pytest>=8.3.4",
]
[tool.pytest.ini_options]
addopts = "-rA -V"
minversion = "8.3"
pythonpath = ["src"]
testpaths = [
"tests",
]
[tool.ruff]
fix = false
indent-width = 4
line-length = 120
output-format = "full"
# output-format = "grouped"
preview = true
required-version = ">=0.9"
show-fixes = true
[tool.ruff.format]
docstring-code-format = false
indent-style = "space"
line-ending = "native"
preview = true
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
allowed-confusables = [
"Α", "Β", "Ε", "Ζ", "Η", "Ι", "Κ", "Μ", "Ν", "Ο", "Ρ", "Τ", "Υ", "Χ",
"α", "γ", "ι", "ν", "ο", "ρ", "σ", "υ",
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
fixable = ["ALL"]
ignore = [ "COM812", ]
logger-objects = ["logger"]
preview = true
# anything but "AIR", "ANN", "D", "NPY", "PD",
select = [
"A", "ARG", "ASYNC", "ASYNC1", "B", "BLE", "C", "C4", "C90", "COM", "CPY",
"DJ", "DOC", "DTZ", "E", "EM", "ERA", "EXE", "F", "FA", "FAST", "FBT", "FIX",
"FLY", "FURB", "G", "I", "ICN", "INP", "INT", "ISC", "LOG", "N", "PERF",
"PGH", "PIE", "PL", "PT", "PTH", "PYI", "Q", "R", "RET", "RSE", "RUF", "S",
"SIM", "SLF", "SLOT", "T10", "T20", "TC", "TD", "TID", "TRY", "UP", "W", "YTT",
]
unfixable = []
[tool.ruff.lint.isort]
case-sensitive = true
force-sort-within-sections = false
from-first = false
lines-between-types = 0
split-on-trailing-comma = false
[tool.ruff.lint.pylint]
max-branches = 10
max-statements = 40
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ["S101"] # assert() allowed in tests