Skip to content

Commit

Permalink
cove_bods: Add support for BODS 0.4 data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Jan 8, 2025
1 parent 8b595eb commit 43376f9
Show file tree
Hide file tree
Showing 23 changed files with 1,236 additions and 393 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.11
architecture: x64
- run: pip install dokkusd
- uses: oNaiPs/secrets-to-env-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/branch-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.11
architecture: x64
- run: pip install dokkusd
- run: python -m dokkusd.cli destroy --appname ${{ vars.DOKKU_APP_NAME_PREFIX }}-${{ github.event.ref }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r requirements_dev.txt
- run: isort --check-only cove_project/ cove_bods/
- run: black --check cove_project/ cove_bods/
- run: flake8 cove_project/ cove_bods/
2 changes: 1 addition & 1 deletion .github/workflows/live-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.11
architecture: x64
- run: pip install dokkusd
- uses: oNaiPs/secrets-to-env-action@v1
Expand Down
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[isort]
profile=black
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# openownership-cove-bods-alpha
# Open Ownership BODS Cove

Checks data complies with the Beneficial Ownership Data Standard (BODS) versions 0.1-0.4,
and displays any errors. Also converts uploaded data between JSON and XLSX formats.
Based on: https://github.com/OpenDataServices/cove

## Dev installation

Expand Down
2 changes: 1 addition & 1 deletion cove_bods/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class CoveBodsConfig(AppConfig):
name = 'cove_bods'
name = "cove_bods"
12 changes: 9 additions & 3 deletions cove_bods/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@ class NewUploadForm(forms.Form):
),
label="",
)
sample_mode = forms.BooleanField(label="Process using Sample mode (see information above)", required=False)
sample_mode = forms.BooleanField(
label="Process using Sample mode (see information above)", required=False
)


class NewTextForm(forms.Form):
file_field_names = []
paste = forms.CharField(label="Paste (JSON only)", widget=forms.Textarea)
sample_mode = forms.BooleanField(label="Process using Sample mode (see information above)", required=False)
sample_mode = forms.BooleanField(
label="Process using Sample mode (see information above)", required=False
)


class NewURLForm(forms.Form):
file_field_names = []
url = forms.URLField(label="URL")
sample_mode = forms.BooleanField(label="Process using Sample mode (see information above)", required=False)
sample_mode = forms.BooleanField(
label="Process using Sample mode (see information above)", required=False
)
Loading

0 comments on commit 43376f9

Please sign in to comment.