Skip to content

Commit

Permalink
Merge pull request #603 from iKostanOrg/master
Browse files Browse the repository at this point in the history
Merge from master
  • Loading branch information
ikostan authored Jan 1, 2025
2 parents 299c049 + b0b3391 commit a948a5f
Show file tree
Hide file tree
Showing 37 changed files with 894 additions and 151 deletions.
11 changes: 7 additions & 4 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
reviews:
high_level_summary: true
engines:
duplication:
enabled: true
Expand All @@ -19,17 +21,18 @@ languages:
extensions:
- '.md'
exclude_paths:
- 'deprecated/'
- '.venv/**'
- 'allure-report/**'
- 'allure-results/**'
- 'deprecated/**'
- 'docs/**'
- 'allure-report/**'
- 'img/**'
- '.circleci/**'
- '.circleci/**'
- '.github/**'
- '*__init__.py'
- 'rocro.yml'
- '**__init__.py'
- 'requirements.txt'
- 'pytest.ini'
- '.travis.yml'
- '.gitignore'
- '.gitattributes'
7 changes: 6 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# include = */src/*
# omit anything in a virtualenv directory anywhere
omit =
/deprecated/*
deprecated/*
/home/travis/virtualenv/*
*.yml
/home/travis/img/*
Expand All @@ -14,6 +14,11 @@ omit =
*.html
/tests/*
test_*
allure-report/*
allure-results/*
.circleci/*
.github/*
img/*

[report]
; Regexes for lines to exclude from consideration
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/codacy-coverage-reporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Codacy Coverage Reporter

# Source:
# https://github.com/codacy/codacy-coverage-reporter-action
on: # yamllint disable-line rule:truthy
push:
branches:
- 'master'
workflow_call:

jobs:
codacy-coverage-reporter:
runs-on: ubuntu-latest
name: codacy-coverage-reporter
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install prerequisites
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: Install pytest, pytest-cov
run: |
pip install pytest
pip install pytest-cov
- name: Generate coverage report
# You must now upload using a token.
# https://app.codecov.io/gh/iKostanOrg/codewars/tests/new
# yamllint disable rule:line-length
run: |
python -c "import os; print(os.getcwd())"
python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./
# yamllint enable rule:line-length
- name: Run codacy-coverage-reporter
run: |
export CODACY_ORGANIZATION_PROVIDER=gh \
export CODACY_USERNAME=iKostanOrg \
export CODACY_PROJECT_NAME=codewars
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
--api-token ${{ secrets.CODACY_API_TOKEN }} \
--language Python \
--coverage-reports /home/runner/work/codewars/codewars/coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/markdown_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout v4
uses: actions/checkout@v4
- name: markdownlint-cli2-action v16
uses: DavidAnson/markdownlint-cli2-action@v18
uses: DavidAnson/markdownlint-cli2-action@v19
with:
config: '.markdownlint-cli2.yaml'
fix: true
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[![codecov](https://codecov.io/gh/iKostanOrg/codewars/branch/master/graph/badge.svg)](https://codecov.io/gh/iKostanOrg/codewars)
[![CodeFactor](https://www.codefactor.io/repository/github/ikostanorg/codewars/badge)](https://www.codefactor.io/repository/github/ikostanorg/codewars)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/647e16e648f748a28fce36b4895f7729)](https://www.codacy.com/gh/iKostanOrg/codewars?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=iKostanOrg/codewars&amp;utm_campaign=Badge_Grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/647e16e648f748a28fce36b4895f7729)](https://app.codacy.com/gh/iKostanOrg/codewars/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/c22e4214ebb0b0626b83/maintainability)](https://codeclimate.com/github/iKostanOrg/codewars/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/c22e4214ebb0b0626b83/test_coverage)](https://codeclimate.com/github/iKostanOrg/codewars/test_coverage)
![Maintenance](https://img.shields.io/maintenance/yes/2024)
Expand Down
11 changes: 11 additions & 0 deletions docs/kyu_6/kyu_6.find_the_in_between_point.module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kyu\_6.find\_the\_in\_between\_point.module package
===================================================

Subpackages
-----------

.. toctree::
:maxdepth: 4

kyu_6.find_the_in_between_point.readme
kyu_6.find_the_in_between_point
5 changes: 5 additions & 0 deletions docs/kyu_6/kyu_6.find_the_in_between_point.readme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README
======

.. include:: ../../kyu_6/find_the_in_between_point/README.md
:parser: myst_parser.sphinx_
32 changes: 32 additions & 0 deletions docs/kyu_6/kyu_6.find_the_in_between_point.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kyu\_6.find\_the\_in\_between\_point package
============================================

Submodules
----------

kyu\_6.find\_the\_in\_between\_point.solution module
----------------------------------------------------

.. automodule:: kyu_6.find_the_in_between_point.solution
:members:
:undoc-members:
:show-inheritance:
:private-members:

kyu\_6.find\_the\_in\_between\_point.test\_middle\_point module
---------------------------------------------------------------

.. automodule:: kyu_6.find_the_in_between_point.test_middle_point
:members:
:undoc-members:
:show-inheritance:
:private-members:

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

.. automodule:: kyu_6.find_the_in_between_point
:members:
:undoc-members:
:show-inheritance:
:private-members:
1 change: 1 addition & 0 deletions docs/kyu_6/kyu_6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Subpackages
kyu_6.duplicate_encoder.module
kyu_6.easy_diagonal.module
kyu_6.encrypt_this.module
kyu_6.find_the_in_between_point.module
kyu_6.find_the_odd_int.module
kyu_6.first_character_that_repeats.module
kyu_6.format_string_of_names.module
Expand Down
4 changes: 2 additions & 2 deletions docs/kyu_7/kyu_7.password_validator.module.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kyu\_7.password_validator.module package
========================================
kyu\_7.password\_validator.module package
=========================================

Subpackages
-----------
Expand Down
11 changes: 11 additions & 0 deletions docs/kyu_7/kyu_7.pointless_farmer.module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kyu\_7.pointless\_farmer.module package
=======================================

Subpackages
-----------

.. toctree::
:maxdepth: 4

kyu_7.pointless_farmer.readme
kyu_7.pointless_farmer
5 changes: 5 additions & 0 deletions docs/kyu_7/kyu_7.pointless_farmer.readme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README
======

.. include:: ../../kyu_7/pointless_farmer/README.md
:parser: myst_parser.sphinx_
32 changes: 32 additions & 0 deletions docs/kyu_7/kyu_7.pointless_farmer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kyu\_7.pointless\_farmer package
================================

Submodules
----------

kyu\_7.pointless\_farmer.solution module
----------------------------------------

.. automodule:: kyu_7.pointless_farmer.solution
:members:
:undoc-members:
:show-inheritance:
:private-members:

kyu\_7.pointless\_farmer.test\_buy\_or\_sell module
---------------------------------------------------

.. automodule:: kyu_7.pointless_farmer.test_buy_or_sell
:members:
:undoc-members:
:show-inheritance:
:private-members:

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

.. automodule:: kyu_7.pointless_farmer
:members:
:undoc-members:
:show-inheritance:
:private-members:
1 change: 1 addition & 0 deletions docs/kyu_7/kyu_7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Subpackages
kyu_7.make_class.module
kyu_7.maximum_multiple.module
kyu_7.password_validator.module
kyu_7.pointless_farmer.module
kyu_7.powers_of_3.module
kyu_7.pull_your_words_together_man.module
kyu_7.remove_the_minimum.module
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 @@ -38,6 +38,7 @@ Subpackages
kyu_8.remove_string_spaces.module
kyu_8.reversed_strings.module
kyu_8.set_alarm.module
kyu_8.strange_trip_to_the_market.module
kyu_8.surface_area_and_volume_of_box.module
kyu_8.swap_values.module
kyu_8.terminal_game_move_function.module
Expand Down
11 changes: 11 additions & 0 deletions docs/kyu_8/kyu_8.strange_trip_to_the_market.module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kyu\_8.strange\_trip\_to\_the\_market.module package
====================================================

Subpackages
-----------

.. toctree::
:maxdepth: 4

kyu_8.strange_trip_to_the_market.readme
kyu_8.strange_trip_to_the_market
5 changes: 5 additions & 0 deletions docs/kyu_8/kyu_8.strange_trip_to_the_market.readme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README
======

.. include:: ../../kyu_8/strange_trip_to_the_market/README.md
:parser: myst_parser.sphinx_
32 changes: 32 additions & 0 deletions docs/kyu_8/kyu_8.strange_trip_to_the_market.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kyu\_8.strange\_trip\_to\_the\_market package
=============================================

Submodules
----------

kyu\_8.strange\_trip\_to\_the\_market.solution module
-----------------------------------------------------

.. automodule:: kyu_8.strange_trip_to_the_market.solution
:members:
:undoc-members:
:show-inheritance:
:private-members:

kyu\_8.strange\_trip\_to\_the\_market.test\_is\_loch\_ness\_monster module
--------------------------------------------------------------------------

.. automodule:: kyu_8.strange_trip_to_the_market.test_is_loch_ness_monster
:members:
:undoc-members:
:show-inheritance:
:private-members:

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

.. automodule:: kyu_8.strange_trip_to_the_market
:members:
:undoc-members:
:show-inheritance:
:private-members:
Loading

0 comments on commit a948a5f

Please sign in to comment.