Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cove_bods: Add support for BODS 0.4 data #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading