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 #581

Merged
merged 91 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
d2aedc3
Merge pull request #571 from iKostanOrg/Documentation
ikostan Dec 22, 2024
94ac9d5
Update README.md
ikostan Dec 22, 2024
d28a7f6
Merge pull request #572 from iKostanOrg/master
ikostan Dec 22, 2024
7fa7c05
Create pydocstyle_kyu8.yml
ikostan Dec 22, 2024
b58a30c
Update __init__.py
ikostan Dec 22, 2024
4e7cae1
ALTerNAtiNG CaSe
ikostan Dec 22, 2024
8f11948
Update alternating_case.py
ikostan Dec 22, 2024
99ac469
# Century From Year
ikostan Dec 22, 2024
a7119bf
# Check the exam
ikostan Dec 22, 2024
9a68f04
# Convert a string to an array
ikostan Dec 24, 2024
e2654a6
Count the Monkeys!.
ikostan Dec 24, 2024
3ffa4e1
Counting sheep
ikostan Dec 24, 2024
2905ff4
Enumerable Magic #25 - Take the First N Elements.
ikostan Dec 24, 2024
625967a
# Find the first non-consecutive number
ikostan Dec 24, 2024
7e6d0be
Formatting decimal places #0
ikostan Dec 24, 2024
477fc50
Grasshopper
ikostan Dec 24, 2024
a0dd265
# Grasshopper - Messi goals function
ikostan Dec 24, 2024
19e631f
Personalized greeting
ikostan Dec 24, 2024
097e59c
Grasshopper - Summation
ikostan Dec 24, 2024
033aef3
# Greek Sort
ikostan Dec 24, 2024
718d2c7
Update __init__.py
ikostan Dec 24, 2024
07fa235
closest_elevator
ikostan Dec 24, 2024
aa02db4
Update closest_elevator.py
ikostan Dec 24, 2024
2e5bc5a
Update requirements.txt
ikostan Dec 24, 2024
8e5724a
Update requirements.txt
ikostan Dec 24, 2024
07c1851
# Holiday VI - Shark Pontoon
ikostan Dec 24, 2024
d20c550
kyu_8 docs
ikostan Dec 24, 2024
6d62247
# Is it a palindrome
ikostan Dec 24, 2024
3e56bf3
# MakeUpperCase
ikostan Dec 24, 2024
58114cd
multiply
ikostan Dec 24, 2024
aec5c89
My head is at the wrong end.
ikostan Dec 24, 2024
175679b
Remove First and Last Character
ikostan Dec 24, 2024
ec31847
Remove String Spaces.
ikostan Dec 24, 2024
f72d3f3
Update kyu_8.rst
ikostan Dec 24, 2024
8ea0a8c
Reversed Strings.
ikostan Dec 24, 2024
ba6be03
L1: Set Alarm
ikostan Dec 24, 2024
07a0849
Surface Area and Volume of a Box.
ikostan Dec 24, 2024
738530b
Swap Values.
ikostan Dec 24, 2024
058650e
Grasshopper - Terminal game move function.
ikostan Dec 24, 2024
f7652d8
The Feast of Many Beasts.
ikostan Dec 24, 2024
ea57838
Third Angle of a Triangle.
ikostan Dec 24, 2024
36b83c2
Well of Ideas - Easy Version
ikostan Dec 24, 2024
6b9f1b3
Will there be enough space?.
ikostan Dec 24, 2024
309a6ef
# Will you make it
ikostan Dec 24, 2024
746f6d1
A wolf in sheep's clothing.
ikostan Dec 24, 2024
5083d45
# Keep Hydrated
ikostan Dec 24, 2024
fd0ddb5
Update evaluator.py
ikostan Dec 24, 2024
d08cdaa
Update make_upper_case.py
ikostan Dec 24, 2024
f32c8cd
Update enough.py
ikostan Dec 24, 2024
aced1db
keep_up_the_hoop
ikostan Dec 24, 2024
78a128e
logical_calculator
ikostan Dec 24, 2024
50e4ef2
is_your_period_late
ikostan Dec 24, 2024
8c11693
set_alarm
ikostan Dec 24, 2024
341a31f
Update test_set_alarm.py
ikostan Dec 24, 2024
6532bb5
Update logical_calculator.py
ikostan Dec 24, 2024
d908bcb
Update check_exam.py
ikostan Dec 24, 2024
ffff071
Update well_of_ideas_easy_version.py
ikostan Dec 24, 2024
a6c59da
Update evaluator.py
ikostan Dec 24, 2024
82c1c83
Update evaluator.py
ikostan Dec 24, 2024
3f63da4
Update test_third_angle_of_triangle.py
ikostan Dec 24, 2024
f1d31ca
Update test_third_angle_of_triangle.py
ikostan Dec 24, 2024
8fdde8e
Merge pull request #573 from iKostanOrg/kyu8
ikostan Dec 24, 2024
73457ed
pydocstyle for main
ikostan Dec 24, 2024
4e001d6
Update closest_elevator.py
ikostan Dec 24, 2024
86d4a41
Update test_take.py
ikostan Dec 24, 2024
47bab94
Update README.md
ikostan Dec 24, 2024
3b68c84
Update lint_test_build_pipeline.yml
ikostan Dec 24, 2024
c8b9a8d
Update lint_test_build_pipeline.yml
ikostan Dec 24, 2024
2f84a83
Update markdown_lint.yml
ikostan Dec 24, 2024
c5f9151
Merge pull request #575 from iKostanOrg/master
ikostan Dec 25, 2024
6714668
Update requirements.txt
ikostan Dec 25, 2024
d05537e
Merge branch 'kyu7' of https://github.com/iKostanOrg/codewars into kyu7
ikostan Dec 25, 2024
c984b53
Complete The Pattern #5 - Even Ladder
ikostan Dec 25, 2024
710e437
Complete The Pattern #5 - Even Ladder.
ikostan Dec 25, 2024
d33aef1
Update solution.py
ikostan Dec 25, 2024
c554733
Create test_logical_calculator_error.py
ikostan Dec 25, 2024
bee5ccc
Update solution.py
ikostan Dec 25, 2024
372d14f
Update test_pattern.py
ikostan Dec 25, 2024
afa284c
Update test_logical_calculator_error.py
ikostan Dec 25, 2024
947261e
Update test_logical_calculator_error.py
ikostan Dec 25, 2024
10e9323
Update test_logical_calculator_error.py
ikostan Dec 25, 2024
763f6bf
Merge pull request #576 from iKostanOrg/kyu7
ikostan Dec 25, 2024
cbdfe06
Update solution.py
ikostan Dec 25, 2024
8af04df
Update test_logical_calculator_error.py
ikostan Dec 25, 2024
cb8aece
Update test_logical_calculator_error.py
ikostan Dec 25, 2024
d7524a4
Merge pull request #577 from iKostanOrg/master
ikostan Dec 25, 2024
e1efd56
Create flake8_kyu8.yml
ikostan Dec 25, 2024
f58f714
Merge pull request #578 from iKostanOrg/kyu8
ikostan Dec 25, 2024
7db1e5e
Merge pull request #579 from iKostanOrg/master
ikostan Dec 25, 2024
46af6a8
Create flake8_kyu7.yml
ikostan Dec 25, 2024
a10119f
Merge pull request #580 from iKostanOrg/kyu7
ikostan Dec 25, 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
47 changes: 47 additions & 0 deletions .github/workflows/flake8_kyu7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Flake8 for kyu7

