File tree 5 files changed +13
-9
lines changed
5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 37
37
38
38
# Python linting using ruff
39
39
- repo : https://github.com/astral-sh/ruff-pre-commit
40
- rev : v0.4.3
40
+ rev : v0.4.4
41
41
hooks :
42
42
- id : ruff
43
43
args : ["--fix", "--show-fixes"]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import json
4
+ import locale
4
5
import logging
5
6
import os
6
7
import sys
16
17
logging .getLogger ().setLevel (logging_level )
17
18
logger .configure (handlers = [{"sink" : sys .stdout , "level" : logging_level }])
18
19
19
- with Path ("./input/data.json" ).open () as file :
20
+ with Path ("./input/data.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
20
21
data = json .load (file )
21
22
22
- with Path ("./input/params.json" ).open () as file :
23
+ with Path ("./input/params.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
23
24
params = json .load (file )
24
25
25
26
response = run (data , params )
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import json
4
+ import locale
4
5
import logging
5
6
import os
6
7
import sys
16
17
logging .getLogger ().setLevel (logging_level )
17
18
logger .configure (handlers = [{"sink" : sys .stdout , "level" : logging_level }])
18
19
19
- with Path ("./input/data.json" ).open () as file :
20
+ with Path ("./input/data.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
20
21
data = json .load (file )
21
22
22
- with Path ("./input/params.json" ).open () as file :
23
+ with Path ("./input/params.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
23
24
params = json .load (file )
24
25
25
26
response = run (data , params )
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import json
4
+ import locale
4
5
import logging
5
6
import os
6
7
import sys
16
17
logging .getLogger ().setLevel (logging_level )
17
18
logger .configure (handlers = [{"sink" : sys .stdout , "level" : logging_level }])
18
19
19
- with Path ("./input/data.json" ).open () as file :
20
+ with Path ("./input/data.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
20
21
data = json .load (file )
21
22
22
- with Path ("./input/params.json" ).open () as file :
23
+ with Path ("./input/params.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
23
24
params = json .load (file )
24
25
25
26
response = run (data , params )
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import json
4
+ import locale
4
5
import logging
5
6
import os
6
7
import sys
16
17
logging .getLogger ().setLevel (logging_level )
17
18
logger .configure (handlers = [{"sink" : sys .stdout , "level" : logging_level }])
18
19
19
- with Path ("./input/data.json" ).open () as file :
20
+ with Path ("./input/data.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
20
21
data = json .load (file )
21
22
22
- with Path ("./input/params.json" ).open () as file :
23
+ with Path ("./input/params.json" ).open (encoding = locale . getpreferredencoding ( False ) ) as file :
23
24
params = json .load (file )
24
25
25
26
response = run (data , params )
You can’t perform that action at this time.
0 commit comments