Skip to content

Commit

Permalink
Update to latest data repo config
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 7, 2023
1 parent c019931 commit 348810f
Show file tree
Hide file tree
Showing 8 changed files with 1,926 additions and 1,686 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ _render/_parts
_render/_papermills
docs/_site
data/raw/scrapedxml
data/interim/regmem/
data/interim/regmem/
docs/data
docs/_*
23 changes: 8 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"sqlfluff.dialect": "ansi",
"sqlfluff.format.arguments": [
"--ignore=templating"
],
"sqlfluff.linter.arguments": [
"--ignore=templating"
],
"python.linting.pylintEnabled": true,
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": true,
"source.organizeImports.ruff": true
},
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.terminal.activateEnvironment": false,
"python.formatting.provider": "black",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.stubPath": "src/data_common/typing",
"editor.formatOnSave": true,
Expand All @@ -30,12 +29,6 @@
"**/templates/**/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
"python.linting.pylintArgs": [
"--max-line-length=88",
"--disable=C0103,E1101,W5101,E1123,E501,E203",
"--load-plugins=pylint_django"
],
"jupyter.jupyterServerType": "local",
"ltex.language": "en-GB",
"ltex.ltex-ls.path": "/ltex/ltex-ls-15.2.0/",
"[markdown]": {
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This dockerfile is used by binder.

FROM ghcr.io/mysociety/data_common:sha-2d20c80
FROM ghcr.io/mysociety/data_common:sha-a3b8e93

# Make an empty project directory so the 'self' setup doesn't fail and scripts can be setup
# Override the .pth created at previous stages to point to where the working directory will land
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/mysociety/data_common:sha-2d20c80
FROM ghcr.io/mysociety/data_common:sha-a3b8e93

# Make an empty project directory so the 'self' setup doesn't fail and scripts can be setup
# Override the .pth created at previous stages to point to where the working directory will land
Expand Down
3,572 changes: 1,907 additions & 1,665 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exclude=["src/data_common/typings"]
stubPath="src/data_common/typings"
typeCheckingMode="basic"


[notebook.settings]
default_page_title = "Settings file defined title"

Expand All @@ -37,3 +36,7 @@ credit_url = "https://survey.alchemer.com/s3/6876792/Data-usage"

[tool.duck]
query_dir = "src/parl_register_interests/sql"

[tool.ruff]
select = ["E", "F"]
ignore = ["E501"]
2 changes: 1 addition & 1 deletion script/setup
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
apt-get install rsync -y
python -m spacy download en_core_web_lg
python -m spacy download en_core_web_md

0 comments on commit 348810f

Please sign in to comment.