Skip to content

Commit

Permalink
Update codespell and fix typos (apache#28568)
Browse files Browse the repository at this point in the history
Co-authored-by: Kaxil Naik <[email protected]>
  • Loading branch information
KarshVashi and kaxil authored Dec 24, 2022
1 parent 837e0fe commit c0a7bf2
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .codespellignorelines
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
f"DELETE {source_table} FROM { ', '.join(_from_name(tbl) for tbl in stmt.froms) }"
for frm in source_query.selectable.froms:
roles = relationship("Role", secondary=assoc_user_role, backref="user", lazy="selectin")
The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
<pre><code>Code block\ndoes not\nrespect\nnewlines\n</code></pre>
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ repos:
- --line-length
- '99999'
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.2
hooks:
- id: codespell
name: Run codespell to check for common misspellings in files
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7956,7 +7956,7 @@ Improvement
- [AIRFLOW-3862] Check types with mypy. (#4685)
- [AIRFLOW-251] Add option SQL_ALCHEMY_SCHEMA parameter to specify schema for metadata (#4199)
- [AIRFLOW-1814] Temple PythonOperator {op_args,op_kwargs} fields (#4691)
- [AIRFLOW-3730] Standarization use of logs mechanisms (#4556)
- [AIRFLOW-3730] Standardization use of logs mechanisms (#4556)
- [AIRFLOW-3770] Validation of documentation on CI] (#4593)
- [AIRFLOW-3866] Run docker-compose pull silently in CI (#4688)
- [AIRFLOW-3685] Move licence header check (#4497)
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/sftp/hooks/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def walktree(
) -> None:
"""
Recursively descend, depth first, the directory tree rooted at
path, calling discreet callback functions for each regular file,
path, calling discrete callback functions for each regular file,
directory and unknown file type.
:param str path:
Expand Down
2 changes: 1 addition & 1 deletion airflow/utils/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def prepare_code_snippet(file_path: str, line_no: int, context_lines_count: int
"""
Prepare code snippet with line numbers and a specific line marked.
:param file_path: File nam
:param file_path: File name
:param line_no: Line number
:param context_lines_count: The number of lines that will be cut before and after.
:return: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The main decision is:
**Vast majority of both Breeze and our CI scripts should be Python-based**

There are likely a number of scripts that will remain in Bash, but they should contain no sophisticated
logic, they should not haave common code in form of libraries and only used to execute simple tasks inside
logic, they should not have common code in form of libraries and only used to execute simple tasks inside
Docker containers. No Bash should ever be used in the host environment.

There are a few properties of Breeze/CI scripts that should be maintained though
Expand Down
2 changes: 1 addition & 1 deletion dev/stats/get_important_pr_candidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def verboseStr(self) -> str:
)
@click.option("--top-number", type=int, default=DEFAULT_TOP_PRS, help="The number of PRs to select")
@click.option("--save", type=click.File("wb"), help="Save PR data to a pickle file")
@click.option("--load", type=click.File("rb"), help="Load PR data from a file and recalcuate scores")
@click.option("--load", type=click.File("rb"), help="Load PR data from a file and recalculate scores")
@click.option("--verbose", is_flag="True", help="Print scoring details")
def main(
github_token: str,
Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow/extra-packages-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ These are extras that provide support for integration with external systems via
Bundle extras
-------------

These are extras that install one ore more extras as a bundle. Note that these extras should only be used for "development" version
These are extras that install one or more extras as a bundle. Note that these extras should only be used for "development" version
of Airflow - i.e. when Airflow is installed from sources. Because of the way how bundle extras are constructed they might not
work when airflow is installed from 'PyPI`.

Expand Down
3 changes: 2 additions & 1 deletion docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ Decrypt
decrypt
decrypted
Decrypts
dedented
deduplicate
deduplication
deepcopy
Expand All @@ -406,6 +407,7 @@ DependencyMixin
deploymentUrl
Deprecations
deps
deques
deregister
desc
deserialization
Expand Down Expand Up @@ -1354,7 +1356,6 @@ ssm
Stackdriver
stackdriver
stacktrace
Standarization
starttls
StatefulSet
StatefulSets
Expand Down
8 changes: 4 additions & 4 deletions tests/providers/docker/operators/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_execute(self):
host_tmp_dir="/host/airflow",
container_name="test_container",
tty=True,
hostname="test.contrainer.host",
hostname="test.container.host",
device_requests=[DeviceRequest(count=-1, capabilities=[["gpu"]])],
log_opts_max_file="5",
log_opts_max_size="10m",
Expand All @@ -128,7 +128,7 @@ def test_execute(self):
entrypoint=["sh", "-c"],
working_dir="/container/path",
tty=True,
hostname="test.contrainer.host",
hostname="test.container.host",
)
self.client_mock.create_host_config.assert_called_once_with(
mounts=[
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_execute_no_temp_dir(self):
shm_size=1000,
host_tmp_dir="/host/airflow",
container_name="test_container",
hostname="test.contrainer.host",
hostname="test.container.host",
tty=True,
)
operator.execute(None)
Expand All @@ -204,7 +204,7 @@ def test_execute_no_temp_dir(self):
entrypoint=["sh", "-c"],
working_dir="/container/path",
tty=True,
hostname="test.contrainer.host",
hostname="test.container.host",
)
self.client_mock.create_host_config.assert_called_once_with(
mounts=[
Expand Down

0 comments on commit c0a7bf2

Please sign in to comment.