Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .copilotignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Reduce context size for GitHub Copilot (including coding agent runs)
# Keep this focused on generated, vendored, or binary-heavy paths.

# Python caches / local envs
__pycache__/
.mypy_cache/
.pytest_cache/
.ruff_cache/
.venv/
.venv*/

# Coverage / build artifacts
htmlcov/
.coverage*
coverage.xml
build/
dist/

# Node vendored deps
node_modules/

# Large binaries
*.vsix
*.zip
*.7z
*.tar
*.gz

# Data artifacts (keep templates/docs tracked elsewhere)
data/bronze/
data/silver/
data/gold/
data/analytics/
data/manual/raw_downloads/
data/manual/processed/
data/manual/outputs/

# Large generated artifacts
stress_artifacts/
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
import pathlib
import sys

markers = ("<<<<<<<", "=======", ">>>>>>>")
# Only flag real git conflict marker lines.
# In particular, don't treat long doc separators like "=====" as conflicts.
START_MARKERS = ("<<<<<<<", ">>>>>>>", "|||||||")
Comment on lines +41 to +43
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

START_MARKERS is a bit misleading because it includes >>>>>>> (an end marker) and ||||||| (ancestor marker). Consider renaming to something like CONFLICT_MARKER_PREFIXES (or similar) to better reflect what the tuple contains.

Copilot uses AI. Check for mistakes.
matches: list[tuple[str, int, str]] = []

allowed_suffixes = {".py", ".yml", ".yaml", ".md"}
Expand Down Expand Up @@ -66,8 +68,9 @@ jobs:
continue
for i, line in enumerate(text, start=1):
stripped = line.lstrip()
if stripped.startswith(markers):
matches.append((str(path), i, stripped.strip()))
cleaned = stripped.strip()
if cleaned.startswith(START_MARKERS) or cleaned == "=======":
matches.append((str(path), i, cleaned))
Comment on lines +71 to +73
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The middle marker \"=======\" is currently a hard-coded string while the other markers are grouped in a constant. To make the intent clearer and avoid scattering marker definitions, consider defining a dedicated constant (or set) for exact-match markers (e.g., EXACT_MARKERS = {\"=======\"}) and using membership checks alongside the prefix tuple.

Copilot uses AI. Check for mistakes.

if matches:
print("Found git merge conflict markers in tracked sources:")
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ cython_debug/
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

# Node
node_modules/

# VS Code extension bundles (avoid committing large binaries)
*.vsix

# Ruff stuff:
.ruff_cache/

Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
10 changes: 5 additions & 5 deletions data_pipeline/anatel/acesso_fixo_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from dataclasses import dataclass
from datetime import UTC, datetime
from datetime import datetime, timezone
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -71,12 +71,12 @@ def aggregate_acesso_fixo(
group_by_technology: bool = False,
strict: bool = False,
) -> AcessoFixoAggregateResult:
started_at = datetime.now(UTC)
started_at = datetime.now(timezone.utc)

if df.empty:
report = {
"started_at": started_at.isoformat(),
"ended_at": datetime.now(UTC).isoformat(),
"ended_at": datetime.now(timezone.utc).isoformat(),
"input_rows": 0,
"output_rows_summary": 0,
"output_rows_by_velocidade": 0,
Expand Down Expand Up @@ -152,7 +152,7 @@ def aggregate_acesso_fixo(
else:
by_tec_vel = None

ended_at = datetime.now(UTC)
ended_at = datetime.now(timezone.utc)
report = {
"started_at": started_at.isoformat(),
"ended_at": ended_at.isoformat(),
Expand Down Expand Up @@ -186,7 +186,7 @@ def write_acesso_fixo_outputs(
output_dir = Path(output_dir)
output_dir.mkdir(parents=True, exist_ok=True)

ts = datetime.now(UTC).strftime("%Y%m%d_%H%M%S")
ts = datetime.now(timezone.utc).strftime("%Y%m%d_%H%M%S")

written: dict[str, str] = {}

Expand Down
Binary file removed github.copilot-chat-0.37.2026010903.vsix
Binary file not shown.
16 changes: 0 additions & 16 deletions node_modules/.bin/esbuild

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/esbuild.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/esbuild.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/.bin/is-in-ci

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/is-in-ci.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/is-in-ci.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/.bin/nanoid

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/nanoid.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/nanoid.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/.bin/npm

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/npm.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/npm.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/.bin/npx

This file was deleted.

Loading