Skip to content
Open
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
24 changes: 24 additions & 0 deletions .docker/irssi/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
servers = (
{
address = "ngircd";
chatnet = "marvinnet";
port = "6667";
autoconnect = "yes";
}
);

chatnets = {
marvinnet = {
type = "IRC";
nick = "User";
realname = "Marvin Test User";
};
};

channels = (
{
name = "#marvintest";
chatnet = "marvinnet";
autojoin = "yes";
}
);
8 changes: 5 additions & 3 deletions .docker/marvin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM python:3.11-alpine

COPY . /app
RUN mkdir -p /app/logs

COPY ./dist/*.whl /app

WORKDIR /app

RUN python3 -m pip install -r .requirements.txt
RUN python3 -m pip install *.whl

CMD ["python", "/app/main.py"]
CMD ["irc2phpbb"]
14 changes: 0 additions & 14 deletions .github/actions/install/action.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration

on:
push:
pull_request:
workflow_dispatch:

jobs:
unit-test:
name: Run unit test
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.9.5"
- name: Run tests
run: uv run pytest

lint:
name: Run linter
runs-on: ubuntu-24.04
timeout-minutes: 2
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.9.5"
- name: Run linter on code
run: uv run pylint irc2phpbb
40 changes: 40 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Documentation

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: Build API documentation
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.9.5"
- name: Build the API documentation
run: uv run pdoc --output-dir=docs/pdoc irc2phpbb
- name: Deploy documentation to github pages
uses: actions/upload-pages-artifact@v3.0.1
with:
path: docs

deploy:
name: Deploy API documentation to github pages
runs-on: ubuntu-24.04
timeout-minutes: 1
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/pdoc
permissions:
id-token: write
pages: write
steps:
- name: Deploy to gitub pages
uses: actions/deploy-pages@v4.0.5
81 changes: 0 additions & 81 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ build/
__pycache__/
data/marvinMorning_date.txt
.coverage
dist
htmlcov/
14 changes: 1 addition & 13 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
[MESSAGES CONTROL]

#disable=locally-disabled,locally-enabled
disable=locally-disabled,locally-enabled,invalid-name,unused-argument,broad-except,too-many-branches,global-statement


disable=locally-disabled,invalid-name,unused-argument,broad-except,too-many-branches,global-statement

[FORMAT]

# Maximum number of characters on a single line.
#max-line-length=79
max-line-length=100


[REPORTS]

#reports=no
15 changes: 0 additions & 15 deletions .requirements.txt

This file was deleted.

Loading
Loading