Skip to content

Commit b2cb6d7

Browse files
authored
Merge branch 'main' into 326-ant-1
2 parents 95f8571 + 87768d8 commit b2cb6d7

10 files changed

Lines changed: 11 additions & 68 deletions

File tree

.github/workflows/flake8.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ jobs:
3636
- name: Run flake8 lint
3737
uses: py-actions/flake8@v2
3838
with:
39-
max-line-length: 88
4039
path: sz_tools
41-
plugins: flake8-black

.github/workflows/mypy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
- name: Run mypy tests
4545
run: |
4646
# shellcheck disable=SC2046
47-
mypy --strict $(git ls-files '*.py' ':!:docs/source/*')
47+
mypy $(git ls-files '*.py' ':!:docs/source/*')

.github/workflows/pylint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
python -m pip install --upgrade pip
4343
python -m pip install --group all .
4444
45-
- name: Analysing the code with pylint
45+
- name: Analyzing the code with pylint
4646
run: |
4747
# shellcheck disable=SC2046
4848
pylint $(git ls-files '*.py' ':!:docs/source/*')

.github/workflows/pytest-darwin.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,3 @@ jobs:
9696
with:
9797
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
9898
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
99-
100-
coverage:
101-
if: github.event_name == 'pull_request'
102-
name: Coverage
103-
needs: pytest-darwin
104-
permissions:
105-
pull-requests: write
106-
contents: write
107-
uses: senzing-factory/build-resources/.github/workflows/python-coverage-comment.yaml@v3
108-
109-
slack-notification:
110-
needs: [pytest-darwin]
111-
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pytest-darwin.result ) && github.event_name == 'schedule' }}
112-
secrets:
113-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
114-
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
115-
with:
116-
job-status: ${{ needs.pytest-darwin.result }}

.github/workflows/pytest-linux.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [main]
88
schedule:
99
- cron: "15 7 * * *"
10+
workflow_dispatch:
1011

1112
concurrency:
1213
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
@@ -96,21 +97,3 @@ jobs:
9697
with:
9798
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
9899
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
99-
100-
coverage:
101-
if: github.event_name == 'pull_request'
102-
name: Coverage
103-
needs: pytest-linux
104-
permissions:
105-
pull-requests: write
106-
contents: write
107-
uses: senzing-factory/build-resources/.github/workflows/python-coverage-comment.yaml@v3
108-
109-
slack-notification:
110-
needs: [pytest-linux]
111-
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pytest-linux.result ) && (github.ref_name == github.event.repository.default_branch || github.event_name == 'schedule') }}
112-
secrets:
113-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
114-
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
115-
with:
116-
job-status: ${{ needs.pytest-linux.result }}

.github/workflows/pytest-windows.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
senzingsdk-version: ${{ matrix.senzingsdk-version }}
6161

62-
- name: Add to "Path" environment variable
62+
- name: Set environment variables
6363
run: |
6464
Add-Content "$env:GITHUB_PATH" "$Env:USERPROFILE\Senzing\er\lib"
6565
@@ -90,21 +90,3 @@ jobs:
9090
with:
9191
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
9292
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
93-
94-
coverage:
95-
if: github.event_name == 'pull_request'
96-
name: Coverage
97-
needs: pytest-windows
98-
permissions:
99-
pull-requests: write
100-
contents: write
101-
uses: senzing-factory/build-resources/.github/workflows/python-coverage-comment.yaml@v3
102-
103-
slack-notification:
104-
needs: [pytest-windows]
105-
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pytest-windows.result ) && github.event_name == 'schedule' }}
106-
secrets:
107-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
108-
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
109-
with:
110-
job-status: ${{ needs.pytest-windows.result }}

.vscode/cspell.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"abspath",
66
"addconfig",
77
"alnum",
8-
"Analysing",
98
"ANONSUPPORT",
109
"Anytown",
1110
"applehelp",
@@ -370,4 +369,4 @@
370369
"data/**",
371370
"development-requirements.txt"
372371
]
373-
}
372+
}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ venv: venv-osarch-specific
6666
dependencies-for-development: venv dependencies-for-development-osarch-specific
6767
$(activate-venv); \
6868
python3 -m pip install --upgrade pip; \
69-
python3 -m pip install --group all
69+
python3 -m pip install --group all .
7070

7171

7272
.PHONY: dependencies
@@ -198,7 +198,7 @@ isort:
198198
mypy:
199199
$(info ${\n})
200200
$(info --- mypy -----------------------------------------------------------------------)
201-
@$(activate-venv); mypy --strict $(shell git ls-files '*.py' ':!:docs/source/*')
201+
@$(activate-venv); mypy $(shell git ls-files '*.py' ':!:docs/source/*')
202202

203203
.PHONY: prettier
204204
prettier:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ development = [
4646
"pytest==9.0.2; python_version > '3.11'",
4747
"twine==6.2.0",
4848
"typing_extensions==4.15.0; python_version < '3.11'",
49-
"virtualenv==20.36.0",
49+
"virtualenv==20.36.1",
5050
"wheel==0.45.1",
5151
]
5252
documentation = [
@@ -91,7 +91,7 @@ test = [
9191
]
9292

9393
[tool.setuptools.packages.find]
94-
where = ["src"]
94+
where = ["sz_tools"]
9595

9696
[tool.bandit]
9797
skips = ["B101", "B108", "B404", "B602", "B605", "B608"]
@@ -105,7 +105,7 @@ max-line-length = 120
105105

106106
[tool.isort]
107107
profile = "black"
108-
src_paths = ["examples", "src", "tests"]
108+
src_paths = ["examples", "tests"]
109109

110110
[tool.mypy]
111111
exclude = ['.venv', 'g2_tools']

sz_tools/_tool_helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
import time
1515
import tty
1616
from contextlib import suppress
17-
from dataclasses import dataclass
1817
from itertools import product
1918
from pathlib import Path
2019
from signal import SIGALRM, alarm, signal
21-
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Tuple, TypeVar, Union
20+
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, TypeVar, Union
2221

2322
from senzing import SzEngineFlags, SzError, constants
2423

0 commit comments

Comments
 (0)