Skip to content

Commit 982e21c

Browse files
authored
Update deps + formatting (#89)
1 parent 8eaf214 commit 982e21c

17 files changed

+142
-127
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "7.2.0",
6+
"version": "7.2.1",
77
"commands": [
88
"paket"
99
]
1010
},
1111
"fable": {
12-
"version": "4.0.0-theta-018",
12+
"version": "4.1.3",
1313
"commands": [
1414
"fable"
1515
]
1616
},
1717
"fantomas": {
18-
"version": "5.1.5",
18+
"version": "6.0.1",
1919
"commands": [
2020
"fantomas"
2121
]

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[*.fs]
2+
max_line_length=120
3+
insert_final_newline=true

paket.dependencies

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ storage: none
55
framework: net6.0, netstandard2.0, netstandard2.1
66

77
nuget FSharp.Core >= 4.7.2 lowest_matching: true
8-
nuget Fable.Core ~> 4.0.0 prerelease
8+
nuget Fable.Core ~> 4.1
99

1010
group Test
1111
source https://api.nuget.org/v3/index.json
1212
storage: none
1313
framework: net6.0
1414

1515
nuget FSharp.Core
16-
nuget Fable.Core ~> 4.0.0 prerelease
16+
nuget Fable.Core ~> 4.1
1717
nuget Microsoft.NET.Test.Sdk ~> 16
1818
nuget XUnit ~> 2
1919
nuget xunit.runner.visualstudio ~> 2

src/cognite-sdk/CogniteSdk.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module Fable.Python.CogniteSdk
33
open Fable.Core
44

55
type ITimeSeries =
6-
abstract plot : start: string * ``end``: string * aggregates: string array * granularity: string -> unit
6+
abstract plot: start: string * ``end``: string * aggregates: string array * granularity: string -> unit
77

88
type ITimeSeriesApi =
9-
abstract retrieve : id: int64 -> ITimeSeries
10-
abstract list : unit -> ITimeSeries list
9+
abstract retrieve: id: int64 -> ITimeSeries
10+
abstract list: unit -> ITimeSeries list
1111

1212
[<Import("CogniteClient", from = "cognite.client")>]
13-
type CogniteClient (?apiKey: string, ?api_subversion: string, ?project: string, ?clientName: string) =
14-
abstract member time_series : ITimeSeriesApi
13+
type CogniteClient(?apiKey: string, ?api_subversion: string, ?project: string, ?clientName: string) =
14+
abstract member time_series: ITimeSeriesApi
1515
override this.time_series = nativeOnly

src/flask/Flask.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ open Fable.Core
44

55
// fsharplint:disable MemberNames
66
type RequestBase =
7-
abstract url : string
7+
abstract url: string
88

99
type Request =
1010
inherit RequestBase
1111

1212
type Flask =
13-
abstract route : rule: string -> ((unit -> string) -> Flask)
14-
abstract route : rule: string * methods: string array -> ((unit -> string) -> Flask)
13+
abstract route: rule: string -> ((unit -> string) -> Flask)
14+
abstract route: rule: string * methods: string array -> ((unit -> string) -> Flask)
1515

1616
type FlaskStatic =
1717
[<Emit("$0($1, static_url_path=$2)")>]
18-
abstract Create : name: string * static_url_path: string -> Flask
18+
abstract Create: name: string * static_url_path: string -> Flask
1919

2020
[<Import("Flask", "flask")>]
21-
let Flask : FlaskStatic = nativeOnly
21+
let Flask: FlaskStatic = nativeOnly
2222

2323
type IExports =
24-
abstract render_template : template_name_or_list: string -> string
25-
abstract render_template : template_name_or_list: string seq -> string
26-
abstract request : Request
24+
abstract render_template: template_name_or_list: string -> string
25+
abstract render_template: template_name_or_list: string seq -> string
26+
abstract request: Request
2727

2828
[<Emit("flask.url_for($0, filename=$1)")>]
29-
abstract url_for : route : string * filename: string -> string
29+
abstract url_for: route: string * filename: string -> string
3030

3131
[<ImportAll("flask")>]
3232
let flask: IExports = nativeOnly

src/jupyter/IPyWidgets.fs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,36 @@ open Fable.Core
44

55

66
type IWidget =
7-
abstract close : unit -> unit
7+
abstract close: unit -> unit
88

99
type IIntSlider =
1010
inherit IWidget
1111

12-
abstract value : int
13-
abstract min : int
14-
abstract max : int
12+
abstract value: int
13+
abstract min: int
14+
abstract max: int
1515

1616
type IFloatSlider =
1717
inherit IWidget
1818

19-
abstract value : float
20-
abstract min : float
21-
abstract max : float
19+
abstract value: float
20+
abstract min: float
21+
abstract max: float
2222

2323
type IExports =
2424
[<Emit("$0.interact($1, x=$2)")>]
25-
abstract interact<'T1, 'T2> : fn : ('T1 -> 'T2) * x: 'T1 -> 'T2
25+
abstract interact<'T1, 'T2> : fn: ('T1 -> 'T2) * x: 'T1 -> 'T2
26+
2627
[<Emit("$0.interact($1, x=$2, y=$3)")>]
27-
abstract interact<'T1, 'T2, 'T3> : fn : ('T1*'T2 -> 'T3) * x: 'T1 * y: 'T2 -> 'T3
28+
abstract interact<'T1, 'T2, 'T3> : fn: ('T1 * 'T2 -> 'T3) * x: 'T1 * y: 'T2 -> 'T3
2829