on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu7'

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_7
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_7
# yamllint enable rule:line-length
47 changes: 47 additions & 0 deletions .github/workflows/flake8_kyu8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Flake8 for kyu8

on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu8'

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_8
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_8
# yamllint enable rule:line-length
4 changes: 4 additions & 0 deletions .github/workflows/lint_test_build_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
yamllint:
name: YAML Lint
uses: iKostanOrg/codewars/.github/workflows/yamllint.yml@master
pydocstyle:
name: PyDocStyle Lint
uses: iKostanOrg/codewars/.github/workflows/pydocstyle.yml@master
pytest:
name: Unitest with pytest
needs:
Expand All @@ -30,6 +33,7 @@ jobs:
- markdown
- mypy
- yamllint
- pydocstyle
uses: iKostanOrg/codewars/.github/workflows/pytest.yml@master
codecov:
name: Codecov GitHub Action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown_lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 'Markdown Lint'
name: Markdown Lint

on: # yamllint disable-line rule:truthy
push:
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/pydocstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: pydocstyle

on: # yamllint disable-line rule:truthy
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 pydocstyle
pip install types-requests
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Check pydocstyle version
run: |
pydocstyle --version
# Pydocstyle testing (Guide)
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage
- name: Doc style checking with pydocstyle for kyu_2
run: |
pydocstyle --verbose --explain --count kyu_2
- name: Doc style checking with pydocstyle for kyu_3
run: |
pydocstyle --verbose --explain --count kyu_3
- name: Doc style checking with pydocstyle for kyu_4
run: |
pydocstyle --verbose --explain --count kyu_4
- name: Doc style checking with pydocstyle for kyu_5
run: |
pydocstyle --verbose --explain --count kyu_5
- name: Doc style checking with pydocstyle for kyu_6
run: |
pydocstyle --verbose --explain --count kyu_6
- name: Doc style checking with pydocstyle for kyu_7
run: |
pydocstyle --verbose --explain --count kyu_7
- name: Doc style checking with pydocstyle for kyu_8
run: |
pydocstyle --verbose --explain --count kyu_8
46 changes: 46 additions & 0 deletions .github/workflows/pydocstyle_kyu8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: pydocstyle for kyu8

