Skip to content

Commit

Permalink
feat: update backend and metadata modules (#1712)
Browse files Browse the repository at this point in the history
* chore: move config templates to templates folder

* feat: update backend and metadata modules
  • Loading branch information
vncsna committed Jun 13, 2024
1 parent e4d5452 commit 59a7816
Show file tree
Hide file tree
Showing 22 changed files with 691 additions and 1,020 deletions.
16 changes: 0 additions & 16 deletions .mergify.yml

This file was deleted.

17 changes: 1 addition & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,5 @@ repos:
rev: v0.2.0
hooks:
- id: ruff
args: [--fix]
args: [--fix, --select, I]
- id: ruff-format

- repo: https://github.com/returntocorp/semgrep
rev: v1.30.0
hooks:
- id: semgrep
language: python
args: [
"--error",
"--config",
"auto",
"--exclude-rule",
"python.lang.security.audit.subprocess-shell-true.subprocess-shell-true",
"--exclude-rule",
"yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha",
]
7 changes: 3 additions & 4 deletions docs/docs/api_reference_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
Esta API é composta por funções com 2 tipos de funcionalidade:

- Módulos para **requisição de dados**: para aquele(as) que desejam
somente consultar os dados e metadados do nosso projeto (ou qualquer outro
projeto no Google Cloud).
somente consultar os dados e metadados do nosso projeto.

- Classes para **gerenciamento de dados** no Google Cloud: para
aqueles(as) que desejam subir dados no nosso projeto (ou qualquer outro
Expand All @@ -15,7 +14,7 @@ Esta API é composta por funções com 2 tipos de funcionalidade:

## Módulos (Requisição de dados)

::: basedosdados.download.download
::: basedosdados.download.metadata
handler: python
rendering:
show_root_heading: no
Expand All @@ -25,7 +24,7 @@ Esta API é composta por funções com 2 tipos de funcionalidade:
docstring_options:
replace_admonitions: no

::: basedosdados.download.metadata
::: basedosdados.download.download
handler: python
rendering:
show_root_heading: no
Expand Down
11 changes: 3 additions & 8 deletions python-package/basedosdados/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Importing the module will automatically import the submodules.
"""
# flake8: noqa
import os
import sys

Expand All @@ -14,15 +13,11 @@

from basedosdados.backend import Backend
from basedosdados.constants import config, constants
from basedosdados.download.base import reauth
from basedosdados.download.download import download, read_sql, read_table
from basedosdados.download.metadata import (
get_dataset_description,
get_table_columns,
get_table_description,
get_table_size,
list_dataset_tables,
list_datasets,
get_columns,
get_datasets,
get_tables,
search,
)
from basedosdados.upload.connection import Connection
Expand Down
Loading

0 comments on commit 59a7816

Please sign in to comment.