David Arnold
d17136cd04
fix: redirect cssutils logger to file ( #28692 )
2024-12-08 13:42:18 +05:30
David Arnold
3d71f594d8
refactor: bench class inauguration ( #28158 )
...
* feat: Add bench layout classes and configuration handler
Bench layout: (`frappe.bench`)
- Layout by env variable, e.g. FRAPPE_BENCH_PATH, FRAPPE_SITES_PATH, etc
- Detecting modules and apps by the presence of a sentinel .frappe file
- Site is scoped by frappe.local.site_name (thread safe)
Config handler: (`frappe.bench.sites{,.site}.config`)
- Optional config registry for better discovery; warning if not specced
- Env variable overload with `FRAPPE_` prefix
* chore: type frappe.config
* chore: type frappe.bencher
* chore: py310 compat
2024-12-06 19:07:34 +01:00
Akhil Narang
ad1ed62652
fix: handle ZoneInfoNotFoundError
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-06 16:01:43 +05:30
Gavin D'souza
00163f5bf4
fix: Re-define utils to match previous behaviour
2024-12-06 15:43:33 +05:30
Gavin D'souza
c6580b5880
refactor: Replace pytz to std lib zoneinfo & datetime
...
Signed-off-by: Gavin D'souza <gavin.dsouza@switchup.de>
2024-12-06 15:43:33 +05:30
David Arnold
75377aaaf5
refactor(typing): type filters ( #28218 )
...
* chore(typing): type filters
* chore(typing): type filters for get_list et al
* fix: dashboard chart filter expression
* test: fix case with new-style right hand object to equality check
* chore: place new typed filter under typing verification
* chore: remove debug print statment
* chore: inverse logic of type guard
* fix: add float to filter value types
* chore: clarify value naming
2024-12-04 23:18:53 +00:00
Akhil Narang
1a45cd3ab0
chore(cint): explicitly handle NoneTypes
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 15:36:25 +05:30
Akhil Narang
9c9349b74f
Merge pull request #28658 from akhilnarang/flt-explicit-handle-nonetype
...
chore(flt): explicitly handle NoneTypes
2024-12-04 15:21:42 +05:30
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Akhil Narang
cfeb1224e6
chore(flt): explicitly handle NoneTypes
...
These were implicitly handled due to the catch-all 0.0 return, but type checkers break here, and a lot of places depend on this behaviour
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 12:54:46 +05:30
David Arnold
e2a8c7fed3
test: fix universal type checker based on downstream use and more testing ( #28619 )
...
* test: fix universal type checker based on downstream use and more testing
* fix: type validation error reporting
* fix: types; various
* chore: switch off test-time type checking
still too many errors
2024-11-28 23:35:32 +01:00
David Arnold
9edd44de01
ci: this adds universal runtime typechecking during tests to test runners ( #28554 )
...
* ci: this adds universal runtime typechecking during tests to test runners
* ci: add configuration options for test-time type checking
2024-11-28 15:11:30 +00:00
David Arnold
a4014ab1c4
fix(json-serialization): prioritize explicit __json__ before iterable ( #28597 )
2024-11-27 13:11:53 +00:00
David Arnold
d8fab7a64f
chore: use deprecation dumpster for remaining deprecated decorator ( #28555 )
2024-11-23 23:50:56 +00:00
David Arnold
2f559e0fa9
chore: make the type clear ( #28524 )
2024-11-19 22:40:26 +00:00
David Arnold
223640d8a7
feat: render debug timer ( #28501 )
2024-11-18 12:59:23 +00:00
David Arnold
7065489759
fix: jinja template html errors ( #28490 )
2024-11-17 10:35:09 +00:00
David Arnold
67f2b056b4
feat: add hook to allow downstream apps to add auto-loading instrumentation for their doctypes ( #28479 )
2024-11-15 13:04:20 +00:00
Abdeali Chharchhoda
066f7c66de
fix: add summary html element to acceptable_elements
2024-11-15 16:54:18 +05:30
Akhil Narang
9700c10ba7
Merge pull request #28447 from akhilnarang/changelog-skip-develop
...
fix(change_log): skip checking if `develop` is part of the detected version
2024-11-13 16:41:58 +05:30
Akhil Narang
504ef2e9e4
Merge pull request #28401 from barredterra/wrong-enc-key
...
fix(Login): don't prevent login if encryption key is invalid
2024-11-13 13:55:47 +05:30
Akhil Narang
d7b74e9d30
fix(change_log): skip checking if develop is part of the detected version
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-11-13 13:26:46 +05:30
Abdeali Chharchhoda
e9bbe03354
chore: Improve caching decorators docstring
2024-11-10 12:37:46 +05:30
barredterra
21060acddc
fix: handle missing encryption key
2024-11-07 19:05:34 +01:00
Suraj Shetty
b629a58094
Merge pull request #28126 from Abdeali099/new-app-template-fixes
2024-11-05 12:47:37 +05:30
Gavin D'souza
ecb4795ed3
feat: Enable Sentry Sampling
...
Closes https://github.com/frappe/frappe/issues/28245
2024-10-28 11:27:51 +01:00
David Arnold
8d6f8bce01
chore(typing): add some more typing to frappe.__init__ ( #28215 )
2024-10-21 11:30:11 +00:00
David Arnold
91a737d8fe
chore(typing): fix some (exotic) type errors treewide ( #28210 )
2024-10-21 10:02:04 +00:00
David Arnold
2abba7b51b
fix: don't force values into the string type ( #28185 )
2024-10-19 19:00:25 +00:00
David Arnold
75b58802ad
fix(docref): json serialization ( #28182 )
2024-10-19 14:11:51 +00:00
David Arnold
8b1180ba27
refactor: server script autocompletion to be more generic ( #28180 )
2024-10-19 12:56:24 +00:00
David Arnold
7a9748a417
refactor: permutate implementation to assert no functional change in preparation ( #28160 )
2024-10-18 02:40:06 +02:00
Corentin Forler
ee73ed8c02
fix: Make background print status translatable
2024-10-16 12:13:55 +02:00
Abdeali Chharchhoda
dabaf45b17
refactor: Removed first empty line from github workflows template
2024-10-15 00:44:35 +05:30
Abdeali Chharchhoda
c23e342048
refactor: Enhance gitignore_template with additional directories and files
2024-10-15 00:37:17 +05:30
David Arnold
3873580bba
fix: persistent per-site record creation log ( #28070 )
2024-10-10 09:32:59 +00:00
David Arnold
bd06784d1b
ci: Run optimized python and control warnings ( #28063 )
...
* ci: run doubly optimized python
* ci: control python warnings
2024-10-09 13:29:30 +00:00
David Arnold
8cfeb156df
devx: add deprecation dumpster ( #27887 )
...
* feat: Add deprecation_dumpster.py file
* docs: add jovial and jocose docstring for frappe/deprecation_dumpster.py
* refactor: fill the dumpster with its own kind
* refactor: move to the deprecation dumpster
* chore: color coding class
* fix: only check import error when import errors
2024-10-08 18:56:10 +02:00
David Arnold
7e453ea515
Testing Module ( #28000 )
...
* refactor: add create_handler alongside create_logger
* fix: bench helper click exceptions for --help (2nd attempt)
* fix: increase logging level missing test records
* fix: reorganize test runner into testing module and refine logging
* fix: semgrep complaint
* chore: remove unused code; only keep deprecation proxies
* fix: import statements
* fix: output & string processing
2024-10-07 09:46:49 +02:00
avc
da28df59e9
fix: try catch for license text fetching ( #27526 )
2024-10-06 23:26:23 +02:00
David
b66d16da5d
fix: cli helper wrapper (oversight #27753 )
2024-09-26 12:38:59 +02:00
Akhil Narang
44447d27e0
fix(format_timedelta): don't try to call .total_seconds() if a string was passed in
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-23 16:15:24 +05:30
Akhil Narang
ce3b15c3e1
fix: update comment
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-23 16:14:12 +05:30
Raffael Meyer
d3248612cb
fix: money in words ( #27190 )
2024-09-21 16:24:39 +02:00
Raffael Meyer
b91cacdd18
feat!: enhance Language to become more of a Locale ( #27178 )
2024-09-21 16:02:58 +02:00
Akhil Narang
ce613e2454
Merge pull request #27689 from pa1narendra/social-login-key-keycloak
...
feat(auth): Added keycloak as a social login provider
2024-09-19 18:14:28 +05:30
Akhil Narang
71b869a975
refactor(keycloak): set API endpoint while getting list of oauth providers
...
urljoin() just adds the base URL to the relative path, here our base URL has an extra route in the path which isn't added in.
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-19 15:31:32 +05:30
Akhil Narang
c2001919a5
chore(decrypt): mention the key in error if specificed
...
This would allow the user to know which key is failing, and just update that if required
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-16 12:51:49 +05:30
David
202cce8a0d
refactor: type hint cli context
2024-09-13 17:25:43 +02:00
David (aider)
0e92dc3a97
feat: friendly error wrapper on cli
2024-09-13 17:07:04 +02:00