Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from master to kyu5 #523

Merged
merged 159 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
1741abe
Merge pull request #500 from iKostanOrg/kyu5
ikostan Oct 22, 2024
4c6f4d6
Merge pull request #501 from iKostanOrg/master
ikostan Oct 22, 2024
a8c4019
Create mypy_kyu6.yml
ikostan Oct 22, 2024
d48f932
Update README.md
ikostan Oct 23, 2024
70a33c7
minor refactoring
ikostan Oct 23, 2024
b583309
minor refactoring
ikostan Oct 23, 2024
5cb5583
minor refactoring
ikostan Oct 23, 2024
6bb6fd0
minor refactoring
ikostan Oct 23, 2024
6638397
Update README.md
ikostan Oct 23, 2024
dec6671
Update test_duplicate_encode.py
ikostan Oct 23, 2024
bbf3dff
Update test_character_frequency.py
ikostan Oct 23, 2024
90c6c46
Minor refactoring
ikostan Oct 23, 2024
a7dd5d5
minor refactoring
ikostan Oct 23, 2024
20fac71
Update test_count_letters_in_string.py
ikostan Oct 23, 2024
7d5b701
Update test_default_list.py
ikostan Oct 23, 2024
ca5a6b2
Update test_default_list.py
ikostan Oct 23, 2024
4169163
Update test_default_list.py
ikostan Oct 23, 2024
5acb4cd
Update test_pyramid_array.py
ikostan Oct 23, 2024
8fda843
Update test_potion.py
ikostan Oct 23, 2024
511f844
Update README.md
ikostan Oct 23, 2024
5650b59
Update test_namelist.py
ikostan Oct 23, 2024
429bb1f
Update README.md
ikostan Oct 23, 2024
4a2a28a
Update test_stock_list.py
ikostan Oct 23, 2024
e4e296d
Update test_longest_repetition.py
ikostan Oct 23, 2024
8e8b348
Update test_default_list.py
ikostan Oct 23, 2024
4e4fc3f
Update test_has_subpattern.py
ikostan Oct 23, 2024
1f70cdf
Update test_has_subpattern.py
ikostan Oct 23, 2024
c0115d3
Update group_cities.py
ikostan Oct 24, 2024
237c6df
Update README.md
ikostan Oct 24, 2024
676a972
Update README.md
ikostan Oct 24, 2024
6e23183
Update test_solution.py
ikostan Oct 24, 2024
7dd844e
Update README.md
ikostan Oct 24, 2024
b6444fc
Update test_sequence.py
ikostan Oct 24, 2024
8652d14
Update README.md
ikostan Oct 24, 2024
c00c5e9
Update test_find_missing_number.py
ikostan Oct 24, 2024
00b3cea
Update README.md
ikostan Oct 24, 2024
8d121b0
Update test_numericals.py
ikostan Oct 24, 2024
fe4a87c
Update README.md
ikostan Oct 24, 2024
3f0dfac
Update test_permute_a_palindrome.py
ikostan Oct 24, 2024
f57b3ae
Update README.md
ikostan Oct 24, 2024
da9034a
Update test_calculate_damage.py
ikostan Oct 24, 2024
bd36b1d
Update README.md
ikostan Oct 24, 2024
7b1c8c6
Update test_group_cities.py
ikostan Oct 24, 2024
6b3ef15
Update README.md
ikostan Oct 24, 2024
33047d1
Update test_odd_row.py
ikostan Oct 24, 2024
a03cd05
Update README.md
ikostan Oct 24, 2024
0bf1167
Update test_sort_array.py
ikostan Oct 24, 2024
59f41e6
Update README.md
ikostan Oct 24, 2024
973d5f5
Update README.md
ikostan Oct 24, 2024
f536181
Update test_has_subpattern.py
ikostan Oct 24, 2024
a46ad89
Update README.md
ikostan Oct 24, 2024
60fd082
Update README.md
ikostan Oct 24, 2024
1ba9f89
Update test_string_transformer.py
ikostan Oct 24, 2024
6329874
Update README.md
ikostan Oct 24, 2024
fcbafd0
Update test_digital_root.py
ikostan Oct 24, 2024
0703975
Update README.md
ikostan Oct 24, 2024
c4de22f
Update test_unique_in_order.py
ikostan Oct 24, 2024
a4be6f9
Update test_tickets.py
ikostan Oct 24, 2024
8c117db
Update README.md
ikostan Oct 24, 2024
dc961ff
minor refactoring
ikostan Oct 24, 2024
981a34d
Update first_character_that_repeats.py
ikostan Oct 24, 2024
63265d6
Update duplicate_encode.py
ikostan Oct 24, 2024
96ca374
Update character_frequency.py
ikostan Oct 24, 2024
d3f5c1a
Update solve.py
ikostan Oct 24, 2024
c77af3b
Update first_character_that_repeats.py
ikostan Oct 24, 2024
f978893
Merge pull request #502 from iKostanOrg/kyu6
ikostan Oct 24, 2024
8425fe9
Update test_decoding.py
ikostan Oct 24, 2024
e1e9efb
Update test_string_transformer.py
ikostan Oct 24, 2024
9e4c222
Merge pull request #503 from iKostanOrg/master
ikostan Oct 24, 2024
e571a55
Create mypy_kyu7.yml
ikostan Oct 24, 2024
8326a91
Update test_vaporcode.py
ikostan Oct 24, 2024
8d94fc2
Update test_sum_of_numbers.py
ikostan Oct 24, 2024
8e3d9b1
Update test_sum_triangular_numbers.py
ikostan Oct 24, 2024
46d52e7
Update first_non_repeated.py
ikostan Oct 24, 2024
0b54f60
Update test_largest_power.py
ikostan Oct 24, 2024
d3b693c
Update easyline.py
ikostan Oct 24, 2024
6a4abb9
Update easyline.py
ikostan Oct 24, 2024
87ae8c7
Update easyline.py
ikostan Oct 24, 2024
ec6e531
Update number_of_sigfigs.py
ikostan Oct 24, 2024
d93894d
Update two_decimal_places.py
ikostan Oct 24, 2024
5b70487
Update calculate.py
ikostan Oct 24, 2024
241cc9f
Update test_sum_of_numbers.py
ikostan Oct 24, 2024
443a58f
Update two_decimal_places.py
ikostan Oct 24, 2024
42a2daa
Merge pull request #504 from iKostanOrg/kyu7
ikostan Oct 24, 2024
9222e86
Merge pull request #505 from iKostanOrg/master
ikostan Oct 25, 2024
ca52393
Create mypy_kyu8.yml
ikostan Oct 25, 2024
521b40e
Update test_first_non_consecutive.py
ikostan Oct 29, 2024
5624d4d
Update test_first_non_consecutive.py
ikostan Oct 29, 2024
0c2a33c
Update test_is_your_period_late.py
ikostan Oct 29, 2024
8fd2705
Update test_logical_calculator.py
ikostan Oct 29, 2024
f579243
Update test_third_angle_of_triangle.py
ikostan Oct 29, 2024
5bd6344
Update test_remove_string_spaces.py
ikostan Oct 29, 2024
3c813cd
Update test_remove_char.py
ikostan Oct 29, 2024
aa3b455
Update test_terminal_game_move_function.py
ikostan Oct 29, 2024
c9558ca
Update test_wolf_in_sheep_clothing.py
ikostan Oct 29, 2024
613c2a5
Update test_get_size.py
ikostan Oct 29, 2024
cb12f63
Update test_messi_goals_function.py
ikostan Oct 29, 2024
2d70f44
Update README.md
ikostan Oct 29, 2024
8b39992
Update test_grasshopper_personalized_message.py
ikostan Oct 29, 2024
336e730
Update first_non_consecutive.py
ikostan Oct 30, 2024
07d82b4
Update check_exam.py
ikostan Oct 30, 2024
2ef9ca1
Update test_reversed_strings.py
ikostan Oct 30, 2024
8fa240f
Update test_first_non_consecutive.py
ikostan Oct 30, 2024
907b0d3
Merge pull request #506 from iKostanOrg/kyu8
ikostan Oct 30, 2024
9c4d353
Create flake8.yml
ikostan Oct 30, 2024
09930f8
Update lint_test_build_pipeline.yml
ikostan Oct 30, 2024
c3e7883
Merge pull request #507 from iKostanOrg/master
ikostan Oct 30, 2024
29530b5
Create flake8_kyu2.yml
ikostan Oct 30, 2024
db5afec
Update flake8.yml
ikostan Oct 30, 2024
2d35560
Update flake8_kyu2.yml
ikostan Oct 30, 2024
5e7b3d6
Update flake8.yml
ikostan Oct 30, 2024
0b23dfd
Update mypy.yml
ikostan Oct 30, 2024
34d5d3e
Merge pull request #508 from iKostanOrg/kyu2
ikostan Oct 30, 2024
1e44093
Update lint_test_build_pipeline.yml
ikostan Oct 30, 2024
0a1e0b7
Merge pull request #509 from iKostanOrg/master
ikostan Oct 30, 2024
21fb8fd
Update flake8_kyu2.yml
ikostan Oct 30, 2024
fb895ad
Update flake8_kyu2.yml
ikostan Oct 30, 2024
b84e12f
Update flake8_kyu2.yml
ikostan Oct 30, 2024
b166e7c
Update flake8_kyu2.yml
ikostan Oct 30, 2024
3e6ed65
C901 'normalize_string' is too complex (12)
ikostan Oct 30, 2024
f9e9fd6
Update evaluate.py
ikostan Oct 30, 2024
8aa12d9
Update evaluate.py
ikostan Oct 30, 2024
752e3ab
Update evaluate.py
ikostan Oct 30, 2024
e5441c5
Update evaluate.py
ikostan Oct 30, 2024
ab5f545
Update evaluate.py
ikostan Oct 30, 2024
86d1f9b
Update evaluate.py
ikostan Oct 30, 2024
8a8a248
Update evaluate.py
ikostan Oct 30, 2024
c260c5c
Update evaluate.py
ikostan Oct 30, 2024
527229f
Update evaluate.py
ikostan Oct 30, 2024
4649c74
Update evaluate.py
ikostan Oct 30, 2024
73b87dd
Update evaluate.py
ikostan Oct 30, 2024
6ffe569
Update evaluate.py
ikostan Oct 30, 2024
cb13be1
Update evaluate.py
ikostan Oct 30, 2024
25db014
Update evaluate.py
ikostan Oct 30, 2024
eb521f1
Merge pull request #510 from iKostanOrg/kyu2
ikostan Oct 30, 2024
4563631
Merge pull request #516 from iKostanOrg/master
ikostan Oct 30, 2024
e4db2e7
Create flake8_kyu3.yml
ikostan Oct 30, 2024
c4b63fc
Update walker_class.py
ikostan Oct 31, 2024
eb5f025
Update walker_class.py
ikostan Oct 31, 2024
af9d1c1
Update walker_class.py
ikostan Oct 31, 2024
21fac45
Update walker_class.py
ikostan Oct 31, 2024
6b5e898
Update walker_class.py
ikostan Nov 5, 2024
89c2ac7
Update walker_class.py
ikostan Nov 5, 2024
c89537d
Update walker_class.py
ikostan Nov 5, 2024
0029279
Update test_walker.py
ikostan Nov 5, 2024
4ed546f
Update test_walker.py
ikostan Nov 5, 2024
90927a7
Merge pull request #517 from iKostanOrg/kyu3
ikostan Nov 5, 2024
d603d54
Merge pull request #519 from iKostanOrg/master
ikostan Nov 5, 2024
53c36ae
Create flake8_kyu4.yml
ikostan Nov 5, 2024
ba3c860
Update format_duration.py
ikostan Nov 5, 2024
28a4a9c
Update format_duration.py
ikostan Nov 5, 2024
dde06b4
Update format_duration.py
ikostan Nov 5, 2024
80d913b
Update solution.py
ikostan Nov 7, 2024
a65f6d3
Update solution.py
ikostan Nov 7, 2024
ca250c3
Update solution.py
ikostan Nov 7, 2024
5256018
Update solution.py
ikostan Nov 7, 2024
cb855d4
Update solution.py
ikostan Nov 7, 2024
6793c1f
Update solution.py
ikostan Nov 7, 2024
6dfdfde
Merge pull request #520 from iKostanOrg/kyu4
ikostan Nov 7, 2024
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
49 changes: 49 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Flake8

