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

feat: update backend and metadata modules #1712

Merged
merged 2 commits into from
Jun 13, 2024
Merged
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
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