From f0fae00466e6595339217d162a8ae2779c1a3a52 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 1 Apr 2024 00:49:47 +0900 Subject: [PATCH 1/2] apply flake8 suggestions --- _tools/aheuilize/aheuilize.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_tools/aheuilize/aheuilize.py b/_tools/aheuilize/aheuilize.py index 0b0707b..df32b1a 100644 --- a/_tools/aheuilize/aheuilize.py +++ b/_tools/aheuilize/aheuilize.py @@ -1,11 +1,13 @@ import math + def divide(a): b = int(a / 2) if a % 2 == 1: return [b, b + 1] return [b, b] + def factorization(a): primes = [] factor = 2 @@ -18,6 +20,7 @@ def factorization(a): a = int(a / factor) return primes + def compress_factors(a): is_first_2 = True is_first_3 = True @@ -47,6 +50,7 @@ def compress_factors(a): result.append(3) return result + def is_prime(a): sqrt = int(math.sqrt(a)) if a < 2: @@ -56,6 +60,7 @@ def is_prime(a): i += 1 return sqrt + 1 == i + def number2Aheui(a): cnt = -1 result = "" @@ -78,8 +83,9 @@ def number2Aheui(a): result += "따" return result + def trace2Aheui(a): result = "" for i in range(len(a)): - result += number2Aheui(ord(a[i]))+"맣" + result += number2Aheui(ord(a[i])) + "맣" return result From 0453053276f24de7008700cd54201fb16b8bfcec Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 1 Apr 2024 01:11:21 +0900 Subject: [PATCH 2/2] CI python version 3.11 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9a1a7e..6b6d9b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v2.2.2 with: - python-version: 3.5 + python-version: 3.11 - run: pip install --upgrade pip aheui - run: bash test.sh --disable logo env: