Skip to content

Commit a3b0ace

Browse files
committed
Merge branch 'develop_v06' of https://github.com/NHSDigital/data-validation-engine into feature/ndit-655_refdata_arrow_integration
2 parents 5a5f3da + be0a630 commit a3b0ace

6 files changed

Lines changed: 3157 additions & 48 deletions

File tree

.github/workflows/ci_linting.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: CI Formatting & Linting
33
on:
44
pull_request:
55
types: [opened, reopened, synchronize]
6-
branches:
7-
- main
86

97

108
jobs:
@@ -30,17 +28,9 @@ jobs:
3028
- name: ensure poetry using desired python version
3129
run: poetry env use $(asdf which python)
3230

33-
- name: Cache Poetry virtualenv
34-
uses: actions/cache@v4
35-
with:
36-
path: ~/.cache/pypoetry
37-
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-poetry-
40-
4131
- name: Install lint dependencies
4232
run: |
43-
make install
33+
poetry install --sync --no-interaction --with lint
4434
4535
- name: Run black
4636
run: poetry run black src

.github/workflows/ci_testing.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,10 @@ jobs:
3030

3131
- name: ensure poetry using desired python version
3232
run: poetry env use $(asdf which python)
33-
34-
- name: Cache Poetry virtualenv
35-
uses: actions/cache@v4
36-
with:
37-
path: ~/.cache/pypoetry
38-
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
39-
restore-keys: |
40-
${{ runner.os }}-poetry-
4133

4234
- name: Install test dependencies
4335
run: |
44-
make install
36+
poetry install --sync --no-interaction --with test
4537
4638
- name: Run pytest and coverage
4739
run: |

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ share/python-wheels/
3232
.installed.cfg
3333
*.egg
3434
MANIFEST
35-
poetry.lock
3635

3736
# PyInstaller
3837
# Usually these files are written by a python script from a template

poetry.lock

Lines changed: 3140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,19 @@ classifiers = [
1818

1919
[tool.poetry.dependencies]
2020
python = ">=3.10,<3.12"
21-
boto3 = "1.34.162"
22-
botocore = "1.34.162"
23-
delta-spark = "2.4.0"
24-
duckdb = "1.1.0" # mitigates security vuln in < 1.1.0
25-
formulas = "1.2.4"
26-
idna = "3.7" # Downstream dep of requests but has security vuln < 3.7
27-
Jinja2 = "3.1.6" # mitigates security vuln in < 3.1.6
28-
lxml = "4.9.1"
29-
openpyxl = "3.1.0"
30-
pandas = "2.2.2"
31-
polars = "0.20.14"
32-
pyarrow = "17.0.0"
33-
pydantic = "1.10.15" # Mitigates security vuln in < 1.10.13
34-
pymongo = "4.6.3"
35-
pyspark = "3.4.4"
36-
pytz = "2022.1"
37-
PyYAML = "6.0.3"
38-
requests = "2.32.4" # Mitigates security vuln in < 2.31.0
39-
schedula = "1.2.19"
40-
sqlalchemy = "2.0.19"
41-
typing_extensions = "4.6.2"
42-
urllib3 = "2.6.3" # Mitigates security vuln in < 2.6.0
43-
xmltodict = "0.13.0"
21+
boto3 = ">=1.34.162,<1.36" # breaking change beyond 1.36
22+
botocore = ">=1.34.162,<1.36" # breaking change beyond 1.36
23+
delta-spark = "2.4.*"
24+
duckdb = "1.1.*" # breaking changes beyond 1.1
25+
Jinja2 = "3.1.*"
26+
lxml = "^4.9.1"
27+
openpyxl = "^3.1"
28+
pandas = "^2.2.2"
29+
polars = "0.20.*"
30+
pyarrow = "^17.0.0"
31+
pydantic = "1.10.15"
32+
pyspark = "3.4.*"
33+
typing_extensions = "^4.6.2"
4434

4535
[tool.poetry.group.dev]
4636
optional = true
@@ -62,7 +52,6 @@ behave = "1.3.3"
6252
coverage = "7.11.0"
6353
moto = {extras = ["s3"], version = "4.0.13"}
6454
Werkzeug = "3.0.6" # Dependency of moto which needs 3.0.6 for security vuln mitigation
65-
mongomock = "4.1.2"
6655
pytest = "8.4.2"
6756
pytest-lazy-fixtures = "1.4.0" # switched from https://github.com/TvoroG/pytest-lazy-fixture as it's no longer supported
6857
xlsx2csv = "0.8.2"
@@ -98,10 +87,9 @@ ignore = ["B028", "D213", "D203", "D205", "D107", "D105"]
9887

9988
[tool.mypy]
10089
plugins = ["pydantic.mypy"]
101-
enable_recursive_aliases = true
10290

10391
[[tool.mypy.overrides]]
104-
module = "polars"
92+
module = "polars.*"
10593
follow_imports = "skip"
10694
# ^language server knows what's going on, but mypy can't find attributes on Self? type
10795

tests/features/steps/steps_audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ def check_latest_audit_record_for_submission(context: Context, status: str):
1717
proc_status = pipeline._audit_tables.get_current_processing_info(
1818
get_submission_info(context).submission_id
1919
)
20-
assert proc_status.processing_status == status
20+
assert proc_status.processing_status == status, proc_status.processing_status

0 commit comments

Comments
 (0)