1 Commits

Author SHA1 Message Date
4dd0d15a4e Update dependency flake8 to v7 2024-06-11 14:41:22 +00:00
9 changed files with 16 additions and 80 deletions

View File

@ -1,37 +0,0 @@
name: Build Docker Image
on:
push:
branches:
- main
- testing
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: git.home.timatlee.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.home.timatlee.com/timatlee/cloudflare-ddns:latest

View File

@ -1,19 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@ -1 +0,0 @@
[]

View File

@ -1,4 +1,4 @@
FROM python:3.13-slim FROM python:3.12-slim
WORKDIR /app WORKDIR /app

View File

@ -1,14 +1,13 @@
import logging import logging
from os import environ from os import environ
from typing import Tuple from typing import Tuple
from dotenv import load_dotenv
import click import click
from cloudflare_ddns.app import ApplicationJob from cloudflare_ddns.app import ApplicationJob
from cloudflare_ddns.constants import BASE_ENV_VAR, DEFAULT_DELAY, DOMAINS_ENV_VAR from cloudflare_ddns.constants import BASE_ENV_VAR, DEFAULT_DELAY, DOMAINS_ENV_VAR
log = logging.getLogger("ddns") log = logging.getLogger("ddns")
load_dotenv()
@click.command() @click.command()
@click.option( @click.option(
@ -23,7 +22,6 @@ load_dotenv()
prompt="Enter your Cloudflare Token", prompt="Enter your Cloudflare Token",
hide_input=True, hide_input=True,
show_envvar=True, show_envvar=True,
envvar='CF_DDNS_TOKEN',
help="Your Cloudflare Bearer token." help="Your Cloudflare Bearer token."
) )
@click.option('-v', '--verbose', is_flag=True, default=False, help="Show debug logging.") @click.option('-v', '--verbose', is_flag=True, default=False, help="Show debug logging.")

View File

@ -114,7 +114,7 @@ class ApplicationJob(threading.Thread):
domain = Domain( domain = Domain(
record_json["name"], record_json["name"],
record_json["type"], record_json["type"],
zone_json["id"], record_json["zone_id"],
record_json["id"] record_json["id"]
) )
found_domains[f'{record_json["name"]}-{record_json["type"]}'] = domain found_domains[f'{record_json["name"]}-{record_json["type"]}'] = domain

View File

@ -1,9 +1,5 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"forkProcessing": "enabled", "includeForks": true
"ignorePaths": [
".github"
]
} }

View File

@ -1,9 +1,9 @@
flake8~=7.2.0 flake8~=7.0.0
flake8-annotations~=3.1.1 flake8-annotations~=2.4.1
flake8-bugbear~=24.12.12 flake8-bugbear~=20.1.4
flake8-docstrings~=1.7.0 flake8-docstrings~=1.5.0
flake8-import-order~=0.18.1 flake8-import-order~=0.18.1
flake8-string-format~=0.3.0 flake8-string-format~=0.3.0
flake8-tidy-imports~=4.11.0 flake8-tidy-imports~=4.1.0
flake8-todo~=0.7 flake8-todo~=0.7
pep8-naming~=0.15.1 pep8-naming~=0.11.1

View File

@ -1,9 +1,8 @@
certifi==2025.1.31 certifi==2024.6.2
chardet==5.2.0 chardet==4.0.0
charset-normalizer==3.4.1 charset-normalizer==3.3.2
click==8.1.8 click==8.1.0
colorama==0.4.6 colorama==0.4.6
idna==3.10 idna==2.10
python-dotenv==1.1.0
requests==2.32.3 requests==2.32.3
urllib3==2.4.0 urllib3==1.26.18