From 8f82834db324ce5cf3de5aa4ede14c6d851456dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Tue, 27 Jun 2023 14:38:00 -0400 Subject: [PATCH] lint all the files so that the `lint.yml` workflow passes --- .github/labeler.yml | 5 ----- .github/workflows/CompatHelper.yml | 2 +- .gitignore | 2 +- gen_resources/generate.jl | 2 +- gen_resources/generator/components.jl | 2 +- gen_resources/generator/dash.jl | 2 +- gen_resources/generator/deploy.jl | 2 +- gen_resources/generator/generator.jl | 2 +- gen_resources/generator/github.jl | 2 +- gen_resources/generator/gitutils.jl | 2 +- src/Components.jl | 2 +- src/Contexts/Contexts.jl | 2 +- src/Dash.jl | 2 +- src/HttpHelpers/router.jl | 16 ++++++++-------- src/app/callbacks.jl | 2 +- src/components_utils/_components_utils.jl | 2 +- src/components_utils/express.jl | 2 +- src/components_utils/table_format.jl | 2 +- src/exceptions.jl | 2 +- src/handler/callback_context.jl | 2 +- src/handler/misc.jl | 2 +- src/handler/processors/assets.jl | 2 +- src/handler/processors/callback.jl | 2 +- src/handler/processors/default_favicon.jl | 2 +- src/handler/processors/dependecies.jl | 2 +- src/handler/processors/index.jl | 2 +- src/handler/processors/layout.jl | 2 +- src/handler/processors/reload_hash.jl | 2 +- src/handler/processors/resource.jl | 8 ++++---- src/init.jl | 2 +- src/init/components.jl | 2 +- src/init/resources.jl | 2 +- src/plotly_base.jl | 2 +- src/server.jl | 2 +- src/utils.jl | 2 +- src/utils/fingerprint.jl | 6 +++--- src/utils/hot_restart.jl | 4 ++-- src/utils/misc.jl | 2 +- src/utils/parse_includes.jl | 2 +- src/utils/paths.jl | 2 +- src/utils/poll.jl | 2 +- test/aqua.jl | 2 +- test/assets_compressed/bootstrap.css | 2 +- test/ci_prepare.jl | 2 +- test/components_utils.jl | 2 +- test/context.jl | 2 +- test/devtools.jl | 8 ++++---- test/hot_reload/app.jl | 2 +- test/hot_reload/file1.jl | 2 +- test/hot_reload/file2.jl | 2 +- test/hot_reload/file3.jl | 2 +- .../base/jl_plotly_graph/jlpg001_plotly_graph.jl | 2 +- .../jl_plotly_graph/jlpg002_plotlyjs_graph.jl | 2 +- .../base/jl_render/jltr001r_undo_redo.jl | 2 +- .../jl_simple_app/jlstr001_jl_with_string.jl | 2 +- .../base/jl_test_meta/jltm001_test_meta.jl | 2 +- .../base/jl_test_meta/jltm002_test_meta.jl | 2 +- test/integration/base/test_meta.py | 4 ++-- test/integration/base/test_plotly_graph.py | 2 +- test/integration/base/test_sample_app.py | 2 +- .../jl_callback_context/jlcbcx002_triggered.jl | 2 +- .../callbacks/jl_test_wildcards/fibonacci_app.jl | 2 +- .../jlcbwc001_todo_app_false.jl | 2 +- .../jl_test_wildcards/jlcbwc001_todo_app_true.jl | 2 +- .../jlcbwc002_fibonacci_app_false.jl | 2 +- .../jlcbwc002_fibonacci_app_true.jl | 2 +- .../jl_test_wildcards/jlcbwc003_same_keys.jl | 2 +- .../callbacks/jl_test_wildcards/todo_app.jl | 2 +- .../integration/callbacks/test_basic_callback.py | 2 +- ...d001_simple_clientside_serverside_callback.jl | 2 +- ...entside_exceptions_halt_subsequent_updates.jl | 2 +- .../jlclsd004_clientside_multiple_outputs.jl | 2 +- ..._clientside_fails_when_returning_a_promise.jl | 2 +- .../jl_clientside/jlclsd006_PreventUpdate.jl | 2 +- .../jl_clientside/jlclsd007_no_update.jl | 2 +- .../jlclsd008_clientside_inline_source.jl | 2 +- test/integration/clientside/test_clientside.py | 2 +- .../components/test_default_children.py | 2 +- .../jl_dash_assets/assets/load_ignored.js | 2 +- .../jl_dash_assets/assets/nested_css/nested.css | 2 +- .../assets/nested_js/load_after.js | 2 +- .../assets/nested_js/load_after10.js | 2 +- .../assets/nested_js/load_after11.js | 2 +- .../assets/nested_js/load_after2.js | 2 +- .../assets/nested_js/load_after3.js | 2 +- .../assets/nested_js/load_after4.js | 2 +- test/integration/dash_assets/test_dash_assets.py | 2 +- .../jl_hot_reload/hr_assets/hot_reload.css | 2 +- .../jl_hot_reload/hr_assets/hot_reload.js | 2 +- test/integration/devtools/test_devtools_ui.py | 2 +- test/integration/devtools/test_props_check.py | 2 +- test/misc.jl | 2 +- test/resources/dash-renderer/dash_renderer.js | 2 +- test/resources/props.min.js | 2 +- test/runtests.jl | 2 +- test/table_format.jl | 2 +- test/utils.jl | 10 +++++----- 97 files changed, 117 insertions(+), 122 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 01a591c..a7b7c34 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -14,8 +14,3 @@ CI: enhancement: - "src/*.jl" - "./*" - - - - - diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index d6ee74a..47a84d4 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -12,4 +12,4 @@ jobs: - name: CompatHelper.main() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: julia -e 'using CompatHelper; CompatHelper.main()' \ No newline at end of file + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.gitignore b/.gitignore index 11cc5cd..6c1cf3c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ docs/build venv *.pyc tmp -gen_resources/build \ No newline at end of file +gen_resources/build diff --git a/gen_resources/generate.jl b/gen_resources/generate.jl index d659ca7..937ff16 100644 --- a/gen_resources/generate.jl +++ b/gen_resources/generate.jl @@ -18,4 +18,4 @@ build_dir = joinpath(@__DIR__, "build") artifact_file = joinpath(@__DIR__, "..", "Artifacts.toml") -generate(ARGS, sources, build_dir, artifact_file) \ No newline at end of file +generate(ARGS, sources, build_dir, artifact_file) diff --git a/gen_resources/generator/components.jl b/gen_resources/generator/components.jl index cb9f1ac..b33edda 100644 --- a/gen_resources/generator/components.jl +++ b/gen_resources/generator/components.jl @@ -185,4 +185,4 @@ function arg_docstring(prop_name, type_object, required, description, indent_num ")", isempty(description) ? "" : string(": ", description) ) -end \ No newline at end of file +end diff --git a/gen_resources/generator/dash.jl b/gen_resources/generator/dash.jl index 220b710..4fcc538 100644 --- a/gen_resources/generator/dash.jl +++ b/gen_resources/generator/dash.jl @@ -157,4 +157,4 @@ function components_module_resources(module_name; name, prefix, metadata_file) ) return meta -end \ No newline at end of file +end diff --git a/gen_resources/generator/deploy.jl b/gen_resources/generator/deploy.jl index 98e04b8..9bcb024 100644 --- a/gen_resources/generator/deploy.jl +++ b/gen_resources/generator/deploy.jl @@ -152,4 +152,4 @@ function upload_to_releases(repo_name, tag, tarball_path; attempts = 3) end end error("Unable to upload $(tarball_path) to GitHub repo $(repo_name) on tag $(tag)") -end \ No newline at end of file +end diff --git a/gen_resources/generator/generator.jl b/gen_resources/generator/generator.jl index 5e31125..f8397f9 100644 --- a/gen_resources/generator/generator.jl +++ b/gen_resources/generator/generator.jl @@ -83,4 +83,4 @@ function generate(ARGS, sources, build_dir, artifact_file) end @info "resource generation done!" -end \ No newline at end of file +end diff --git a/gen_resources/generator/github.jl b/gen_resources/generator/github.jl index d061731..df14ed1 100644 --- a/gen_resources/generator/github.jl +++ b/gen_resources/generator/github.jl @@ -112,4 +112,4 @@ function obtain_token(; outs=stdout, github_api=GitHub.DEFAULT_API) return token end -end \ No newline at end of file +end diff --git a/gen_resources/generator/gitutils.jl b/gen_resources/generator/gitutils.jl index 305de88..826c636 100644 --- a/gen_resources/generator/gitutils.jl +++ b/gen_resources/generator/gitutils.jl @@ -66,4 +66,4 @@ function with_gitcreds(f, username::AbstractString, password::AbstractString) finally Base.shred!(creds) end -end \ No newline at end of file +end diff --git a/src/Components.jl b/src/Components.jl index ebb3103..329d03c 100644 --- a/src/Components.jl +++ b/src/Components.jl @@ -21,4 +21,4 @@ function _validate(non_comp, ids::Set{Symbol}) end function validate(comp::Component) _validate(comp, Set{Symbol}()) -end \ No newline at end of file +end diff --git a/src/Contexts/Contexts.jl b/src/Contexts/Contexts.jl index 1cd53a6..d58ee1c 100644 --- a/src/Contexts/Contexts.jl +++ b/src/Contexts/Contexts.jl @@ -58,4 +58,4 @@ function get_context(context::TaskContextStorage) end end -end \ No newline at end of file +end diff --git a/src/Dash.jl b/src/Dash.jl index a670e46..b15706e 100644 --- a/src/Dash.jl +++ b/src/Dash.jl @@ -112,4 +112,4 @@ function __init__() end -end # module \ No newline at end of file +end # module diff --git a/src/HttpHelpers/router.jl b/src/HttpHelpers/router.jl index 0dda06e..b42f371 100644 --- a/src/HttpHelpers/router.jl +++ b/src/HttpHelpers/router.jl @@ -8,7 +8,7 @@ struct DynamicRoute{ST,VT} <: AbstractRoute static_segments ::ST variables ::VT tailed::Bool - + DynamicRoute(segments_length, static_segments::ST, variables::VT, tailed) where {ST, VT} = new{ST, VT}(segments_length, static_segments, variables, tailed) end @@ -31,7 +31,7 @@ function DynamicRoute(url::AbstractString) tailed = false if url[end] != '/' && (isempty(segments_vector) || segments_vector[end][1] != length(parts)) tailed = true - end + end return DynamicRoute( segments_count, (segments_vector...,), @@ -62,7 +62,7 @@ function try_handle(route_handler::RouteHandler{<:DynamicRoute, FT}, path::Abstr length(parts) != parts_length && return nothing for segment in route.static_segments parts[segment[1]] != segment[2] && return nothing - end + end return route_handler.handler(request, args...;args_tuple(route, parts)...) end @@ -80,8 +80,8 @@ struct Route{RH} method ::Union{Nothing,String} route_handler ::RH Route(method, route_handler::RH) where {RH} = new{RH}(method, route_handler) -end -function Route(handler::Function, method, path::AbstractString) +end +function Route(handler::Function, method, path::AbstractString) return Route( method, RouteHandler( @@ -97,14 +97,14 @@ function try_handle(route::Route, path::AbstractString, request::HTTP.Request, a return try_handle(route.route_handler, path, request, args...) end -@inline function _handle(route_tuple::Tuple, path::AbstractString, request::HTTP.Request, args...) +@inline function _handle(route_tuple::Tuple, path::AbstractString, request::HTTP.Request, args...) res = try_handle(route_tuple[1], path, request, args...) - return !isnothing(res) ? + return !isnothing(res) ? res : _handle(Base.tail(route_tuple), path, request, args...) end -@inline function _handle(route_tuple::Tuple{}, path::AbstractString, request::HTTP.Request, args...) +@inline function _handle(route_tuple::Tuple{}, path::AbstractString, request::HTTP.Request, args...) return HTTP.Response(404) end diff --git a/src/app/callbacks.jl b/src/app/callbacks.jl index 135d707..314a6d8 100644 --- a/src/app/callbacks.jl +++ b/src/app/callbacks.jl @@ -177,4 +177,4 @@ function check_callback_func(func::Function, args_count) !hasmethod(func, NTuple{args_count, Any}) && error("The arguments of the specified callback function do not align with the currently defined callback; please ensure that the arguments to `func` are properly defined.") end function check_callback_func(func, args_count) -end \ No newline at end of file +end diff --git a/src/components_utils/_components_utils.jl b/src/components_utils/_components_utils.jl index 5bdf46a..df8826f 100644 --- a/src/components_utils/_components_utils.jl +++ b/src/components_utils/_components_utils.jl @@ -1,2 +1,2 @@ include("express.jl") -include("table_format.jl") \ No newline at end of file +include("table_format.jl") diff --git a/src/components_utils/express.jl b/src/components_utils/express.jl index 589c39d..aa7cae8 100644 --- a/src/components_utils/express.jl +++ b/src/components_utils/express.jl @@ -99,4 +99,4 @@ function dcc_send_string(writer::Function, data, filename; type = nothing) io = IOBuffer() writer(io, data) return dcc_send_string(String(take!(io)), filename, type = type) -end \ No newline at end of file +end diff --git a/src/components_utils/table_format.jl b/src/components_utils/table_format.jl index 0661c32..86a0ea2 100644 --- a/src/components_utils/table_format.jl +++ b/src/components_utils/table_format.jl @@ -333,4 +333,4 @@ module TableFormat scheme = rounded ? Scheme.percentage_rounded : Scheme.percentage return Format(scheme = scheme, precision = decimals) end -end \ No newline at end of file +end diff --git a/src/exceptions.jl b/src/exceptions.jl index 6770363..fe9d7ee 100644 --- a/src/exceptions.jl +++ b/src/exceptions.jl @@ -4,4 +4,4 @@ end function Base.showerror(io::IO, ex::InvalidCallbackReturnValue) Base.write(io, "Invalid callback return value: ", ex.msg) -end \ No newline at end of file +end diff --git a/src/handler/callback_context.jl b/src/handler/callback_context.jl index d261372..a5f46e1 100644 --- a/src/handler/callback_context.jl +++ b/src/handler/callback_context.jl @@ -47,4 +47,4 @@ function _item_to_dict!(target::Dict{String, Any}, item) target["$(dep_id_string(item.id)).$(item.property)"] = get(item, :value, nothing) end -_item_to_dict!(target::Dict{String, Any}, item::AbstractVector) = _item_to_dict!.(Ref(target), item) \ No newline at end of file +_item_to_dict!(target::Dict{String, Any}, item::AbstractVector) = _item_to_dict!.(Ref(target), item) diff --git a/src/handler/misc.jl b/src/handler/misc.jl index d1b06ab..af71c65 100644 --- a/src/handler/misc.jl +++ b/src/handler/misc.jl @@ -3,4 +3,4 @@ function mime_by_path(path) endswith(path, ".css") && return "text/css" endswith(path, ".map") && return "application/json" return nothing -end \ No newline at end of file +end diff --git a/src/handler/processors/assets.jl b/src/handler/processors/assets.jl index 87c29dc..1e1cd9c 100644 --- a/src/handler/processors/assets.jl +++ b/src/handler/processors/assets.jl @@ -11,4 +11,4 @@ function process_assets(request::HTTP.Request, state::HandlerState; file_path::A return HTTP.Response(404) end -end \ No newline at end of file +end diff --git a/src/handler/processors/callback.jl b/src/handler/processors/callback.jl index b0824e3..4b2c49e 100644 --- a/src/handler/processors/callback.jl +++ b/src/handler/processors/callback.jl @@ -130,4 +130,4 @@ function validate_return_item(callback_id, i, value, spec::Vector) """ )) end -validate_return_item(callback_id, i, value, spec) = nothing \ No newline at end of file +validate_return_item(callback_id, i, value, spec) = nothing diff --git a/src/handler/processors/default_favicon.jl b/src/handler/processors/default_favicon.jl index ecaa0db..a2bdf46 100644 --- a/src/handler/processors/default_favicon.jl +++ b/src/handler/processors/default_favicon.jl @@ -7,4 +7,4 @@ function process_default_favicon(request::HTTP.Request, state::HandlerState) ["Content-Type" => "image/x-icon"], body = ico_contents ) -end \ No newline at end of file +end diff --git a/src/handler/processors/dependecies.jl b/src/handler/processors/dependecies.jl index 52a85a7..87c12f7 100644 --- a/src/handler/processors/dependecies.jl +++ b/src/handler/processors/dependecies.jl @@ -4,4 +4,4 @@ function process_dependencies(request::HTTP.Request, state::HandlerState) ["Content-Type" => "application/json"], body = state.cache.dependencies_json ) -end \ No newline at end of file +end diff --git a/src/handler/processors/index.jl b/src/handler/processors/index.jl index c2ec3cb..c15e48e 100644 --- a/src/handler/processors/index.jl +++ b/src/handler/processors/index.jl @@ -5,4 +5,4 @@ function process_index(request::HTTP.Request, state::HandlerState) ["Content-Type" => "text/html"], body = state.cache.index_string ) -end \ No newline at end of file +end diff --git a/src/handler/processors/layout.jl b/src/handler/processors/layout.jl index bca65ab..c20b522 100644 --- a/src/handler/processors/layout.jl +++ b/src/handler/processors/layout.jl @@ -6,4 +6,4 @@ function process_layout(request::HTTP.Request, state::HandlerState) ["Content-Type" => "application/json"], body = JSON3.write(layout_data(state.app.layout)) ) -end \ No newline at end of file +end diff --git a/src/handler/processors/reload_hash.jl b/src/handler/processors/reload_hash.jl index 38952c1..08f6d88 100644 --- a/src/handler/processors/reload_hash.jl +++ b/src/handler/processors/reload_hash.jl @@ -9,4 +9,4 @@ function process_reload_hash(request::HTTP.Request, state::HandlerState) state.reload.changed_assets = [] return HTTP.Response(200, ["Content-Type" => "application/json"], body = JSON3.write(reload_tuple)) -end \ No newline at end of file +end diff --git a/src/handler/processors/resource.jl b/src/handler/processors/resource.jl index a53b6ae..67471e3 100644 --- a/src/handler/processors/resource.jl +++ b/src/handler/processors/resource.jl @@ -18,8 +18,8 @@ function process_resource(request::HTTP.Request, state::HandlerState; namespace: file_contents = read(joinpath(namespace_files.base_path, relative_path)) mimetype = mime_by_path(relative_path) !isnothing(mimetype) && push!(headers, "Content-Type" => mimetype) - if is_fp - push!(headers, + if is_fp + push!(headers, "Cache-Control" => "public, max-age=31536000" # 1 year ) else @@ -29,10 +29,10 @@ function process_resource(request::HTTP.Request, state::HandlerState; namespace: request_etag == etag && return HTTP.Response(304) end return HTTP.Response(200, headers; body = file_contents) - + catch e !(e isa SystemError) && rethrow(e) #TODO print to log return HTTP.Response(404) end -end \ No newline at end of file +end diff --git a/src/init.jl b/src/init.jl index 7a2cfc4..9f362ae 100644 --- a/src/init.jl +++ b/src/init.jl @@ -1,2 +1,2 @@ include("init/resources.jl") -include("init/components.jl") \ No newline at end of file +include("init/components.jl") diff --git a/src/init/components.jl b/src/init/components.jl index 2b2bbda..7823778 100644 --- a/src/init/components.jl +++ b/src/init/components.jl @@ -63,4 +63,4 @@ macro place_embedded_components() return esc( generate_embeded_components() ) -end \ No newline at end of file +end diff --git a/src/init/resources.jl b/src/init/resources.jl index 3ca38e9..86b8bbd 100644 --- a/src/init/resources.jl +++ b/src/init/resources.jl @@ -79,4 +79,4 @@ function setup_dash_resources() ) ) end -end \ No newline at end of file +end diff --git a/src/plotly_base.jl b/src/plotly_base.jl index 9f89483..ec13830 100644 --- a/src/plotly_base.jl +++ b/src/plotly_base.jl @@ -5,4 +5,4 @@ function DashBase.to_dash(p::PlotlyBase.Plot) data = JSON.lower(p) pop!(data, :config, nothing) return data -end \ No newline at end of file +end diff --git a/src/server.jl b/src/server.jl index 58aa979..accfdae 100644 --- a/src/server.jl +++ b/src/server.jl @@ -78,4 +78,4 @@ function run_server(app::DashApp, end end get_inetaddr(host::String, port::Integer) = Sockets.InetAddr(parse(IPAddr, host), port) -get_inetaddr(host::IPAddr, port::Integer) = Sockets.InetAddr(host, port) \ No newline at end of file +get_inetaddr(host::IPAddr, port::Integer) = Sockets.InetAddr(host, port) diff --git a/src/utils.jl b/src/utils.jl index 3fda3ca..a4a3db4 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -3,4 +3,4 @@ include("utils/paths.jl") include("utils/fingerprint.jl") include("utils/parse_includes.jl") include("utils/poll.jl") -include("utils/hot_restart.jl") \ No newline at end of file +include("utils/hot_restart.jl") diff --git a/src/utils/fingerprint.jl b/src/utils/fingerprint.jl index 1d1d63c..63a3bc8 100644 --- a/src/utils/fingerprint.jl +++ b/src/utils/fingerprint.jl @@ -2,10 +2,10 @@ const fp_version_clean = r"[^\w-]" const fp_cache_regex = r"^v[\w-]+m[0-9a-fA-F]+$" function build_fingerprint(path::AbstractString, version, hash_value) - path_parts = split(path, '/') + path_parts = split(path, '/') (filename, extension) = split(path_parts[end], '.', limit = 2) return string( - join(vcat(path_parts[1:end-1], filename), '/'), + join(vcat(path_parts[1:end-1], filename), '/'), ".v", replace(string(version), fp_version_clean=>"_"), 'm', hash_value, '.', extension @@ -13,7 +13,7 @@ function build_fingerprint(path::AbstractString, version, hash_value) end function parse_fingerprint_path(path::AbstractString) - path_parts = split(path, '/') + path_parts = split(path, '/') name_parts = split(path_parts[end], '.') if length(name_parts) > 2 && occursin(fp_cache_regex, name_parts[2]) origin_path = string( diff --git a/src/utils/hot_restart.jl b/src/utils/hot_restart.jl index 80ad095..4e5af5e 100644 --- a/src/utils/hot_restart.jl +++ b/src/utils/hot_restart.jl @@ -1,5 +1,5 @@ function is_hot_restart_available() - return !isinteractive() && !isempty(Base.PROGRAM_FILE) + return !isinteractive() && !isempty(Base.PROGRAM_FILE) end function hot_restart(func::Function; check_interval = 1., env_key = "IS_HOT_RELOADABLE", suppress_warn = false) if !is_hot_restart_available() @@ -23,7 +23,7 @@ function hot_restart(func::Function; check_interval = 1., env_key = "IS_HOT_RELO wait(task) end catch e - if e isa InterruptException + if e isa InterruptException println("finished") return else diff --git a/src/utils/misc.jl b/src/utils/misc.jl index 585353d..90b3ca7 100644 --- a/src/utils/misc.jl +++ b/src/utils/misc.jl @@ -65,4 +65,4 @@ end sort_by_keys(data) = (;sort!(collect(pairs(data)), by = (x)->x[1])...,) -sorted_json(data) = JSON3.write(sort_by_keys(data)) \ No newline at end of file +sorted_json(data) = JSON3.write(sort_by_keys(data)) diff --git a/src/utils/parse_includes.jl b/src/utils/parse_includes.jl index 0cb066f..5a5fc38 100644 --- a/src/utils/parse_includes.jl +++ b/src/utils/parse_includes.jl @@ -25,4 +25,4 @@ function parse_includes(file::AbstractString) result = Set{String}() parse_includes!(file, result) return result -end \ No newline at end of file +end diff --git a/src/utils/paths.jl b/src/utils/paths.jl index ca0d493..f347413 100644 --- a/src/utils/paths.jl +++ b/src/utils/paths.jl @@ -58,4 +58,4 @@ function pathname_configs(url_base_pathname, requests_pathname_prefix, routes_pa error("requests_pathname_prefix` needs to end with `routes_pathname_prefix`") return (url_base_pathname, requests_pathname_prefix, routes_pathname_prefix) -end \ No newline at end of file +end diff --git a/src/utils/poll.jl b/src/utils/poll.jl index b90697d..888addb 100644 --- a/src/utils/poll.jl +++ b/src/utils/poll.jl @@ -67,4 +67,4 @@ function poll_folders(on_change, folders, initial_watched; interval = 1.) end sleep(interval) end -end \ No newline at end of file +end diff --git a/test/aqua.jl b/test/aqua.jl index 8524b4e..8126aff 100644 --- a/test/aqua.jl +++ b/test/aqua.jl @@ -3,4 +3,4 @@ using Aqua # ideally we get both these tests to work, but: # stale_deps is ignored to help transition from DashCoreComponents # amiguities is ignored because they originate outside the package -Aqua.test_all(Dash; ambiguities=false, stale_deps=false) \ No newline at end of file +Aqua.test_all(Dash; ambiguities=false, stale_deps=false) diff --git a/test/assets_compressed/bootstrap.css b/test/assets_compressed/bootstrap.css index f1e63fe..b756a08 100644 --- a/test/assets_compressed/bootstrap.css +++ b/test/assets_compressed/bootstrap.css @@ -8966,4 +8966,4 @@ a.text-dark:hover, a.text-dark:focus { border: 1px solid #ddd !important; } } -/*# sourceMappingURL=bootstrap.css.map */ \ No newline at end of file +/*# sourceMappingURL=bootstrap.css.map */ diff --git a/test/ci_prepare.jl b/test/ci_prepare.jl index f89184f..4f0a674 100644 --- a/test/ci_prepare.jl +++ b/test/ci_prepare.jl @@ -8,4 +8,4 @@ Pkg.add("HTTP") Pkg.instantiate() Pkg.build("Dash") Pkg.build("HTTP") -Pkg.test("Dash", coverage=true) \ No newline at end of file +Pkg.test("Dash", coverage=true) diff --git a/test/components_utils.jl b/test/components_utils.jl index d908138..8912959 100644 --- a/test/components_utils.jl +++ b/test/components_utils.jl @@ -48,4 +48,4 @@ end @test res[:filename] == "ttt.jpeg" @test res[:type] == "text/csv" @test res[:base64] -end \ No newline at end of file +end diff --git a/test/context.jl b/test/context.jl index a839850..716c31d 100644 --- a/test/context.jl +++ b/test/context.jl @@ -40,4 +40,4 @@ end end @test !has_context(storage) -end \ No newline at end of file +end diff --git a/test/devtools.jl b/test/devtools.jl index 9f09f34..aa762b3 100644 --- a/test/devtools.jl +++ b/test/devtools.jl @@ -22,7 +22,7 @@ using Dash:DevTools @test tools.hot_reload == false @test tools.silence_routes_logging == false @test tools.prune_errors == false - + @test tools.hot_reload_interval ≈ 3. @test tools.hot_reload_watch_interval ≈ 0.5 @test tools.hot_reload_max_retry ≈ 8 @@ -34,7 +34,7 @@ using Dash:DevTools @test tools.hot_reload == true @test tools.silence_routes_logging == true @test tools.prune_errors == true - + @test tools.hot_reload_interval ≈ 3. @test tools.hot_reload_watch_interval ≈ 0.5 @test tools.hot_reload_max_retry ≈ 8 @@ -55,7 +55,7 @@ using Dash:DevTools @test tools.hot_reload == false @test tools.silence_routes_logging == true @test tools.prune_errors == false - + @test tools.hot_reload_interval ≈ 2.2 @test tools.hot_reload_watch_interval ≈ 0.1 @test tools.hot_reload_max_retry ≈ 2 @@ -80,7 +80,7 @@ end @test tools.hot_reload == false @test tools.silence_routes_logging == false @test tools.prune_errors == false - + @test tools.hot_reload_interval ≈ 2.8 @test tools.hot_reload_watch_interval ≈ 0.34 @test tools.hot_reload_max_retry ≈ 7 diff --git a/test/hot_reload/app.jl b/test/hot_reload/app.jl index 1942f10..bc9961c 100644 --- a/test/hot_reload/app.jl +++ b/test/hot_reload/app.jl @@ -1,4 +1,4 @@ include("file1.jl") module TestModule include("file2.jl") -end \ No newline at end of file +end diff --git a/test/hot_reload/file1.jl b/test/hot_reload/file1.jl index 8caf641..1e1c5ef 100644 --- a/test/hot_reload/file1.jl +++ b/test/hot_reload/file1.jl @@ -1 +1 @@ -include("file4.jl") \ No newline at end of file +include("file4.jl") diff --git a/test/hot_reload/file2.jl b/test/hot_reload/file2.jl index de5c118..ab60231 100644 --- a/test/hot_reload/file2.jl +++ b/test/hot_reload/file2.jl @@ -1 +1 @@ -include("file3.jl") \ No newline at end of file +include("file3.jl") diff --git a/test/hot_reload/file3.jl b/test/hot_reload/file3.jl index 8caf641..1e1c5ef 100644 --- a/test/hot_reload/file3.jl +++ b/test/hot_reload/file3.jl @@ -1 +1 @@ -include("file4.jl") \ No newline at end of file +include("file4.jl") diff --git a/test/integration/base/jl_plotly_graph/jlpg001_plotly_graph.jl b/test/integration/base/jl_plotly_graph/jlpg001_plotly_graph.jl index 244b64e..685150b 100644 --- a/test/integration/base/jl_plotly_graph/jlpg001_plotly_graph.jl +++ b/test/integration/base/jl_plotly_graph/jlpg001_plotly_graph.jl @@ -17,4 +17,4 @@ callback!(app, Output("graph", "figure"), Output("status", "children"), Input("d return (plot, status) end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/jl_plotly_graph/jlpg002_plotlyjs_graph.jl b/test/integration/base/jl_plotly_graph/jlpg002_plotlyjs_graph.jl index 0b8f61a..6a361f3 100644 --- a/test/integration/base/jl_plotly_graph/jlpg002_plotlyjs_graph.jl +++ b/test/integration/base/jl_plotly_graph/jlpg002_plotlyjs_graph.jl @@ -17,4 +17,4 @@ callback!(app, Output("graph", "figure"), Output("status", "children"), Input("d return (p, status) end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/jl_render/jltr001r_undo_redo.jl b/test/integration/base/jl_render/jltr001r_undo_redo.jl index ab5db75..338fb01 100644 --- a/test/integration/base/jl_render/jltr001r_undo_redo.jl +++ b/test/integration/base/jl_render/jltr001r_undo_redo.jl @@ -14,4 +14,4 @@ callback!(app, return inputValue end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/jl_simple_app/jlstr001_jl_with_string.jl b/test/integration/base/jl_simple_app/jlstr001_jl_with_string.jl index b72cefc..0590a80 100644 --- a/test/integration/base/jl_simple_app/jlstr001_jl_with_string.jl +++ b/test/integration/base/jl_simple_app/jlstr001_jl_with_string.jl @@ -6,4 +6,4 @@ app.layout = html_div() do html_div("Hello Dash.jl testing", id="container") end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/jl_test_meta/jltm001_test_meta.jl b/test/integration/base/jl_test_meta/jltm001_test_meta.jl index 524e767..6d520d7 100644 --- a/test/integration/base/jl_test_meta/jltm001_test_meta.jl +++ b/test/integration/base/jl_test_meta/jltm001_test_meta.jl @@ -4,4 +4,4 @@ app = dash(meta_tags = [Dict(["name"=>"description", "content" => "some content" app.layout = html_div(children = "Hello world!", id = "hello-div") -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/jl_test_meta/jltm002_test_meta.jl b/test/integration/base/jl_test_meta/jltm002_test_meta.jl index 66e5286..9e25e06 100644 --- a/test/integration/base/jl_test_meta/jltm002_test_meta.jl +++ b/test/integration/base/jl_test_meta/jltm002_test_meta.jl @@ -4,4 +4,4 @@ app = dash(meta_tags = [Dict(["charset"=>"ISO-8859-1", "keywords"=>"dash,pleasan app.layout = html_div(children = "Hello world!", id = "hello-div") -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/base/test_meta.py b/test/integration/base/test_meta.py index 5191840..bcd2883 100644 --- a/test/integration/base/test_meta.py +++ b/test/integration/base/test_meta.py @@ -8,7 +8,7 @@ def jl_test_file_path(filename): return os.path.join(curr_path, "jl_test_meta", filename) def test_jltm001_test_meta(dashjl): - fp = jl_test_file_path("jltm001_test_meta.jl") + fp = jl_test_file_path("jltm001_test_meta.jl") dashjl.start_server(fp) dashjl.wait_for_text_to_equal( "#hello-div", @@ -20,7 +20,7 @@ def test_jltm001_test_meta(dashjl): def test_jltm002_test_meta(dashjl): - fp = jl_test_file_path("jltm002_test_meta.jl") + fp = jl_test_file_path("jltm002_test_meta.jl") dashjl.start_server(fp) dashjl.wait_for_text_to_equal( "#hello-div", diff --git a/test/integration/base/test_plotly_graph.py b/test/integration/base/test_plotly_graph.py index a6529e9..f95a89d 100644 --- a/test/integration/base/test_plotly_graph.py +++ b/test/integration/base/test_plotly_graph.py @@ -24,4 +24,4 @@ def test_jlpg001_plotly_graph(dashjl): dashjl.find_element("#draw").click() dashjl.wait_for_text_to_equal("#status", "second", timeout=10) - dashjl.percy_snapshot(name="PlotlyBase figure callback") \ No newline at end of file + dashjl.percy_snapshot(name="PlotlyBase figure callback") diff --git a/test/integration/base/test_sample_app.py b/test/integration/base/test_sample_app.py index 445e735..c6ae049 100644 --- a/test/integration/base/test_sample_app.py +++ b/test/integration/base/test_sample_app.py @@ -8,7 +8,7 @@ def jl_test_file_path(filename): return os.path.join(curr_path, "jl_simple_app", filename) def test_jlstr001_jl_with_string(dashjl): - fp = jl_test_file_path("jlstr001_jl_with_string.jl") + fp = jl_test_file_path("jlstr001_jl_with_string.jl") dashjl.start_server(fp) dashjl.wait_for_text_to_equal( "#container", "Hello Dash.jl testing", timeout=10 diff --git a/test/integration/callbacks/jl_callback_context/jlcbcx002_triggered.jl b/test/integration/callbacks/jl_callback_context/jlcbcx002_triggered.jl index cd6135b..517b299 100644 --- a/test/integration/callbacks/jl_callback_context/jlcbcx002_triggered.jl +++ b/test/integration/callbacks/jl_callback_context/jlcbcx002_triggered.jl @@ -17,4 +17,4 @@ callback!(app, return "Just clicked $(name) for the $(trigger.value) time!" end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/fibonacci_app.jl b/test/integration/callbacks/jl_test_wildcards/fibonacci_app.jl index 25c1afe..0c99b87 100644 --- a/test/integration/callbacks/jl_test_wildcards/fibonacci_app.jl +++ b/test/integration/callbacks/jl_test_wildcards/fibonacci_app.jl @@ -60,4 +60,4 @@ function fibonacci_app(clientside) end return app -end \ No newline at end of file +end diff --git a/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_false.jl b/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_false.jl index f7300bc..6a6321e 100644 --- a/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_false.jl +++ b/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_false.jl @@ -1,3 +1,3 @@ include("todo_app.jl") app = todo_app(false) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_true.jl b/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_true.jl index fb49019..1a09ff7 100644 --- a/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_true.jl +++ b/test/integration/callbacks/jl_test_wildcards/jlcbwc001_todo_app_true.jl @@ -1,3 +1,3 @@ include("todo_app.jl") app = todo_app(true) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_false.jl b/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_false.jl index 7de2de1..84abdb1 100644 --- a/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_false.jl +++ b/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_false.jl @@ -1,3 +1,3 @@ include("fibonacci_app.jl") app = fibonacci_app(false) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_true.jl b/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_true.jl index fe516e2..fe2f54a 100644 --- a/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_true.jl +++ b/test/integration/callbacks/jl_test_wildcards/jlcbwc002_fibonacci_app_true.jl @@ -1,3 +1,3 @@ include("fibonacci_app.jl") app = fibonacci_app(true) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/jlcbwc003_same_keys.jl b/test/integration/callbacks/jl_test_wildcards/jlcbwc003_same_keys.jl index 7820a48..85aea18 100644 --- a/test/integration/callbacks/jl_test_wildcards/jlcbwc003_same_keys.jl +++ b/test/integration/callbacks/jl_test_wildcards/jlcbwc003_same_keys.jl @@ -33,4 +33,4 @@ callback!(app, return html_div("Dropdown $(id.index) = $(value)") end -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/callbacks/jl_test_wildcards/todo_app.jl b/test/integration/callbacks/jl_test_wildcards/todo_app.jl index 94b778b..7acc92a 100644 --- a/test/integration/callbacks/jl_test_wildcards/todo_app.jl +++ b/test/integration/callbacks/jl_test_wildcards/todo_app.jl @@ -102,4 +102,4 @@ function todo_app(content_callback) return app -end \ No newline at end of file +end diff --git a/test/integration/callbacks/test_basic_callback.py b/test/integration/callbacks/test_basic_callback.py index 7a48bb0..e6e6e4c 100644 --- a/test/integration/callbacks/test_basic_callback.py +++ b/test/integration/callbacks/test_basic_callback.py @@ -248,4 +248,4 @@ def test_jlcbsc010_prevent_initial_call(dashjl): dashjl.wait_for_text_to_equal( "#output", "hello world", timeout=10 - ) \ No newline at end of file + ) diff --git a/test/integration/clientside/jl_clientside/jlclsd001_simple_clientside_serverside_callback.jl b/test/integration/clientside/jl_clientside/jlclsd001_simple_clientside_serverside_callback.jl index e4c15c2..f5a5ee5 100644 --- a/test/integration/clientside/jl_clientside/jlclsd001_simple_clientside_serverside_callback.jl +++ b/test/integration/clientside/jl_clientside/jlclsd001_simple_clientside_serverside_callback.jl @@ -19,4 +19,4 @@ callback!( Input("input", "value") ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd003_clientside_exceptions_halt_subsequent_updates.jl b/test/integration/clientside/jl_clientside/jlclsd003_clientside_exceptions_halt_subsequent_updates.jl index 9d5b2c0..b81c019 100644 --- a/test/integration/clientside/jl_clientside/jlclsd003_clientside_exceptions_halt_subsequent_updates.jl +++ b/test/integration/clientside/jl_clientside/jlclsd003_clientside_exceptions_halt_subsequent_updates.jl @@ -18,4 +18,4 @@ callback!( app, Output("third", "value"), Input("second","value") ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd004_clientside_multiple_outputs.jl b/test/integration/clientside/jl_clientside/jlclsd004_clientside_multiple_outputs.jl index e37587d..4c9f028 100644 --- a/test/integration/clientside/jl_clientside/jlclsd004_clientside_multiple_outputs.jl +++ b/test/integration/clientside/jl_clientside/jlclsd004_clientside_multiple_outputs.jl @@ -18,4 +18,4 @@ callback!( ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd005_clientside_fails_when_returning_a_promise.jl b/test/integration/clientside/jl_clientside/jlclsd005_clientside_fails_when_returning_a_promise.jl index edf255a..2441cc5 100644 --- a/test/integration/clientside/jl_clientside/jlclsd005_clientside_fails_when_returning_a_promise.jl +++ b/test/integration/clientside/jl_clientside/jlclsd005_clientside_fails_when_returning_a_promise.jl @@ -14,4 +14,4 @@ callback!( ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd006_PreventUpdate.jl b/test/integration/clientside/jl_clientside/jlclsd006_PreventUpdate.jl index 6843026..be1efc7 100644 --- a/test/integration/clientside/jl_clientside/jlclsd006_PreventUpdate.jl +++ b/test/integration/clientside/jl_clientside/jlclsd006_PreventUpdate.jl @@ -19,4 +19,4 @@ callback!( ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd007_no_update.jl b/test/integration/clientside/jl_clientside/jlclsd007_no_update.jl index 72b4006..2311594 100644 --- a/test/integration/clientside/jl_clientside/jlclsd007_no_update.jl +++ b/test/integration/clientside/jl_clientside/jlclsd007_no_update.jl @@ -15,4 +15,4 @@ callback!( ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/jl_clientside/jlclsd008_clientside_inline_source.jl b/test/integration/clientside/jl_clientside/jlclsd008_clientside_inline_source.jl index 7b2dd99..c54577e 100644 --- a/test/integration/clientside/jl_clientside/jlclsd008_clientside_inline_source.jl +++ b/test/integration/clientside/jl_clientside/jlclsd008_clientside_inline_source.jl @@ -20,4 +20,4 @@ callback!( """, app, Output("output-clientside","children"), Input("input","value") ) -run_server(app) \ No newline at end of file +run_server(app) diff --git a/test/integration/clientside/test_clientside.py b/test/integration/clientside/test_clientside.py index dab4b18..91a9992 100644 --- a/test/integration/clientside/test_clientside.py +++ b/test/integration/clientside/test_clientside.py @@ -151,4 +151,4 @@ def test_jlclsd008_clientside_inline_source(dashjl): dashjl.find_element("#input").send_keys("hello world") dashjl.wait_for_text_to_equal("#output-serverside", 'Server says "hello world"', timeout=10) - dashjl.wait_for_text_to_equal("#output-clientside", 'Client says "hello world"') \ No newline at end of file + dashjl.wait_for_text_to_equal("#output-clientside", 'Client says "hello world"') diff --git a/test/integration/components/test_default_children.py b/test/integration/components/test_default_children.py index b497b55..ea07d05 100644 --- a/test/integration/components/test_default_children.py +++ b/test/integration/components/test_default_children.py @@ -12,4 +12,4 @@ def test_jlcmdc001_default_children(dashjl): dashjl.start_server(fp) dashjl.wait_for_element_by_css_selector( "#first-inner-div", timeout=10 - ) \ No newline at end of file + ) diff --git a/test/integration/dash_assets/jl_dash_assets/assets/load_ignored.js b/test/integration/dash_assets/jl_dash_assets/assets/load_ignored.js index 668e477..608111b 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/load_ignored.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/load_ignored.js @@ -1 +1 @@ -window.tested = 'IGNORED'; // Break the chain. \ No newline at end of file +window.tested = 'IGNORED'; // Break the chain. diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_css/nested.css b/test/integration/dash_assets/jl_dash_assets/assets/nested_css/nested.css index 1bb8a86..d745b22 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_css/nested.css +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_css/nested.css @@ -1,4 +1,4 @@ #content { padding: 8px; background-color: purple; -} \ No newline at end of file +} diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after.js index 6f520fd..f1c1f4b 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after.js @@ -1 +1 @@ -window.tested.push('load_after'); \ No newline at end of file +window.tested.push('load_after'); diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after10.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after10.js index fcfdb59..fc867a7 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after10.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after10.js @@ -1 +1 @@ -window.tested.push('load_after10'); \ No newline at end of file +window.tested.push('load_after10'); diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after11.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after11.js index bd11cd2..9be5792 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after11.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after11.js @@ -1 +1 @@ -window.tested.push('load_after11'); \ No newline at end of file +window.tested.push('load_after11'); diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after2.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after2.js index 0b76a55..ca0147c 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after2.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after2.js @@ -1 +1 @@ -window.tested.push('load_after2'); \ No newline at end of file +window.tested.push('load_after2'); diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after3.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after3.js index d913af9..5efeb0c 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after3.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after3.js @@ -1 +1 @@ -window.tested.push('load_after3'); \ No newline at end of file +window.tested.push('load_after3'); diff --git a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after4.js b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after4.js index 2507e38..c23c8e8 100644 --- a/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after4.js +++ b/test/integration/dash_assets/jl_dash_assets/assets/nested_js/load_after4.js @@ -1 +1 @@ -window.tested.push('load_after4'); \ No newline at end of file +window.tested.push('load_after4'); diff --git a/test/integration/dash_assets/test_dash_assets.py b/test/integration/dash_assets/test_dash_assets.py index 45ecf0e..aa6b547 100644 --- a/test/integration/dash_assets/test_dash_assets.py +++ b/test/integration/dash_assets/test_dash_assets.py @@ -83,4 +83,4 @@ def test_jldada002_external_files_init(dashjl): ), "Ensure the button style was overloaded by reset (set to 38px in codepen)" #ensure ramda was loaded before the assets so they can use it. - assert dashjl.find_element("#ramda-test").text == "Hello World" \ No newline at end of file + assert dashjl.find_element("#ramda-test").text == "Hello World" diff --git a/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.css b/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.css index e32318f..c7d1f4b 100644 --- a/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.css +++ b/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.css @@ -1,3 +1,3 @@ #hot-reload-content { background-color: blue; -} \ No newline at end of file +} diff --git a/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.js b/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.js index a496586..468a2fb 100644 --- a/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.js +++ b/test/integration/devtools/jl_hot_reload/hr_assets/hot_reload.js @@ -1 +1 @@ -document.getElementById('tested').innerHTML = 'Initial'; \ No newline at end of file +document.getElementById('tested').innerHTML = 'Initial'; diff --git a/test/integration/devtools/test_devtools_ui.py b/test/integration/devtools/test_devtools_ui.py index 1a85f94..a732d22 100644 --- a/test/integration/devtools/test_devtools_ui.py +++ b/test/integration/devtools/test_devtools_ui.py @@ -31,4 +31,4 @@ def test_jldvui002_disable_ui_config(dashjl): assert not dashjl.find_elements( ".dash-debug-menu" - ), "the debug menu icon should NOT show up" \ No newline at end of file + ), "the debug menu icon should NOT show up" diff --git a/test/integration/devtools/test_props_check.py b/test/integration/devtools/test_props_check.py index 8610109..d6342d3 100644 --- a/test/integration/devtools/test_props_check.py +++ b/test/integration/devtools/test_props_check.py @@ -101,4 +101,4 @@ def test_jldvpc001_prop_check_errors_with_path(dashjl): dashjl.wait_for_element(".test-devtools-error-toggle", timeout=10).click() dashjl.wait_for_element(".dash-error-card") else: - dashjl.wait_for_element("#new-component", timeout=2) \ No newline at end of file + dashjl.wait_for_element("#new-component", timeout=2) diff --git a/test/misc.jl b/test/misc.jl index 4aa116f..140974c 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -59,4 +59,4 @@ end test2 = [Output((a = 2, b=2), "e"), Output((a=2, b=2), "c"), Output((a = 1, b=2), "c")] @test Dash.check_unique(test2) -end \ No newline at end of file +end diff --git a/test/resources/dash-renderer/dash_renderer.js b/test/resources/dash-renderer/dash_renderer.js index df76142..2aa1fbb 100644 --- a/test/resources/dash-renderer/dash_renderer.js +++ b/test/resources/dash-renderer/dash_renderer.js @@ -1 +1 @@ -var a = [1,2,3,4,5,6] \ No newline at end of file +var a = [1,2,3,4,5,6] diff --git a/test/resources/props.min.js b/test/resources/props.min.js index 097d634..41e7d57 100644 --- a/test/resources/props.min.js +++ b/test/resources/props.min.js @@ -1 +1 @@ -var string = "fffffff" \ No newline at end of file +var string = "fffffff" diff --git a/test/runtests.jl b/test/runtests.jl index 6e955b4..ee59d06 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,4 +13,4 @@ include("components_utils.jl") include("table_format.jl") include("reload_hash.jl") include("aqua.jl") -#include("dev.jl") \ No newline at end of file +#include("dev.jl") diff --git a/test/table_format.jl b/test/table_format.jl index 252ae48..2ed91bf 100644 --- a/test/table_format.jl +++ b/test/table_format.jl @@ -174,4 +174,4 @@ end @test f.locale[:group] == "," @test f.locale[:grouping] == [2,2] -end \ No newline at end of file +end diff --git a/test/utils.jl b/test/utils.jl index 4885d63..4deab30 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -6,7 +6,7 @@ using Dash: interpolate_string, build_fingerprint, parse_fingerprint_path blah blah blah blah blah blah blah blah blah blah {%middle%} da da da da da da da da da da da da da {%da%} da - end + end """ inter = interpolate_string(test_str, head="hd", middle = :mmmm, da = 10) @test inter == """ @@ -14,7 +14,7 @@ using Dash: interpolate_string, build_fingerprint, parse_fingerprint_path blah blah blah blah blah blah blah blah blah blah mmmm da da da da da da da da da da da da da 10 da - end + end """ end @@ -27,7 +27,7 @@ end @test is_fp @test origin == test_url - + test_url = "/test/test_test/file.2.3.js" fp = build_fingerprint(test_url, "1.3.4", 3112231) @test fp == "/test/test_test/file.v1_3_4m3112231.2.3.js" @@ -36,7 +36,7 @@ end @test is_fp @test origin == test_url - (origin, is_fp) = parse_fingerprint_path(test_url) + (origin, is_fp) = parse_fingerprint_path(test_url) @test !is_fp @test origin == test_url end @@ -45,4 +45,4 @@ end for f in ["app.jl", "file1.jl", "file2.jl", "file3.jl", "file4.jl"] @test abspath(joinpath("hot_reload", f)) in files end -end \ No newline at end of file +end