Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Nov 12, 2024
2 parents 37bcaca + ddf3ec1 commit 636304e
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 37 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ jobs:
with:
name: coverage-python-${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}-os-${{ matrix.os }}
path: reports/*
# https://github.com/actions/upload-artifact/issues/602
include-hidden-files: true

- name: Shutdown Backend Container
if: always()
Expand Down Expand Up @@ -125,10 +127,9 @@ jobs:
- name: Download all coverage reports
uses: actions/download-artifact@v4
with:
path: reports

- name: Move coverage data to the root folder
run: find reports -type f -exec mv '{}' reports \;
path: reports/
pattern: coverage-*
merge-multiple: true

- name: Generate coverate reports
run: ./combine_coverage.sh
Expand All @@ -139,8 +140,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./reports/coverage.xml
fail_ci_if_error: true
# TODO: remove after fixing https://github.com/codecov/codecov-cli/issues/367
plugin: gcov
plugin: noop

- name: All done
run: echo 1
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand Down Expand Up @@ -49,7 +49,7 @@ repos:
args: [-w]

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2', --offset, '2']
Expand Down Expand Up @@ -77,7 +77,7 @@ repos:
- id: text-unicode-replacement-char

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-runtime-typing]
Expand All @@ -88,7 +88,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/pycqa/bandit
rev: 1.7.8
rev: 1.7.10
hooks:
- id: bandit
args:
Expand All @@ -98,19 +98,19 @@ repos:
require_serial: true

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.19.1
hooks:
- id: blacken-docs

Expand All @@ -120,7 +120,7 @@ repos:
- id: isort

- repo: https://github.com/pycqa/bandit
rev: 1.7.8
rev: 1.7.10
hooks:
- id: bandit
args:
Expand Down
2 changes: 1 addition & 1 deletion .spdx-license-header.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
SPDX-FileCopyrightText: 2023-2024 MTS PJSC
SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023-2024 MTS (Mobile Telesystems). All rights reserved.
Copyright 2023-2024 MTS PJSC. All rights reserved.

Apache License
Version 2.0, January 2004
Expand Down
18 changes: 9 additions & 9 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
# SPDX-FileCopyrightText: 2023-2024 MTS PJSC
# SPDX-License-Identifier: Apache-2.0
import os
import secrets
Expand Down Expand Up @@ -88,13 +88,13 @@
# no topic
expression="offset",
value={
"0": 100,
"1": 123,
0: 100,
1: 123,
},
),
{
"0": 110,
"1": 150,
0: 110,
1: 150,
},
),
(
Expand All @@ -103,13 +103,13 @@
topic="topic_name",
expression="offset",
value={
"0": 100,
"1": 123,
0: 100,
1: 123,
},
),
{
"0": 110,
"1": 150,
0: 110,
1: 150,
},
),
],
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog/1.0.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1.0.1 (2024-11-12)
==================

Allow using ``etl-entities==2.4.0``.
1 change: 1 addition & 0 deletions docs/changelog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:caption: Changelog

DRAFT
1.0.1
1.0.0
0.1.6
0.1.5
Expand Down
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# -- Project information -----------------------------------------------------

project = "Horizon HWM Store"
copyright = "2023-2024 MTS (Mobile Telesystems)"
copyright = "2023-2024 MTS PJSC"
author = "DataOps.ETL"

# The version info for the project you're documenting, acts as replacement for
Expand Down Expand Up @@ -54,6 +54,7 @@
"sphinx_favicon",
"sphinx_toolbox.github",
"sphinxcontrib.towncrier", # provides `towncrier-draft-entries` directive
"sphinx_last_updated_by_git",
]
numpydoc_show_class_members = True
autodoc_pydantic_model_show_config = False
Expand Down Expand Up @@ -84,9 +85,7 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_extra_path = ["robots.txt"]
favicons = [
{"rel": "icon", "href": "icon.svg", "type": "image/svg+xml"},
]

# The master toctree document.
master_doc = "index"

Expand Down
2 changes: 1 addition & 1 deletion horizon_hwm_store/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
2 changes: 1 addition & 1 deletion horizon_hwm_store/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
# SPDX-FileCopyrightText: 2023-2024 MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from horizon_hwm_store.horizon_hwm_store import HorizonHWMStore

Expand Down
4 changes: 2 additions & 2 deletions horizon_hwm_store/horizon_hwm_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
# SPDX-FileCopyrightText: 2023-2024 MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations

Expand Down Expand Up @@ -79,7 +79,7 @@ class HorizonHWMStore(BaseHWMStore):
connection=postgres,
source="public.mydata",
columns=["id", "data"],
hwm=DBReader.AutoDetectHWM(hwm="some_unique_hwm_name", expression="id"),
hwm=DBReader.AutoDetectHWM(name="some_unique_hwm_name", expression="id"),
)
writer = DBWriter(connection=hive, target="newtable")
Expand Down
2 changes: 1 addition & 1 deletion horizon_hwm_store/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
# SPDX-FileCopyrightText: 2023-2024 MTS PJSC
# SPDX-License-Identifier: Apache-2.0
"""
__version__ parameter required to be able to output to the console
Expand Down
4 changes: 3 additions & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ numpydoc
sphinx
sphinx-copybutton
sphinx-favicon
sphinx-last-updated-by-git
sphinx-toolbox
sphinxcontrib-towncrier
towncrier
# TODO: remove upper limit after https://github.com/sphinx-contrib/sphinxcontrib-towncrier/issues/92
towncrier<24.7
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
data-horizon[client-sync]>=1.0.0,<1.1
etl-entities>=2.1.0,<2.4.0
etl-entities>=2.1.0,<2.5.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems)
# SPDX-FileCopyrightText: 2023-2024 MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations

Expand Down

0 comments on commit 636304e

Please sign in to comment.