29-
abstract IntSlider : unit -> IIntSlider
30-
abstract IntSlider : value: int -> IIntSlider
31-
abstract IntSlider : value: int * min: int * max: int * step: int * description: string -> IIntSlider
30+
abstract IntSlider: unit -> IIntSlider
31+
abstract IntSlider: value: int -> IIntSlider
32+
abstract IntSlider: value: int * min: int * max: int * step: int * description: string -> IIntSlider
3233

33-
abstract FloatSlider : unit -> IFloatSlider
34-
abstract FloatSlider : value: float -> IFloatSlider
35-
abstract FloatSlider : value: float * min: int * max: int * step: int * description: string -> IFloatSlider
34+
abstract FloatSlider: unit -> IFloatSlider
35+
abstract FloatSlider: value: float -> IFloatSlider
36+
abstract FloatSlider: value: float * min: int * max: int * step: int * description: string -> IFloatSlider
3637

3738
[<ImportAll("ipywidgets")>]
38-
let widgets : IExports = nativeOnly
39+
let widgets: IExports = nativeOnly

src/jupyter/IPython.fs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ module Fable.Python.IPython
33
open Fable.Core
44

55
type IDisplay =
6-
abstract display : value: obj -> unit
7-
abstract Code : data: string -> unit
6+
abstract display: value: obj -> unit
7+
abstract Code: data: string -> unit
8+
89
[<Emit("display.Code($1, language=$2)")>]
9-
abstract Code : data: string * language: string -> unit
10+
abstract Code: data: string * language: string -> unit
11+
1012
[<Emit("display.Markdown($1)")>]
11-
abstract Markdown : data: string -> unit
13+
abstract Markdown: data: string -> unit
1214

1315
[<Import("display", "IPython")>]
14-
let display : IDisplay = nativeOnly
15-
16+
let display: IDisplay = nativeOnly

src/stdlib/Base64.fs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
module Fable.Python.Base64
2-
3-
open Fable.Core
4-
5-
// fsharplint:disable MemberNames
6-
7-
[<Erase>]
8-
type IExports =
9-
abstract b64encode : byte[] -> byte[]
10-
abstract b64encode : s : byte[] * altchars: byte[] -> byte[]
11-
12-
abstract b64decode : byte[] -> byte[]
13-
abstract b64decode : string -> byte[]
14-
abstract b64decode : s: byte[] * altchars : byte[] -> byte[]
15-
abstract b64decode : s: string * altchars : byte[] -> byte[]
16-
abstract b64decode : s: byte[] * altchars : byte[] * validate: bool -> byte[]
17-
abstract b64decode : s: string * altchars : byte[] * validate: bool -> byte[]
18-
abstract b64decode : s: byte[] * validate: bool -> byte[]
19-
abstract b64decode : s: string * validate: bool -> byte[]
20-
21-
abstract standard_b64encode : byte[] -> byte[]
22-
abstract standard_b64decode : string -> byte[]
23-
abstract standard_b64decode : byte[] -> byte[]
24-
abstract urlsafe_b64encode : byte[] -> byte[]
25-
abstract urlsafe_b64decode : string -> byte[]
26-
abstract urlsafe_b64decode : byte[] -> byte[]
27-
abstract b32encode : byte[] -> byte[]
28-
abstract b16encode : byte[] -> byte
29-
30-
/// Base16, Base32, Base64, Base85 Data Encodings
31-
[<ImportAll("base64")>]
32-
let base64: IExports = nativeOnly
1+
module Fable.Python.Base64
2+
3+
open Fable.Core
4+
5+
// fsharplint:disable MemberNames
6+
7+
[<Erase>]
8+
type IExports =
9+
abstract b64encode: byte[] -> byte[]
10+
abstract b64encode: s: byte[] * altchars: byte[] -> byte[]
11+
12+
abstract b64decode: byte[] -> byte[]
13+
abstract b64decode: string -> byte[]
14+
abstract b64decode: s: byte[] * altchars: byte[] -> byte[]
15+
abstract b64decode: s: string * altchars: byte[] -> byte[]
16+
abstract b64decode: s: byte[] * altchars: byte[] * validate: bool -> byte[]
17+
abstract b64decode: s: string * altchars: byte[] * validate: bool -> byte[]
18+
abstract b64decode: s: byte[] * validate: bool -> byte[]
19+
abstract b64decode: s: string * validate: bool -> byte[]
20+
21+
abstract standard_b64encode: byte[] -> byte[]
22+
abstract standard_b64decode: string -> byte[]
23+
abstract standard_b64decode: byte[] -> byte[]
24+
abstract urlsafe_b64encode: byte[] -> byte[]
25+
abstract urlsafe_b64decode: string -> byte[]
26+
abstract urlsafe_b64decode: byte[] -> byte[]
27+
abstract b32encode: byte[] -> byte[]
28+
abstract b16encode: byte[] -> byte
29+
30+
/// Base16, Base32, Base64, Base85 Data Encodings
31+
[<ImportAll("base64")>]
32+
let base64: IExports = nativeOnly