on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu8'

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 pydocstyle
pip install types-requests
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Check pydocstyle version
run: |
pydocstyle --version
- name: Doc style checking with pydocstyle
# Pydocstyle testing (Guide)
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage
run: |
pydocstyle --verbose --explain --count kyu_8
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,11 @@ the environment for every build, see comment from Grimmy below).
<details>
<summary>ERROR: The term 'make' is not recognized as the name of a cmdlet</summary>

'make' is not recognized as an internal or external command.

The error "'make' is not recognized as an internal or external command, operable program or
batch file" occurs when we run the make command on Windows without having make installed.
To solve the error, install make using Chocolatey.

```
```bash
make clean
make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
Expand All @@ -378,18 +376,18 @@ To install Chocolatey:

1. Open PowerShell as an administrator.
2. Run the following command:
```
```bash
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
```
3. Wait for the command to complete.
4. Type choco to make sure Chocolatey is installed:
```
```bash
PS C:\WINDOWS\system32> choco
Chocolatey v2.4.1
Please run 'choco -?' or 'choco <command> -?' for help menu.
```
5. Now that you have Chocolatey installed, run the following command to install make:
```
```bash
PS C:\WINDOWS\system32> choco install make -y
Chocolatey v2.4.1
Installing the following packages:
Expand Down
32 changes: 32 additions & 0 deletions docs/kyu_8/kyu_8.closest_elevator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kyu\_8.closest\_elevator package
================================

Submodules
----------

kyu\_8.closest\_elevator.closest\_elevator module
-------------------------------------------------

.. automodule:: kyu_8.closest_elevator.closest_elevator
:members:
:undoc-members:
:show-inheritance:
:private-members:

kyu\_8.closest\_elevator.test\_closest\_elevator module
-------------------------------------------------------

.. automodule:: kyu_8.closest_elevator.test_closest_elevator
:members:
:undoc-members:
:show-inheritance:
:private-members:

Module contents
---------------

.. automodule:: kyu_8.closest_elevator
:members:
:undoc-members:
:show-inheritance:
:private-members:
10 changes: 5 additions & 5 deletions docs/kyu_8/kyu_8.greek_sort.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ kyu\_8.greek\_sort package
Submodules
----------

kyu\_8.greek\_sort.greek\_comparator module
-------------------------------------------
kyu\_8.greek\_sort.evaluator module
-----------------------------------

.. automodule:: kyu_8.greek_sort.greek_comparator
.. automodule:: kyu_8.greek_sort.evaluator
:members:
:undoc-members:
:show-inheritance:
:private-members:

kyu\_8.greek\_sort.evaluator module
kyu\_8.greek\_sort.greek\_comparator module
-------------------------------------------

.. automodule:: kyu_8.greek_sort.evaluator
.. automodule:: kyu_8.greek_sort.greek_comparator
:members:
:undoc-members:
:show-inheritance:
Expand Down
1 change: 1 addition & 0 deletions docs/kyu_8/kyu_8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Subpackages
kyu_8.alternating_case
kyu_8.century_from_year
kyu_8.check_the_exam
kyu_8.closest_elevator
kyu_8.convert_string_to_an_array
kyu_8.count_the_monkeys
kyu_8.counting_sheep
Expand Down
Loading
Loading