File tree Expand file tree Collapse file tree 5 files changed +17
-16
lines changed Expand file tree Collapse file tree 5 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 10
10
exclude : (test_csv_processing_blanks.csv|test.txt)
11
11
- id : check-ast
12
12
- repo : https://github.com/astral-sh/ruff-pre-commit
13
- rev : v0.8 .6
13
+ rev : v0.9 .6
14
14
hooks :
15
15
# Run the linter.
16
16
- id : ruff
19
19
- id : ruff-format
20
20
args : [--config, .config/ruff.toml]
21
21
- repo : https://github.com/astral-sh/uv-pre-commit
22
- rev : 0.5.15
22
+ rev : 0.6.1
23
23
hooks :
24
24
# Run the pip compile
25
25
- id : pip-compile
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ run = """
107
107
"""
108
108
109
109
[tool .hatch .envs .hatch-static-analysis ]
110
- dependencies = [" ruff==0.8 .6" ]
110
+ dependencies = [" ruff==0.9 .6" ]
111
111
112
112
[tool .hatch .envs .hatch-static-analysis .scripts ]
113
113
format-check = [" ruff format --config .config/ruff.toml --check --diff {args:.}" ,]
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ attrs==25.1.0
8
8
# jsonlines
9
9
# jsonschema
10
10
# referencing
11
- beautifulsoup4 == 4.12 .3
11
+ beautifulsoup4 == 4.13 .3
12
12
# via hdx-python-utilities (pyproject.toml)
13
- certifi == 2024.12.14
13
+ certifi == 2025.1.31
14
14
# via requests
15
15
cfgv == 3.4.0
16
16
# via pre-commit
@@ -20,7 +20,7 @@ charset-normalizer==3.4.1
20
20
# via requests
21
21
click == 8.1.8
22
22
# via typer
23
- coverage == 7.6.10
23
+ coverage == 7.6.12
24
24
# via pytest-cov
25
25
distlib == 0.3.9
26
26
# via virtualenv
@@ -36,9 +36,9 @@ frictionless==5.18.0
36
36
# via hdx-python-utilities (pyproject.toml)
37
37
html5lib == 1.1
38
38
# via hdx-python-utilities (pyproject.toml)
39
- humanize == 4.11.0
39
+ humanize == 4.12.1
40
40
# via frictionless
41
- identify == 2.6.6
41
+ identify == 2.6.7
42
42
# via pre-commit
43
43
idna == 3.10
44
44
# via
@@ -159,6 +159,7 @@ typer==0.15.1
159
159
# via frictionless
160
160
typing-extensions == 4.12.2
161
161
# via
162
+ # beautifulsoup4
162
163
# frictionless
163
164
# pydantic
164
165
# pydantic-core
@@ -170,15 +171,15 @@ urllib3==2.3.0
170
171
# via requests
171
172
validators == 0.34.0
172
173
# via frictionless
173
- virtualenv == 20.29.1
174
+ virtualenv == 20.29.2
174
175
# via pre-commit
175
176
webencodings == 0.5.1
176
177
# via html5lib
177
178
xlrd == 2.0.1
178
179
# via hdx-python-utilities (pyproject.toml)
179
180
xlsx2csv == 0.8.4
180
181
# via hdx-python-utilities (pyproject.toml)
181
- xlsxwriter == 3.2.1
182
+ xlsxwriter == 3.2.2
182
183
# via tableschema-to-template
183
184
xlwt == 1.3.0
184
185
# via hdx-python-utilities (pyproject.toml)
Original file line number Diff line number Diff line change @@ -151,20 +151,20 @@ def add_multi_valued(
151
151
152
152
def log (self ) -> None :
153
153
"""
154
- Log errors and warnings by category and sorted
154
+ Log warnings and errors by category and sorted
155
155
156
156
Returns:
157
157
None
158
158
"""
159
159
160
- for _ , errors in self .shared_errors ["error" ].items ():
161
- errors = sorted (errors )
162
- for error in errors :
163
- logger .error (error )
164
160
for _ , warnings in self .shared_errors ["warning" ].items ():
165
161
warnings = sorted (warnings )
166
162
for warning in warnings :
167
163
logger .warning (warning )
164
+ for _ , errors in self .shared_errors ["error" ].items ():
165
+ errors = sorted (errors )
166
+ for error in errors :
167
+ logger .error (error )
168
168
169
169
def exit_on_error (self ) -> None :
170
170
"""Exit with a 1 code if there are errors and should_exit_on_error
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def remove_string(
122
122
newstring = remove_end_characters (
123
123
newstring , characters_to_remove = end_characters_to_remove
124
124
)
125
- return f"{ newstring } { string [index + len (toremove ):]} "
125
+ return f"{ newstring } { string [index + len (toremove ) :]} "
126
126
127
127
128
128
def get_words_in_sentence (sentence : str ) -> List [str ]:
You can’t perform that action at this time.
0 commit comments