Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1f3deec
feat: include a python API to dados.gov.br API
luabida Feb 26, 2026
f825b64
refactor: refactor pysus structure
luabida Mar 3, 2026
5ab5153
remove circular imports
luabida Mar 3, 2026
7b370c6
move individual database files to databases.py
luabida Mar 15, 2026
403ac6d
normalize FileDescription to prepare for ducklake implementation
luabida Mar 16, 2026
d26906a
start building the dadosgov models to extract & describe the files wi…
luabida Mar 19, 2026
0bb813f
BREAKING CHANGE: refactor local data files; implement groups for pysu…
luabida Apr 1, 2026
d0f46ef
refactor(ducklake): implement abstract classes on the ducklake api cl…
luabida Apr 6, 2026
8682390
refactor(ducklake): implement abstract classes on the ducklake api cl…
luabida Apr 6, 2026
8e5fc12
refactor(ftp): implement base models to ftp api
luabida Apr 7, 2026
f0dbbb3
finish implementing it on all ftp databases
luabida Apr 7, 2026
cd723c5
include some tests
luabida Apr 7, 2026
28cf416
update tqdm
luabida Apr 8, 2026
0e5e70d
implement interfaces on dadosgov modules
luabida Apr 8, 2026
cf35aa6
create a PySUS orchestrator that will be a bridge between remote clie…
luabida Apr 9, 2026
cdbdc21
clean package/prepare to v2 release; start refining tui
luabida Apr 10, 2026
ad18d62
restric dependency import error only to DBC
luabida Apr 10, 2026
914f2b7
start testing the programatically upload of the files on s3
luabida Apr 11, 2026
972a4d0
fix all the mypy linting errors
luabida Apr 15, 2026
22489fd
include more tests now that catalog.db is filled
luabida Apr 15, 2026
ee5d08e
fix tests
luabida Apr 15, 2026
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
18 changes: 13 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ jobs:
auto-update-conda: true
conda-solver: libmamba

- name: Run jupyterlab with PySUS
run: |
make run-jupyter-pysus
# - name: Run jupyterlab with PySUS
# run: |
# make run-jupyter-pysus
# make test-jupyter-pysus ## takes too long

- name: Linting & Tests
run: |
export CI=1
poetry install
pip install poetry poetry-plugin-export

poetry config virtualenvs.create false

poetry export --with dev --extras dbc --format requirements.txt --output reqs.txt --without-hashes

pip install -r reqs.txt
pip install -e ".[dbc]"

pre-commit run --all-files

make test-pysus
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ dmypy.json

# pytype static type analyzer
.pytype/
.pylintrc

# Cython debug symbols
cython_debug/
Expand All @@ -189,3 +190,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
pyrightconfig.json
82 changes: 48 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,57 @@ default_stages: [commit, push]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast

- repo: local
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- entry: black
id: black
name: black
exclude: |
(?x)(
docs
)
files: ""
language: system
pass_filenames: true
types:
- python
- file
- python
- id: black
args: [--line-length=80]
exclude: ^docs/

- entry: flake8
exclude: ^$
files: ""
id: flake8
language: python
name: flake8
pass_filenames: true
types:
- python
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile=black, --line-length=80]
exclude: ^.*/js/.*$

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=80, --extend-ignore=E203]
additional_dependencies: [
'flake8-blind-except',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-implicit-str-concat',
'pydocstyle>=6.3.0',
]

- entry: isort
exclude: "^.*/js/.*$"
files: ""
id: isort
language: python
name: isort
pass_filenames: true
types:
- python
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [
'types-python-dateutil',
'types-requests',
'types-setuptools',
'pandas-stubs',
'pydantic>=2.0.0',
]
args: [--ignore-missing-imports, --explicit-package-bases]
exclude: ^docs/

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py310-plus]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ First, clone the Pysus repository:

```bash
git clone https://github.com/AlertaDengue/PySUS.git
```
```

then from within the PySUS directory build the container

Expand Down
1 change: 0 additions & 1 deletion conda/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ dependencies:
- python>=3.10,<3.14
- jupyter
- make
- poetry
- pip
56 changes: 0 additions & 56 deletions condarecipe/pysus/meta.yaml

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PySUS documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 25 10:37:19 2016.
Expand Down
Loading
Loading