Skip to content

Commit 5b441ce

Browse files
authored
Merge pull request #110 from ury-erp/pytoml
add: pyproject.toml file
2 parents 6e474d8 + ae29c7f commit 5b441ce

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[project]
2+
name = "ury"
3+
authors = [
4+
{ name = "Tridz Technologies", email = "info@tridz.com"}
5+
]
6+
description = "A Complete Restaurant Order Taking Software"
7+
requires-python = ">=3.10"
8+
readme = "README.md"
9+
dynamic = ["version"]
10+
dependencies = [
11+
# "frappe~=15.0.0" # Installed and managed by bench.
12+
]
13+
14+
[build-system]
15+
requires = ["flit_core >=3.4,<4"]
16+
build-backend = "flit_core.buildapi"
17+
18+
# These dependencies are only installed when developer mode is enabled
19+
[tool.bench.dev-dependencies]
20+
# package_name = "~=1.1.0"
21+
22+
[tool.ruff]
23+
line-length = 110
24+
target-version = "py310"
25+
26+
[tool.ruff.lint]
27+
select = [
28+
"F",
29+
"E",
30+
"W",
31+
"I",
32+
"UP",
33+
"B",
34+
"RUF",
35+
]
36+
ignore = [
37+
"B017", # assertRaises(Exception) - should be more specific
38+
"B018", # useless expression, not assigned to anything
39+
"B023", # function doesn't bind loop variable - will have last iteration's value
40+
"B904", # raise inside except without from
41+
"E101", # indentation contains mixed spaces and tabs
42+
"E402", # module level import not at top of file
43+
"E501", # line too long
44+
"E741", # ambiguous variable name
45+
"F401", # "unused" imports
46+
"F403", # can't detect undefined names from * import
47+
"F405", # can't detect undefined names from * import
48+
"F722", # syntax error in forward type annotation
49+
"W191", # indentation contains tabs
50+
]
51+
typing-modules = ["frappe.types.DF"]
52+
53+
[tool.ruff.format]
54+
quote-style = "double"
55+
indent-style = "tab"
56+
docstring-code-format = true

0 commit comments

Comments
 (0)