Skip to content

Commit

Permalink
python/reverse-string: 3rd iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 10, 2024
1 parent cb1d551 commit ae26034
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion python/reverse-string/.coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage branch-rate="1" branches-covered="2" branches-valid="2" complexity="0" line-rate="0.8333" lines-covered="5" lines-valid="6" timestamp="1712760978948" version="4.5.4">
<coverage branch-rate="1" branches-covered="2" branches-valid="2" complexity="0" line-rate="0.8333" lines-covered="5" lines-valid="6" timestamp="1712761566934" version="4.5.4">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down
2 changes: 1 addition & 1 deletion python/reverse-string/reverse_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def reverse(text: str) -> str:

rune: str
for rune in text:
rtext = rune + rtext
rtext = f"{rune}{rtext}"

return rtext
2 changes: 1 addition & 1 deletion python/reverse-string/reverse_string.py,cover
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

> rune: str
> for rune in text:
> rtext = rune + rtext
> rtext = f"{rune}{rtext}"

> return rtext
190 changes: 95 additions & 95 deletions python/reverse-string/run-tests-python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pylint 3.0.3
astroid 3.0.2
Python 3.12.1 (main, Dec 28 2023, 08:22:05) [GCC 10.2.1 20210110]

real 0m0.207s
user 0m0.155s
sys 0m0.054s
real 0m0.228s
user 0m0.166s
sys 0m0.064s


==============================================================================
Expand All @@ -37,22 +37,22 @@ Running: pylint ./src
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)


real 0m0.424s
user 0m0.355s
sys 0m0.071s
real 0m0.404s
user 0m0.339s
sys 0m0.066s


==============================================================================

Exit code: 0

real 0m1.513s
user 0m1.171s
sys 0m0.361s
real 0m1.554s
user 0m1.167s
sys 0m0.409s

real 0m1.518s
user 0m1.173s
sys 0m0.364s
real 0m1.557s
user 0m1.169s
sys 0m0.410s

===============================================================================

Expand All @@ -74,9 +74,9 @@ Running: ruff --version

ruff 0.3.5

real 0m0.066s
user 0m0.025s
sys 0m0.042s
real 0m0.081s
user 0m0.035s
sys 0m0.048s


==============================================================================
Expand All @@ -85,22 +85,22 @@ Running: ruff check --ignore E501 ./src

All checks passed!

real 0m0.114s
user 0m0.045s
sys 0m0.073s
real 0m0.119s
user 0m0.052s
sys 0m0.072s


==============================================================================

Exit code: 0

real 0m1.097s
user 0m0.717s
sys 0m0.403s
real 0m1.051s
user 0m0.702s
sys 0m0.373s

real 0m1.099s
user 0m0.719s
sys 0m0.404s
real 0m1.054s
user 0m0.704s
sys 0m0.373s

===============================================================================

Expand All @@ -122,9 +122,9 @@ Running: pyright --version

pyright 1.1.358

real 0m0.770s
user 0m0.591s
sys 0m0.129s
real 0m0.983s
user 0m0.508s
sys 0m0.127s


==============================================================================
Expand All @@ -134,7 +134,7 @@ Running: pyright --stats ./src
Found 2 source files
pyright 1.1.358
0 errors, 0 warnings, 0 informations
Completed in 0.591sec
Completed in 0.579sec

Analysis stats
Total files parsed and bound: 20
Expand All @@ -143,29 +143,29 @@ Total files checked: 2
Timing stats
Find Source Files: 0sec
Read Source Files: 0sec
Tokenize: 0.07sec
Tokenize: 0.05sec
Parse: 0.04sec
Resolve Imports: 0.05sec
Bind: 0.06sec
Check: 0.04sec
Resolve Imports: 0.06sec
Bind: 0.04sec
Check: 0.06sec
Detect Cycles: 0sec

real 0m1.302s
user 0m1.375s
sys 0m0.161s
real 0m1.271s
user 0m1.305s
sys 0m0.150s


==============================================================================

Exit code: 0

real 0m3.039s
user 0m2.644s
sys 0m0.598s
real 0m3.341s
user 0m2.594s
sys 0m0.603s

real 0m3.042s
user 0m2.644s
sys 0m0.601s
real 0m3.345s
user 0m2.597s
sys 0m0.604s

===============================================================================

Expand All @@ -188,9 +188,9 @@ Running: bandit --version
bandit 1.7.7
python version = 3.12.1 (main, Dec 28 2023, 08:22:05) [GCC 10.2.1 20210110]

real 0m0.285s
user 0m0.214s
sys 0m0.074s
real 0m0.326s
user 0m0.242s
sys 0m0.087s


