Skip to content

Commit

Permalink
chore: ⬆️ upgrade quarto
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgasquez committed Oct 25, 2023
1 parent 4f7de74 commit e9d1d66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@
"files.associations": {
"*.sql": "jinja-sql"
},
"quarto.render.previewType": "external",
"[jinja-sql]": {
"editor.defaultFormatter": "innoverio.vscode-dbt-power-user",
"editor.formatOnSave": true
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
}
},
"notebook.formatOnSave.enabled": true,
"python.analysis.typeCheckingMode": "basic",
"ruff.organizeImports": true,
"ruff.enableExperimentalFormatter": true
"python.analysis.autoImportCompletions": true
},
"extensions": [
"charliermarsh.ruff",
Expand All @@ -35,6 +36,7 @@
"ms-python.vscode-pylance",
"ms-toolsai.datawrangler",
"ms-toolsai.jupyter",
"quarto.quarto",
"redhat.vscode-yaml",
"tamasfe.even-better-toml",
"visualstudioexptteam.vscodeintellicode"
Expand All @@ -43,8 +45,7 @@
},
"features": {
"ghcr.io/stuartleeks/dev-container-features/shell-history:latest": {},
"ghcr.io/devcontainers/features/common-utils:latest": {},
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:latest": {}
"ghcr.io/devcontainers/features/common-utils:latest": {}
},
"remoteUser": "vscode",
"portsAttributes": {
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update && apt-get -y install --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Install Quarto
RUN curl -sL $(curl https://quarto.org/docs/download/_download.json | grep -oP "(?<=\"download_url\":\s\")https.*${ARCH}\.deb") --output /tmp/quarto.deb \
RUN curl -sL $(curl https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\"download_url\":\s\")https.*${ARCH}\.deb") --output /tmp/quarto.deb \
&& dpkg -i /tmp/quarto.deb \
&& rm /tmp/quarto.deb

Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

IMAGE_NAME := davidgasquez/datadex:v1.0.0

deps: clean
@dbt deps --project-dir dbt;

run: deps
run:
@dagster asset materialize --select \* -m datadex;

dev:
Expand Down
3 changes: 1 addition & 2 deletions datadex/assets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pandas as pd
from dagster import asset

from frictionless import Package


Expand All @@ -9,4 +8,4 @@ def raw_threatened_animal_species() -> pd.DataFrame:
p = Package(
"https://raw.githubusercontent.com/datonic/threatened-animal-species/main/datapackage.yaml"
)
return p.get_resource("threatened-species").to_pandas()
return p.get_resource("threatened-species").to_pandas() # type: ignore

0 comments on commit e9d1d66

Please sign in to comment.