Skip to content

Commit 3481368

Browse files
committed
Fix codespell
1 parent 63af99e commit 3481368

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

llvm_ir_dataset_utils/builders/builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def parse_and_build_from_description(corpus_description,
171171
logging.warn('Cargo builder detected no targets from git repository, '
172172
'retrying with tar archive.')
173173
shutil.rmtree(source_dir)
174-
# The git repositry is always guaranteed to be the first source as long
174+
# The git repository is always guaranteed to be the first source as long
175175
# as parse_crates_database.py was the source
176176
corpus_description['sources'].pop(0)
177177
build_future = get_build_future(corpus_description, source_base_dir,

llvm_ir_dataset_utils/builders/cmake_builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def generate_configure_command(root_path, options_dict):
1717
# Add some default flags that are needed for bitcode extraction
1818
command_vector.append("-DCMAKE_C_COMPILER=clang")
1919
command_vector.append("-DCMAKE_CXX_COMPILER=clang++")
20-
# These two flags assume this is a stanard non-LTO build, will need to fix
20+
# These two flags assume this is a standard non-LTO build, will need to fix
2121
# later when we want to support (Thin)LTO builds.
2222
command_vector.append("-DCMAKE_C_FLAGS='-Xclang -fembed-bitcode=all'")
2323
command_vector.append("-DCMAKE_CXX_FLAGS='-Xclang -fembed-bitcode=all'")

llvm_ir_dataset_utils/tools/parse_crates_database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def dedeuplicate_repositories(crates_list):
5454

5555

5656
def canonicalize_license(license_string):
57-
# Some of the licenses include / as a seperator. This is equivalent to OR
57+
# Some of the licenses include / as a separator. This is equivalent to OR
5858
# within the rust crates index, but not standard in the SPDX format.
5959
license_string = license_string.replace('/', ' OR ')
6060
return license_string

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ line-length = 120
5454
[tool.ruff.lint]
5555
select = ["E", "F"]
5656
ignore = ["F401", "E731"]
57+
58+
[tool.codespell]
59+
ignore-words-list = "crate,"

0 commit comments

Comments
 (0)