Skip to content

Commit

Permalink
Merge pull request #4 from TobiasKadelka/uplift_project
Browse files Browse the repository at this point in the history
Uplift project
  • Loading branch information
aqw authored May 14, 2024
2 parents 58c05d8 + bbeb742 commit 275c24d
Show file tree
Hide file tree
Showing 6 changed files with 1,661 additions and 28 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:
git config --global user.name "Weather Exporter"
- name: Install dependencies
run: |
pip install . flake8 pyre-check
pip3 install -e ".[tests]"
- name: flake8 linting
run: |
flake8
- name: pyre type checking
run: |
pyre
pyre --noninteractive check
- name: execute tests
run: |
pytest
2 changes: 1 addition & 1 deletion prometheus_fzj_weather_exporter/fzj_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import requests
import re
from bs4 import BeautifulSoup
from bs4 import BeautifulSoup # pyre-ignore[21]


def get_weather_data(url: str,
Expand Down
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "prometheus-fzj-weather-exporter"
authors = [
{name = "Oskar Druska"},
]
description = "A Prometheus exporter for Weather Data from the FZJ."
version = "1.3.0"
readme = "README.md"
requires-python = ">=3.11"
keywords = ["prometheus", "exporter", "weather", "FZJ"]
license = {text = "ISC"}
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
'BeautifulSoup4',
'prometheus_client',
'requests',
]

[project.urls]
"Bug Reports" ="https://github.com/psyinfra/prometheus-fzj-weather-exporter/issues/"
"Source" = "https://github.com/psyinfra/prometheus-fzj-weather-exporter/"

[project.optional-dependencies]
tests = [
'flake8',
'pyre-check',
'pytest',
'pytest-vcr',
]

[project.scripts]
prometheus_fzj_weather_exporter = "prometheus_fzj_weather_exporter.main:main"
25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

Loading

0 comments on commit 275c24d

Please sign in to comment.