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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
engines:
bandit:
exclude_paths:
- "tests/**"
- "test/**"
- "**/*.test.js"
- "**/test_*.py"
- "**/tests/**/*.py"
exclude_paths:
- "tests/**"
- "test/**"
- "**/*.test.js"
- "**/test_*.py"
- "**/tests/**/*.py"
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ repos:
# Run the formatter.
- id: ruff-format

# Codespell: Find and fix common spelling errors in code/comments
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6 # You can update this to the latest release if needed
hooks:
- id: codespell
args: ["--write-changes"]
additional_dependencies: [] # Optional if you want to pin spell files

# BasedPyright: Fast type checker (Pyright fork)
- repo: local
hooks:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f3b16baf087c40208c084bdad90ea6ce)](https://app.codacy.com/gh/StevenHosper/brostar-api-requests/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/f3b16baf087c40208c084bdad90ea6ce)](https://app.codacy.com/gh/StevenHosper/brostar-api-requests/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

# brostar-api-requests

Expand Down
46 changes: 46 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import logging

from src.brostar_api_requests.brostar_api_requests import (
send_gldaddition_for_vitens_location,
)


def main():
send_gldaddition_for_vitens_location("46B-0735001", "62254944", "1103")
# file_path = r"C:\Users\steven.hosper\Downloads\duplicates_ids.xlsx"
# correct_bulk_gld(file_path)
# retry_upload_task()
# print(total_events_delivered())

# Create GLD's Vitens
# file_path = r"C:\Users\steven.hosper\Downloads\overview_gmn_vitens_waterschap.xlsx"
# create_bulk_gld(excel_file=file_path)

# Ingest GLD Vitens
# file_path = r"C:\Users\steven.hosper\Downloads\overview_gmn_vitens_v2.xlsx"
# df = pl.read_excel(file_path)
# df = df.filter(pl.col("bro_id").is_not_null())
# for row in df.iter_rows(named=True):
# gld_to_lizard(row['objectIdAccountableParty'], row['bro_id'])

# delete_invalid_upload_tasks()

# Tholen Correction!!!
# bulk_gmw_correction_request(20166109)

# Scheldestromen deliveries
# file_path = r"C:\Users\steven.hosper\Downloads\20250709_ScheldestromenImportExcel_test.xlsx"
# bulk_gmw_construction_request(file_path, "51640813")

# BrabantWater corrections
# file_path = r"C:\Users\steven.hosper\Downloads\BROLab_ImportExcel.xlsx"
# bulk_gmw_construction_request(file_path, "17278718")

# Gelderland Corrections
# file_path = r"C:\Users\steven.hosper\Downloads\freatische_filter_gmw_ids.xlsx"
# bulk_gmw_tubenumber_correction_request(file_path, "51468751")


if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
main()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies = [
"pytest>=8.3.5",
"coverage>=7.8.0",
"requests-mock>=1.12.1",
"pytz"
]


Expand Down
Loading
Loading