==============================================================================
Expand All @@ -202,7 +202,7 @@ Running: bandit --verbose --recursive ./src
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[main] INFO running on Python 3.12.1
Run started:2024-04-10 14:56:11.170066
Run started:2024-04-10 15:05:59.213548
Files in scope (2):
./src/reverse_string/__init__.py (score: {SEVERITY: 0, CONFIDENCE: 0})
./src/reverse_string/reverse_string.py (score: {SEVERITY: 0, CONFIDENCE: 0})
Expand Down Expand Up @@ -231,22 +231,22 @@ Run metrics:
High: 0
Files skipped (0):

real 0m0.252s
user 0m0.176s
sys 0m0.079s
real 0m0.220s
user 0m0.163s
sys 0m0.060s


==============================================================================

Exit code: 0

real 0m1.418s
user 0m1.039s
sys 0m0.399s
real 0m1.660s
user 0m1.246s
sys 0m0.435s

real 0m1.420s
user 0m1.041s
sys 0m0.399s
real 0m1.662s
user 0m1.248s
sys 0m0.435s

===============================================================================

Expand All @@ -269,32 +269,32 @@ Running: refurb --version
Refurb: v1.26.0
Mypy: v1.9.0

real 0m0.189s
user 0m0.131s
sys 0m0.060s
real 0m0.210s
user 0m0.143s
sys 0m0.070s


==============================================================================

Running: refurb --quiet --ignore 183 ./src


real 0m1.118s
user 0m1.014s
sys 0m0.107s
real 0m1.102s
user 0m1.010s
sys 0m0.094s


==============================================================================

Exit code: 0

real 0m3.344s
user 0m2.820s
sys 0m0.550s
real 0m3.255s
user 0m2.782s
sys 0m0.495s

real 0m3.346s
user 0m2.821s
sys 0m0.552s
real 0m3.257s
user 0m2.782s
sys 0m0.497s

===============================================================================

Expand Down Expand Up @@ -330,22 +330,22 @@ Test passed.
0 passed and 0 failed.
Test passed.

real 0m0.137s
user 0m0.080s
sys 0m0.059s
real 0m0.147s
user 0m0.071s
sys 0m0.079s


==============================================================================

Exit code: 0

real 0m1.031s
user 0m0.717s
sys 0m0.332s
real 0m1.070s
user 0m0.725s
sys 0m0.364s

real 0m1.033s
user 0m0.718s
sys 0m0.332s
real 0m1.072s
user 0m0.726s
sys 0m0.365s

===============================================================================

Expand All @@ -367,8 +367,8 @@ Running: rm -rf ./coverage


real 0m0.001s
user 0m0.001s
sys 0m0.000s
user 0m0.000s
sys 0m0.001s


==============================================================================
Expand All @@ -377,9 +377,9 @@ Running: pytest --version

pytest 7.4.3

real 0m0.783s
user 0m0.855s
sys 0m0.819s
real 0m0.809s
user 0m0.883s
sys 0m0.817s


==============================================================================
Expand Down Expand Up @@ -425,9 +425,9 @@ Coverage XML written to file .coverage.xml

========================= 7 passed, 1 warning in 0.91s =========================

real 0m1.778s
user 0m1.656s
sys 0m0.123s
real 0m1.787s
user 0m1.662s
sys 0m0.126s


==============================================================================
Expand All @@ -441,8 +441,8 @@ test/__init__.py 0 0 0 0 100%
---------------------------------------------------------------
TOTAL 6 1 2 0 88%

real 0m0.149s
user 0m0.096s
real 0m0.128s
user 0m0.075s
sys 0m0.055s


Expand All @@ -451,8 +451,8 @@ sys 0m0.055s
Running: coverage annotate


real 0m0.138s
user 0m0.085s
real 0m0.145s
user 0m0.092s
sys 0m0.055s


Expand All @@ -465,13 +465,13 @@ Branch Coverage: 100.0%

Exit code: 0

real 0m3.771s
user 0m3.333s
sys 0m1.354s
real 0m3.756s
user 0m3.351s
sys 0m1.318s

real 0m3.773s
user 0m3.333s
sys 0m1.356s
real 0m3.757s
user 0m3.352s
sys 0m1.320s

===============================================================================

Expand All @@ -485,8 +485,8 @@ tail -n 10000 ./*,cover | grep -E -C 3 '^> def |^! '
Running: misspell ./src/reverse_string/__init__.py ./src/reverse_string/reverse_string.py

real 0m0.023s
user 0m0.021s
sys 0m0.012s
user 0m0.018s
sys 0m0.015s

===============================================================================

0 comments on commit ae26034

Please sign in to comment.