Skip to content

Commit

Permalink
Merge pull request #18 from PartTimeLegend/agn
Browse files Browse the repository at this point in the history
Restart
  • Loading branch information
PartTimeLegend authored May 5, 2024
2 parents f5495e8 + 846d7c6 commit 39b9fd4
Show file tree
Hide file tree
Showing 10 changed files with 260 additions and 298 deletions.
9 changes: 9 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tmp
2 changes: 2 additions & 0 deletions .trunk/configs/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile=black
7 changes: 7 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
5 changes: 5 additions & 0 deletions .trunk/configs/ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generic, formatter-friendly config.
select = ["B", "D3", "E", "F"]

# Never enforce `E501` (line length violations). This should be handled by formatters.
ignore = ["E501"]
38 changes: 38 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.5.0
uri: https://github.com/trunk-io/plugins
actions:
disabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
enabled:
- trunk-upgrade-available
runtimes:
enabled:
- node@18.12.1
- python@3.10.8
lint:
enabled:
- actionlint@1.6.27
- bandit@1.7.8
- black@24.4.2
- checkov@3.2.74
- git-diff-check
- isort@5.13.2
- osv-scanner@1.7.2
- prettier@3.2.5
- renovate@37.324.0
- ruff@0.4.2
- tflint@0.50.3
- trivy@0.50.4
- trufflehog@3.74.0
- yamllint@1.35.1
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED=1

# Add standard labels
LABEL maintainer="Joshua Clarke and Antony Bailey <antony.bailey@thepoliceoftheinter.net>"
LABEL description="This is a Docker image for the Hammy McHamilton Discord Bot."
LABEL org.opencontainers.image.maintainer="Joshua Clarke and Antony Bailey <antony.bailey@thepoliceoftheinter.net>"
LABEL org.opencontainers.image.description DESCRIPTION="This is a Docker image for the Hammy McHamilton Discord Bot."
LABEL org.opencontainers.image.created="$BUILD_DATE"
# docker build --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -t hammy-mchamilton .

Expand Down
106 changes: 106 additions & 0 deletions foundation_quiz.txt

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions full_quiz.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
What is the capital of Italy?|Rome
Who wrote "Romeo and Juliet"?|William Shakespeare
What is the chemical symbol for gold?|Au
What year did the Titanic sink?|1912
What is the tallest mountain in the world?|Mount Everest
What is the largest ocean on Earth?|Pacific Ocean
What is the chemical symbol for water?|H2O
What is the formula for the area of a rectangle?|Length × Width
Who painted the Mona Lisa?|Leonardo da Vinci
What is the boiling point of water in Celsius?|100°C
What is the primary language spoken in Brazil?|Portuguese
Who was the first person to step on the moon?|Neil Armstrong
What is the square root of 144?|12
What is the chemical symbol for oxygen?|O
What is the speed of light in a vacuum?|299,792,458 meters per second
Who is known as the father of modern physics?|Isaac Newton
What is the chemical formula for table salt?|NaCl
What is the capital of Japan?|Tokyo
What is the process by which plants make their own food?|Photosynthesis
6 changes: 6 additions & 0 deletions intermediate_quiz.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
What is the capital of France?|Paris
What is the largest planet in our solar system?|Jupiter
What is the powerhouse of the cell?|Mitochondria
What is 2 + 2?|4
What is the square root of 16?|4
What is 10 multiplied by 3?|30
362 changes: 66 additions & 296 deletions main.py

Large diffs are not rendered by default.

0 comments on commit 39b9fd4

Please sign in to comment.