on:
push:
branches:
- 'utils'
- 'none'
workflow_call:

permissions:
contents: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current
# Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install flake8
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Lint with flake8
# yamllint disable rule:line-length
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings.
# The GitHub editor is 127 chars wide
run: |
flake8 . --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
flake8 . --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics
# yamllint enable rule:line-length
47 changes: 47 additions & 0 deletions .github/workflows/flake8_kyu2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Flake8 for kyu2

on:
push:
branches:
- 'kyu2'

permissions:
contents: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current
# Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install flake8
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Lint with flake8
# yamllint disable rule:line-length
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings.
# The GitHub editor is 127 chars wide
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_2
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_2
# yamllint enable rule:line-length
47 changes: 47 additions & 0 deletions .github/workflows/flake8_kyu3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Flake8 for kyu3

on:
push:
branches:
- 'kyu3'

permissions:
contents: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current
# Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install flake8
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Lint with flake8
# yamllint disable rule:line-length
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings.
# The GitHub editor is 127 chars wide
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_3
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_3
# yamllint enable rule:line-length
47 changes: 47 additions & 0 deletions .github/workflows/flake8_kyu4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Flake8 for kyu4

on:
push:
branches:
- 'kyu4'

permissions:
contents: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current
# Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install flake8
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Lint with flake8
# yamllint disable rule:line-length
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings.
# The GitHub editor is 127 chars wide
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_4
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_4
# yamllint enable rule:line-length
5 changes: 4 additions & 1 deletion .github/workflows/lint_test_build_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ jobs:
uses: iKostanOrg/codewars/.github/workflows/pylint.yml@master
mypy:
name: MyPy Lint
uses: iKostanOrg/codewars/.github/workflows/mypy.yml@master
uses: iKostanOrg/codewars/.github/workflows/mypy.yml@master
flake8:
name: Flake8 Lint
uses: iKostanOrg/codewars/.github/workflows/flake8.yml@master
1 change: 0 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ permissions:
contents: read
pull-requests: read


jobs:
build:
runs-on: ubuntu-latest
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/mypy_kyu6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: MyPy for kyu6

on:
push:
branches:
- 'kyu6'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install mypy
pip install types-requests
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Python Data Type Checking with MyPy
# Python Type Checking (Guide)
# https://realpython.com/python-type-checking/
run: |
mypy kyu_6 --ignore-missing-imports --check-untyped-defs
38 changes: 38 additions & 0 deletions .github/workflows/mypy_kyu7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: MyPy for kyu7

on:
push:
branches:
- 'kyu7'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install mypy
pip install types-requests
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Python Data Type Checking with MyPy
# Python Type Checking (Guide)
# https://realpython.com/python-type-checking/
run: |
mypy kyu_7 --ignore-missing-imports --check-untyped-defs
38 changes: 38 additions & 0 deletions .github/workflows/mypy_kyu8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: MyPy for kyu8

on:
push:
branches:
- 'kyu8'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install mypy
pip install types-requests
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Python Data Type Checking with MyPy
# Python Type Checking (Guide)
# https://realpython.com/python-type-checking/
run: |
mypy kyu_8 --ignore-missing-imports --check-untyped-defs
Loading
Loading