Skip to content

Commit 712e753

Browse files
committed
Add codespell pre-commit hook
1 parent ae86e6c commit 712e753

File tree

12 files changed

+44
-36
lines changed

12 files changed

+44
-36
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ repos:
4343
- id: text-unicode-replacement-char
4444
priority: 0
4545

46+
- repo: https://github.com/IamTheFij/docker-pre-commit
47+
rev: v3.0.1
48+
hooks:
49+
- id: docker-compose-check
50+
priority: 0
51+
4652
- repo: https://github.com/Lucas-C/pre-commit-hooks
4753
rev: v1.5.5
4854
hooks:
@@ -74,14 +80,37 @@ repos:
7480
- --no-extra-eol
7581
priority: 7
7682

83+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
84+
rev: v2.15.0
85+
hooks:
86+
- id: pretty-format-yaml
87+
args: [--autofix, --indent, '2', --offset, '2']
88+
priority: 8
89+
90+
- repo: https://github.com/codespell-project/codespell
91+
rev: v2.4.1
92+
hooks:
93+
- id: codespell
94+
args: [-w]
95+
additional_dependencies:
96+
- tomli
97+
exclude: .*\.svg
98+
priority: 9
99+
100+
- repo: https://github.com/astral-sh/uv-pre-commit
101+
rev: 0.9.18
102+
hooks:
103+
- id: uv-lock
104+
priority: 10
105+
77106
- repo: https://github.com/astral-sh/ruff-pre-commit
78107
rev: v0.14.10
79108
hooks:
80109
- id: ruff-format
81-
priority: 8
110+
priority: 10
82111
- id: ruff-check
83112
args: [--fix]
84-
priority: 9
113+
priority: 11
85114

86115
- repo: local
87116
hooks:
@@ -91,27 +120,7 @@ repos:
91120
language: python
92121
require_serial: true
93122
pass_filenames: false
94-
priority: 10
95-
96-
97-
- repo: https://github.com/IamTheFij/docker-pre-commit
98-
rev: v3.0.1
99-
hooks:
100-
- id: docker-compose-check
101-
priority: 0
102-
103-
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
104-
rev: v2.15.0
105-
hooks:
106-
- id: pretty-format-yaml
107-
args: [--autofix, --indent, '2', --offset, '2']
108-
priority: 8
109-
110-
- repo: https://github.com/astral-sh/uv-pre-commit
111-
rev: 0.9.18
112-
hooks:
113-
- id: uv-lock
114-
priority: 8
123+
priority: 11
115124

116125
- repo: meta
117126
hooks:

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
What is Data.SyncMaster?
3333
------------------------
3434

35-
Data.SyncMaster is as no-code ETL tool for transfering data between databases and file systems.
35+
Data.SyncMaster is as no-code ETL tool for transferring data between databases and file systems.
3636
List of currently supported connections:
3737

3838
* Apache Hive
@@ -55,7 +55,7 @@ Based on `onETL <https://onetl.readthedocs.io/>`_ and `Apache Spark <https://spa
5555
Goals
5656
-----
5757

58-
* Make transfering data between databases and file systems as simple as possible
58+
* Make transferring data between databases and file systems as simple as possible
5959
* Provide a lot of builtin connectors to transfer data in heterogeneous environment
6060
* RBAC and multitenancy support
6161

docker-compose.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
retries: 3
3434

3535
# Using worker image here to skip building server image build in CI.
36-
# Worker test image already has all neccessary dependencies
36+
# Worker test image already has all necessary dependencies
3737
migrations:
3838
image: mtsrus/syncmaster-worker:${WORKER_IMAGE_TAG:-test}
3939
restart: no

docker/Dockerfile.worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN --mount=type=bind,source=./syncmaster/worker/ivy2.py,target=/app/syncmaster/
4949
# If multiple packages depends on the same transitive dependency, Spark uses maximum version of this dependency.
5050
python /app/docker/download_ivy2_packages.py all && \
5151
# Then try to download specific connectors to fetch exact dependency version specified within connector.
52-
# Yes, this is slow, but overwise using worker without internet access will fail, unless custom ivysettings.xml is used
52+
# Yes, this is slow, but otherwise using worker without internet access will fail, unless custom ivysettings.xml is used
5353
python /app/docker/download_ivy2_packages.py s3 && \
5454
python /app/docker/download_ivy2_packages.py hdfs && \
5555
python /app/docker/download_ivy2_packages.py clickhouse && \

docker/download_ivy2_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_spark_session_conf_for_docker_image(connection_types: set[str]) -> dict:
2424
"spark.jars.packages": ",".join(maven_packages),
2525
"spark.jars.excludes": ",".join(excluded_packages),
2626
"spark.sql.pyspark.jvmStacktrace.enabled": "true",
27-
# use only minimal available resoures
27+
# use only minimal available resources
2828
"spark.driver.cores": "1",
2929
"spark.driver.memory": "512M",
3030
"spark.executor.cores": "1",

docs/changelog/0.2.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TL;DR
66

77
- Completely new UI.
88
- Add support for FileSystem connections.
9-
- Add support for simple tranformations within transfer - filter files, filter rows, change columns.
9+
- Add support for simple transformations within transfer - filter files, filter rows, change columns.
1010
- Add support for incremental read strategy.
1111
- Add support for running transfers by schedule.
1212
- Add support for changing SparkSession resource limits.
@@ -66,7 +66,7 @@ Improvements
6666
Bug Fixes
6767
---------
6868

69-
- Use Hadoop AWS ``magic`` commiter only if transfer *target* is S3. (:issue:`46`)
69+
- Use Hadoop AWS ``magic`` committer only if transfer *target* is S3. (:issue:`46`)
7070
- Check that ``service_name`` and ``sid`` are mutually exclusive when editing Oracle connection. (:issue:`52`)
7171
- Queue name is unique within a group, new field ``slug`` is globally-unique. (:issue:`54`, :issue:`119`)
7272
- Prohibit updating connection type it if there is a transfer associated with this connection. (:issue:`55`)

docs/changelog/0.2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Improvements
1818
Bug fixes
1919
---------
2020

21-
- Call ``kinit`` before starting Spark session conecting to ``Hive`` cluster. (:issue:`225`)
21+
- Call ``kinit`` before starting Spark session connecting to ``Hive`` cluster. (:issue:`225`)
2222
- Fix ``HDFS`` connection was trying to use anonymous auth instead of user/password. (:issue:`225`)
2323
- Fix updating queue ignored name and didn't reset description.

docs/design/entities/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Groups are independent from each other, and have globally unique name.
2121
.. image:: ./group_info.png
2222

2323
Group can be created by any user, which automatically get ``OWNER`` role.
24-
This role allows adding members to the group, and assign them speficic roles:
24+
This role allows adding members to the group, and assign them specific roles:
2525

2626
.. image:: ./group_add_member.png
2727

docs/reference/frontend/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Frontend
44
========
55

66
SyncMaster provides a `Frontend (UI) <https://github.com/MobileTeleSystems/syncmaster-ui>`_ based on `React <https://react.dev/>`_,
7-
providing users the ability to create, update, delete entitities.
7+
providing users the ability to create, update, delete entities.
88

99
Install & run
1010
-------------

docs/reference/server/manage_superusers_cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ There are two ways to manage users:
1919
- user1
2020
- user2
2121
22-
Or via enviroment variable:
22+
Or via environment variable:
2323

2424
.. code-block:: bash
2525

0 commit comments

Comments
 (0)