blob: 25db9c3261e3b97d4252c83a47d08e77f1c4f090 [file] [log] [blame]
Ankush Menat20f85192022-06-29 12:23:17 +05301[project]
2name = "erpnext"
3authors = [
4 { name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io"}
5]
6description = "Open Source ERP"
Ankush Menat57d08b72022-06-30 15:49:43 +05307requires-python = ">=3.10"
Ankush Menat20f85192022-06-29 12:23:17 +05308readme = "README.md"
9dynamic = ["version"]
10dependencies = [
11 # Core dependencies
Ankush Menatf957a842023-06-12 21:46:06 +053012 "pycountry~=22.3.5",
13 "Unidecode~=1.3.6",
Johannes Obermeier2a90fad2023-02-19 15:06:05 +010014 "barcodenumber~=0.5.0",
marinatione7745032023-03-31 16:11:00 +053015 "rapidfuzz~=2.15.0",
barredterraaa18b252023-07-13 13:29:07 +020016 "holidays~=0.28",
Ankush Menat20f85192022-06-29 12:23:17 +053017
18 # integration dependencies
Ankush Menat20f85192022-06-29 12:23:17 +053019 "googlemaps",
20 "plaid-python~=7.2.1",
21 "python-youtube~=0.8.0",
Sagar Vora2e9f5312022-09-01 11:27:01 +053022
23 # Not used directly - required by PyQRCode for PNG generation
24 "pypng~=0.20220715.0",
Ankush Menat20f85192022-06-29 12:23:17 +053025]
26
27[build-system]
28requires = ["flit_core >=3.4,<4"]
29build-backend = "flit_core.buildapi"
30
Ankush Menat294f5622024-02-07 18:30:35 +053031[tool.bench.frappe-dependencies]
32frappe = ">=16.0.0-dev,<17.0.0"
barredterra8afb7792024-03-26 12:22:19 +010033
34[tool.ruff]
35line-length = 110
36target-version = "py310"
37
38[tool.ruff.lint]
39select = [
40 "F",
41 "E",
42 "W",
43 "I",
44 "UP",
45 "B",
46 "RUF",
47]
48ignore = [
49 "B017", # assertRaises(Exception) - should be more specific
50 "B018", # useless expression, not assigned to anything
51 "B023", # function doesn't bind loop variable - will have last iteration's value
52 "B904", # raise inside except without from
53 "E101", # indentation contains mixed spaces and tabs
54 "E402", # module level import not at top of file
55 "E501", # line too long
56 "E741", # ambiguous variable name
57 "F401", # "unused" imports
58 "F403", # can't detect undefined names from * import
59 "F405", # can't detect undefined names from * import
60 "F722", # syntax error in forward type annotation
61 "W191", # indentation contains tabs
62 "RUF001", # string contains ambiguous unicode character
63]
64typing-modules = ["frappe.types.DF"]
65
66[tool.ruff.format]
67quote-style = "double"
68indent-style = "tab"
69docstring-code-format = true