From 365fea67f2a47d78ea1eda047264cf10b4f84157 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:30:14 +0000 Subject: Bump ruff from 0.2.1 to 0.3.3 (#1479) * Bump ruff from 0.2.1 to 0.3.3 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.1 to 0.3.3. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.2.1...v0.3.3) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * apply ruff fixes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shtlrs --- bot/exts/fun/trivia_quiz.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bot/exts/fun/trivia_quiz.py') diff --git a/bot/exts/fun/trivia_quiz.py b/bot/exts/fun/trivia_quiz.py index d7b49f7a..62574a16 100644 --- a/bot/exts/fun/trivia_quiz.py +++ b/bot/exts/fun/trivia_quiz.py @@ -104,6 +104,7 @@ def linear_system(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def mod_arith(q_format: str, a_format: str) -> QuizEntry: """Generate a basic modular arithmetic question.""" quotient, m, b = random.randint(30, 40), random.randint(10, 20), random.randint(200, 350) @@ -115,6 +116,7 @@ def mod_arith(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def ngonal_prism(q_format: str, a_format: str) -> QuizEntry: """Generate a question regarding vertices on n-gonal prisms.""" n = random.randint(0, len(N_PREFIXES) - 1) @@ -124,6 +126,7 @@ def ngonal_prism(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def imag_sqrt(q_format: str, a_format: str) -> QuizEntry: """Generate a negative square root question.""" ans_coeff = random.randint(3, 10) @@ -133,6 +136,7 @@ def imag_sqrt(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def binary_calc(q_format: str, a_format: str) -> QuizEntry: """Generate a binary calculation question.""" a = random.randint(15, 20) @@ -155,6 +159,7 @@ def binary_calc(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def solar_system(q_format: str, a_format: str) -> QuizEntry: """Generate a question on the planets of the Solar System.""" planet = random.choice(PLANETS) @@ -164,6 +169,7 @@ def solar_system(q_format: str, a_format: str) -> QuizEntry: return QuizEntry(question, [answer], DYNAMICALLY_GEN_VARIATION_TOLERANCE) + def taxonomic_rank(q_format: str, a_format: str) -> QuizEntry: """Generate a question on taxonomic classification.""" level = random.randint(0, len(TAXONOMIC_HIERARCHY) - 2) -- cgit v1.2.3