Skip to content

Commit 6100dc9

Browse files
authored
Fix minor typos (#1627)
1 parent ae3763d commit 6100dc9

File tree

32 files changed

+56
-56
lines changed

32 files changed

+56
-56
lines changed

frictionless/analyzer/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class Analyzer:
19-
# Resoure
19+
# Resource
2020

2121
def analyze_table_resource(
2222
self, resource: TableResource, *, detailed: bool = False
@@ -100,7 +100,7 @@ def analyze_table_resource(
100100
var_x.append(cell_x)
101101
var_y.append(cell_y)
102102

103-
# check for atleast 2 data points for correlation calculation
103+
# check for at least 2 data points for correlation calculation
104104
if len(var_x) > 2:
105105
if field.name not in analysis_report["correlations"]:
106106
analysis_report["correlations"][field.name] = []

frictionless/checks/baseline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class baseline(Check):
1919
"""Check a table for basic errors
2020
21-
Ths check is enabled by default for any `validate` function run.
21+
This check is enabled by default for any `validate` function run.
2222
2323
"""
2424

frictionless/checks/row/row_constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class row_constraint(Check):
2121

2222
formula: str
2323
"""
24-
Python expression to apply to all rows. To evaluate the forumula
24+
Python expression to apply to all rows. To evaluate the formula
2525
simpleeval library is used.
2626
"""
2727

frictionless/console/commands/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def console_transform(
6464
helpers.print_exception(console, debug=debug, exception=exception)
6565
raise typer.Exit(code=1)
6666

67-
# TODO: support outputing packages
67+
# TODO: support outputting packages
6868

6969
# Return default
7070
table = result.to_petl() # type: ignore

frictionless/console/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321

322322
descriptor = Option(
323323
default=None,
324-
help="Excplicit path to the descriptor instead of guessing by providing a source",
324+
help="Explicit path to the descriptor instead of guessing by providing a source",
325325
)
326326

327327
keep_delimiter = Option(

frictionless/detector/detector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Detector:
3838

3939
sample_size: int = settings.DEFAULT_SAMPLE_SIZE
4040
"""
41-
The amount of rows to be extracted as a sample for dialect/schema infering.
41+
The amount of rows to be extracted as a sample for dialect/schema inferring.
4242
It defaults to 100. The sample_size can be increased to improve the inference
4343
accuracy.
4444
"""
@@ -113,7 +113,7 @@ class Detector:
113113
Whether to sync the schema.
114114
If it sets to `True` the provided schema will be mapped to
115115
the inferred schema. It means that, for example, you can
116-
provide a subset of fileds to be applied on top of the inferred
116+
provide a subset of fields to be applied on top of the inferred
117117
fields or the provided schema can have different order of fields.
118118
"""
119119

@@ -265,7 +265,7 @@ def detect_dialect(
265265
):
266266
# This algorithm tries to find a header row
267267
# that is close to average sample width or use default one
268-
# We use it to eleminate initial rows that are comments/etc
268+
# We use it to eliminate initial rows that are comments/etc
269269

270270
# Get header rows
271271
width = round(sum(widths) / len(widths))

frictionless/error/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# NOTE:
1212
# Consider other approaches for report/errors as dict is not really
1313
# effective as it can be very memory consumig. As an option we can store
14-
# raw data without rendering an error template to an error messsage.
14+
# raw data without rendering an error template to an error message.
1515

1616

1717
@attrs.define(kw_only=True, repr=False)

frictionless/formats/csv/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class CsvControl(Control):
6767
# Convert
6868

6969
def to_python(self):
70-
"""Conver to Python's `csv.Dialect`"""
70+
"""Convert to Python's `csv.Dialect`"""
7171
config = csv.excel()
7272
config.delimiter = self.delimiter
7373
config.doublequote = self.double_quote if self.escape_char else True

frictionless/formats/csv/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read_cell_stream_create(self): # type: ignore
3434
config = csv.Sniffer().sniff("".join(sample), delimiter) # type: ignore
3535
except csv.Error:
3636
config = csv.excel()
37-
# We can't rely on this guess as it's can be confused with embeded JSON
37+
# We can't rely on this guess as it's can be confused with embedded JSON
3838
# https://github.com/frictionlessdata/frictionless-py/issues/493
3939
if config.quotechar == "'":
4040
config.quotechar = '"'

frictionless/formats/excel/parsers/xlsx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def read_cell_stream_create(self):
103103
# Fill merged cells
104104
if control.fill_merged_cells:
105105
# NOTE:
106-
# We can try using an algorithm similiar to what XlsParser has
106+
# We can try using an algorithm similar to what XlsParser has
107107
# to support mergin cells in the read-only mode (now we need the write mode)
108108
for merged_cell_range in list(sheet.merged_cells.ranges): # type: ignore
109109
merged_cell_range = str(merged_cell_range)
@@ -306,7 +306,7 @@ def convert_excel_date_format_string(excel_date: str):
306306
)
307307
new_excel_code = False
308308

309-
# Handle a new code without a different characeter in between
309+
# Handle a new code without a different character in between
310310
if (
311311
ec
312312
and not is_escape_char

0 commit comments

Comments
 (0)