Ankush Menat | 20f8519 | 2022-06-29 12:23:17 +0530 | [diff] [blame] | 1 | [project] |
| 2 | name = "erpnext" |
| 3 | authors = [ |
| 4 | { name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io"} |
| 5 | ] |
| 6 | description = "Open Source ERP" |
Ankush Menat | 57d08b7 | 2022-06-30 15:49:43 +0530 | [diff] [blame] | 7 | requires-python = ">=3.10" |
Ankush Menat | 20f8519 | 2022-06-29 12:23:17 +0530 | [diff] [blame] | 8 | readme = "README.md" |
| 9 | dynamic = ["version"] |
| 10 | dependencies = [ |
| 11 | # Core dependencies |
Ankush Menat | f957a84 | 2023-06-12 21:46:06 +0530 | [diff] [blame] | 12 | "pycountry~=22.3.5", |
| 13 | "Unidecode~=1.3.6", |
Johannes Obermeier | 2a90fad | 2023-02-19 15:06:05 +0100 | [diff] [blame] | 14 | "barcodenumber~=0.5.0", |
marination | e774503 | 2023-03-31 16:11:00 +0530 | [diff] [blame] | 15 | "rapidfuzz~=2.15.0", |
barredterra | aa18b25 | 2023-07-13 13:29:07 +0200 | [diff] [blame] | 16 | "holidays~=0.28", |
Ankush Menat | 20f8519 | 2022-06-29 12:23:17 +0530 | [diff] [blame] | 17 | |
| 18 | # integration dependencies |
Ankush Menat | 20f8519 | 2022-06-29 12:23:17 +0530 | [diff] [blame] | 19 | "googlemaps", |
| 20 | "plaid-python~=7.2.1", |
| 21 | "python-youtube~=0.8.0", |
Sagar Vora | 2e9f531 | 2022-09-01 11:27:01 +0530 | [diff] [blame] | 22 | |
| 23 | # Not used directly - required by PyQRCode for PNG generation |
| 24 | "pypng~=0.20220715.0", |
Ankush Menat | 20f8519 | 2022-06-29 12:23:17 +0530 | [diff] [blame] | 25 | ] |
| 26 | |
| 27 | [build-system] |
| 28 | requires = ["flit_core >=3.4,<4"] |
| 29 | build-backend = "flit_core.buildapi" |
| 30 | |
Ankush Menat | 294f562 | 2024-02-07 18:30:35 +0530 | [diff] [blame] | 31 | [tool.bench.frappe-dependencies] |
| 32 | frappe = ">=16.0.0-dev,<17.0.0" |
barredterra | 8afb779 | 2024-03-26 12:22:19 +0100 | [diff] [blame] | 33 | |
| 34 | [tool.ruff] |
| 35 | line-length = 110 |
| 36 | target-version = "py310" |
| 37 | |
| 38 | [tool.ruff.lint] |
| 39 | select = [ |
| 40 | "F", |
| 41 | "E", |
| 42 | "W", |
| 43 | "I", |
| 44 | "UP", |
| 45 | "B", |
| 46 | "RUF", |
| 47 | ] |
| 48 | ignore = [ |
| 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 | ] |
| 64 | typing-modules = ["frappe.types.DF"] |
| 65 | |
| 66 | [tool.ruff.format] |
| 67 | quote-style = "double" |
| 68 | indent-style = "tab" |
| 69 | docstring-code-format = true |