src/stdlib/Math.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ type IExports =
1717
abstract floor: float -> int
1818
abstract fmod: int -> int -> int
1919

20-
abstract gcd: [<ParamArray>] ints: int [] -> int
20+
abstract gcd: [<ParamArray>] ints: int[] -> int
2121
abstract isfinite: float -> bool
2222
abstract isfinite: int -> bool
2323
abstract isinf: float -> bool
2424
abstract isinf: int -> bool
2525
abstract isnan: float -> bool
2626
abstract isnan: int -> bool
27-
abstract lcm: [<ParamArray>] ints: int [] -> int
27+
abstract lcm: [<ParamArray>] ints: int[] -> int
2828

2929
abstract exp: float -> float
3030
abstract expm1: float -> float

src/stdlib/Os.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ open Fable.Core
77

88
[<Erase>]
99
type IExports =
10-
abstract chdir : string -> unit
11-
abstract chroot : string -> unit
12-
abstract close : fd: int -> unit
13-
abstract environ : Dictionary<string, string>
14-
abstract getcwd : unit -> string
15-
abstract getenv : key: string -> string option
16-
abstract getenv : key: string * ``default``: string -> string
17-
abstract kill : pid: int * ``sig``: int -> unit
18-
abstract putenv : key: string * value: string -> unit
10+
abstract chdir: string -> unit
11+
abstract chroot: string -> unit
12+
abstract close: fd: int -> unit
13+
abstract environ: Dictionary<string, string>
14+
abstract getcwd: unit -> string
15+
abstract getenv: key: string -> string option
16+
abstract getenv: key: string * ``default``: string -> string
17+
abstract kill: pid: int * ``sig``: int -> unit
18+
abstract putenv: key: string * value: string -> unit
1919

2020

2121
/// Miscellaneous operating system interfaces

src/stdlib/Queue.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ open Fable.Core
55
// fsharplint:disable MemberNames
66

77
[<Import("Queue", "queue")>]
8-
type Queue<'T> () =
8+
type Queue<'T>() =
99
/// Return the approximate size of the queue. Note, qsize() > 0 doesn’t guarantee that a subsequent get() will not
1010
/// block, nor will qsize() < maxsize guarantee that put() will not block.
1111
member x.qsize() : int = nativeOnly
@@ -43,15 +43,15 @@ type Queue<'T> () =
4343
member x.task_done() : unit = nativeOnly
4444

4545
[<Import("PriorityQueue", "queue")>]
46-
type PriorityQueue<'T> () =
47-
inherit Queue<'T> ()
46+
type PriorityQueue<'T>() =
47+
inherit Queue<'T>()
4848

4949
[<Import("LifoQueue", "queue")>]
50-
type LifoQueue<'T> () =
51-
inherit Queue<'T> ()
50+
type LifoQueue<'T>() =
51+
inherit Queue<'T>()
5252

5353
[<Import("SimpleQueue", "queue")>]
54-
type SimpleQueue<'T> () =
54+
type SimpleQueue<'T>() =
5555
/// Return the approximate size of the queue. Note, qsize() > 0 doesn’t guarantee that a subsequent get() will not
5656
/// block, nor will qsize() < maxsize guarantee that put() will not block.
5757
member x.qsize() : int = nativeOnly

src/stdlib/String.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ open Fable.Core
66
// fsharplint:disable MemberNames
77

88
type System.String with
9+
910
[<Emit("$0.format($1...)")>]
10-
member _.format([<ParamArray>] args: Object []) = nativeOnly
11+
member _.format([<ParamArray>] args: Object[]) = nativeOnly

src/stdlib/Time.fs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ open Fable.Core
66

77
[<Erase>]
88
type IExports =
9-
abstract altzone : int
10-
abstract ctime : unit -> string
11-
abstract ctime : float -> string
12-
abstract daylight : int
13-
abstract monotonic : unit -> float
14-
abstract perf_counter : unit -> float
15-
abstract process_time : unit -> float
16-
abstract sleep : secs: float -> unit
17-
abstract time : unit -> float
18-
abstract timezone : int
19-
abstract tzname : string * string
9+
abstract altzone: int
10+
abstract ctime: unit -> string
11+
abstract ctime: float -> string
12+
abstract daylight: int
13+
abstract monotonic: unit -> float
14+
abstract perf_counter: unit -> float
15+
abstract process_time: unit -> float
16+
abstract sleep: secs: float -> unit
17+
abstract time: unit -> float
18+
abstract timezone: int
19+
abstract tzname: string * string
2020

2121
/// Time access and conversions
2222
[<ImportAll("time")>]

0 commit comments

Comments
 (0)