Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
31cca11
Merge pull request #618 from iKostanOrg/master
ikostan Feb 2, 2025
96fa0b7
Merge pull request #626 from iKostanOrg/kyu2
ikostan Feb 10, 2025
c7b4d2e
Update README.md
ikostan Feb 10, 2025
8ce6ec9
Update kyu_8/dalmatians_101_squash_bugs/README.md
ikostan Feb 10, 2025
26bdd71
Merge pull request #627 from iKostanOrg/master
ikostan Feb 10, 2025
2027a6d
kyu6 yaml refactoring
ikostan Feb 10, 2025
7f389e0
yaml refactoring
ikostan Feb 10, 2025
d70f3e8
Update flake8_kyu6.yml
ikostan Feb 10, 2025
db1372b
yaml refactoring
ikostan Feb 10, 2025
4d2d474
Update pydocstyle_kyu6.yml
ikostan Feb 10, 2025
2c50b31
Replace With Alphabet Position
ikostan Feb 10, 2025
2e3abb7
error fixing
ikostan Feb 10, 2025
fba1ab7
Update solution.py
ikostan Feb 10, 2025
688e7bd
Update pydocstyle_kyu6.yml
ikostan Feb 10, 2025
3d45cf2
PyType Lint
ikostan Feb 10, 2025
bedffb3
pydocstyle fixes
ikostan Feb 10, 2025
9f0bc4d
Update lint_test_build_pipeline.yml
ikostan Feb 10, 2025
f253ef9
Update .pydocstyle
ikostan Feb 10, 2025
54c31fd
Update .pylintrc
ikostan Feb 10, 2025
da66d65
--ignore=D212
ikostan Feb 10, 2025
9f4be9b
Update flake8_kyu6.yml
ikostan Feb 10, 2025
131b084
Update .pylintrc
ikostan Feb 10, 2025
cbc7c06
Update flake8_kyu6.yml
ikostan Feb 10, 2025
35c4b6e
Update .pydocstyle
ikostan Feb 10, 2025
4295a01
Update pydocstyle_kyu6.yml
ikostan Feb 10, 2025
c82010d
Update .pydocstyle
ikostan Feb 10, 2025
e25f81b
debug flake8
ikostan Feb 11, 2025
83bc9b1
Update flake8_kyu6.yml
ikostan Feb 11, 2025
45ab977
Update flake8_kyu6.yml
ikostan Feb 11, 2025
db879cc
Update flake8_kyu6.yml
ikostan Feb 11, 2025
95804e5
Update flake8_kyu6.yml
ikostan Feb 11, 2025
b5ae31c
flake8 errors
ikostan Feb 11, 2025
0078bc2
Update test_calculate_damage.py
ikostan Feb 11, 2025
e39f841
Update pydocstyle_kyu6.yml
ikostan Feb 11, 2025
2177608
Update pytype_kyu6.yml
ikostan Feb 11, 2025
ef58547
Update .pydocstyle
ikostan Feb 11, 2025
471db93
Update .pydocstyle
ikostan Feb 11, 2025
3e49bd4
Update pylint_kyu6.yml
ikostan Feb 11, 2025
df14804
Update .pylintrc
ikostan Feb 11, 2025
7966840
Update .pylintrc
ikostan Feb 11, 2025
416788a
docs
ikostan Feb 11, 2025
17e435e
refactoring
ikostan Feb 11, 2025
1fbaae3
replace_with_alphabet_position
ikostan Feb 11, 2025
bf46f8a
Update pytype_kyu6.yml
ikostan Feb 11, 2025
6cbd070
Merge pull request #628 from iKostanOrg/kyu6
ikostan Feb 11, 2025
48fd80d
Some error supressing
ikostan Feb 11, 2025
65117f6
Update flake8.yml
ikostan Feb 11, 2025
91881bd
Update test_sudoku.py
ikostan Feb 11, 2025
6bcf687
Update .pydocstyle
ikostan Feb 11, 2025
643080d
Update .pydocstyle
ikostan Feb 11, 2025
73f6bdf
Update pydocstyle.yml
ikostan Feb 11, 2025
5bf696d
Update pydocstyle.yml
ikostan Feb 11, 2025
df23487
Update test_sudoku.py
ikostan Feb 12, 2025
e7052f3
Update solution.py
ikostan Feb 12, 2025
470bcdb
Update README.md
ikostan Feb 12, 2025
9247b74
new pytype pipeline setup
ikostan Feb 12, 2025
40c7b1d
New pytype pipeline setup
ikostan Feb 12, 2025
fc52cba
pytype pipeline files refactoring
ikostan Feb 12, 2025
2d15a32
Update solution.py
ikostan Feb 12, 2025
bbb328d
Merge pull request #629 from iKostanOrg/master
ikostan Feb 13, 2025
b637d4e
Github workflow refactoring
ikostan Feb 13, 2025
3ee4fed
Some issues fixing
ikostan Feb 13, 2025
1628f3d
Ensure top-level permissions are not set to write-all [checkov:CKV2_G…
ikostan Feb 13, 2025
e2a59a4
Update flake8_kyu3.yml
ikostan Feb 13, 2025
c9a7527
Update test_line_negative.py
ikostan Feb 13, 2025
0c11318
Update flake8_kyu3.yml
ikostan Feb 13, 2025
ad64542
Update test_line_negative.py
ikostan Feb 13, 2025
33062b0
flake8 fixes
ikostan Feb 13, 2025
dd75418
Merge pull request #630 from iKostanOrg/kyu3
ikostan Feb 13, 2025
1ba9d3d
flake8 configs
ikostan Feb 13, 2025
42da6c3
Update .flake8
ikostan Feb 13, 2025
8aa1250
Merge pull request #631 from iKostanOrg/master
ikostan Feb 13, 2025
d643843
flake8 errors fixes
ikostan Feb 13, 2025
97efb60
Update validator.py
ikostan Feb 13, 2025
37e26ca
Merge pull request #633 from iKostanOrg/master
ikostan Feb 13, 2025
57c3931
Update solution.py
ikostan Feb 13, 2025
2f610bd
Update solution.py
ikostan Feb 13, 2025
9882d4e
Update solution.py
ikostan Feb 13, 2025
3b8654a
Update solution.py
ikostan Feb 13, 2025
85be591
Update solution.py
ikostan Feb 14, 2025
213a133
Update solution.py
ikostan Feb 14, 2025
6c58fb0
Update solution.py
ikostan Feb 14, 2025
08546d7
Update solution.py
ikostan Feb 14, 2025
03ea905
Update solution.py
ikostan Feb 14, 2025
b2c8b27
Update solution.py
ikostan Feb 14, 2025
9c195bb
Merge pull request #634 from iKostanOrg/kyu3
ikostan Feb 14, 2025
7649728
pydocstyle fixes
ikostan Feb 14, 2025
f6c9941
pipelines refactoring
ikostan Feb 16, 2025
f509318
Create pytype_kyu4.yml
ikostan Feb 16, 2025
dadbb36
Run flake8 and fix it
ikostan Feb 16, 2025
d5048bf
Merge pull request #638 from iKostanOrg/kyu4
ikostan Feb 16, 2025
5e6f1fd
Merge pull request #639 from iKostanOrg/master
ikostan Feb 16, 2025
02139eb
Update calculate.py
ikostan Feb 16, 2025
20d8863
Update test_replace_with_alphabet_position.py
ikostan Feb 16, 2025
e7bebef
Update README.md
ikostan Feb 16, 2025
657dc96
Update solution.py
ikostan Feb 16, 2025
7b73938
Merge pull request #640 from iKostanOrg/master
ikostan Feb 16, 2025
25840ef
pipeline refactoring
ikostan Feb 16, 2025
8b842e9
Update is_sudoku_done.py
ikostan Feb 16, 2025
68c2bb6
Update is_sudoku_done.py
ikostan Feb 16, 2025
e700177
Merge pull request #642 from iKostanOrg/master
ikostan Feb 16, 2025
e92cd1e
Merge branch 'kyu5' of https://github.com/iKostanOrg/codewars into kyu5
ikostan Feb 16, 2025
6587d6d
Merge pull request #643 from iKostanOrg/kyu5
ikostan Feb 16, 2025
c344635
Merge branch 'master' of https://github.com/iKostanOrg/codewars
ikostan Feb 16, 2025
20c4251
Merge pull request #644 from iKostanOrg/master
ikostan Feb 16, 2025
dbeb661
pipeline refactoring
ikostan Feb 16, 2025
3421ed4
Update epidemic.py
ikostan Feb 16, 2025
25a1459
Update epidemic.py
ikostan Feb 16, 2025
b78f9a3
Update epidemic.py
ikostan Feb 16, 2025
f7ca805
Update epidemic.py
ikostan Feb 16, 2025
3b969c7
Update potion.py
ikostan Feb 16, 2025
aa0126a
Update potion.py
ikostan Feb 16, 2025
fb9b9e1
Update potion.py
ikostan Feb 16, 2025
b99b164
Update potion.py
ikostan Feb 16, 2025
12951d5
Update potion.py
ikostan Feb 16, 2025
f7060af
Update potion.py
ikostan Feb 16, 2025
94085fd
Update potion.py
ikostan Feb 16, 2025
e0581bc
Merge pull request #645 from iKostanOrg/kyu6
ikostan Feb 16, 2025
e98e2f0
alphabet_position
ikostan Feb 16, 2025
905065c
Update test_sudoku.py
ikostan Feb 16, 2025
836614d
Merge pull request #646 from iKostanOrg/master
ikostan Feb 16, 2025
bf35b3c
Update calculate.py
ikostan Feb 16, 2025
68185e0
Update calculate.py
ikostan Feb 16, 2025
13d412c
Merge branch 'master' into kyu7
ikostan Feb 16, 2025
ffbd2d8
kyu_7 linting issues
ikostan Feb 16, 2025
f80fa2b
Github workflow files refactoring
ikostan Feb 16, 2025
a1450fd
Update README.md
ikostan Feb 16, 2025
859d9cc
Python Coverage: The Esential Coverage Reporter GitHub Action for python
ikostan Feb 16, 2025
49a0fef
Merge pull request #647 from iKostanOrg/kyu7
ikostan Feb 16, 2025
a469591
Update pytest_kyu6.yml
ikostan Feb 16, 2025
73f2dfb
Update test_replace_with_alphabet_position.py
ikostan Feb 16, 2025
cee6a35
Github workflow changes
ikostan Feb 16, 2025
d5d82e6
Merge pull request #648 from iKostanOrg/master
ikostan Feb 16, 2025
e4260af
Update lint_test_build_pipeline.yml
ikostan Feb 16, 2025
3a0c2ed
Update codacy-coverage-reporter.yaml
ikostan Feb 16, 2025
ee3c1f6
Update lint_test_build_pipeline.yml
ikostan Feb 16, 2025
10855e1
Codacy coverage report
ikostan Feb 16, 2025
761840d
Update lint_test_build_pipeline.yml
ikostan Feb 16, 2025
776fd90
Update lint_test_build_pipeline.yml
ikostan Feb 16, 2025
923d9cc
Merge pull request #649 from iKostanOrg/kyu6
ikostan Feb 16, 2025
1a4abc3
Merge pull request #650 from iKostanOrg/master
ikostan Feb 17, 2025
b54aa23
Update README.md
ikostan Feb 17, 2025
c2d136b
Test for -> print_log function.
ikostan Feb 17, 2025
7235fc0
Create pytest_utils.yml
ikostan Feb 17, 2025
cc742f9
test is_prime
ikostan Feb 17, 2025
8d41b74
Update copy_allure_history.py
ikostan Feb 17, 2025
5b657ca
Update pytest_utils.yml
ikostan Feb 17, 2025
3afd080
Update pytest_utils.yml
ikostan Feb 17, 2025
48ce5a1
Merge pull request #651 from iKostanOrg/utils
ikostan Feb 17, 2025
3e8690b
Merge pull request #652 from iKostanOrg/master
ikostan Feb 17, 2025
080da0f
pylint for utils
ikostan Feb 17, 2025
c8a7744
Utils refactoring
ikostan Feb 17, 2025
e523180
Merge pull request #653 from iKostanOrg/utils
ikostan Feb 17, 2025
59e6698
Merge pull request #654 from iKostanOrg/master
ikostan Feb 17, 2025
b6eb694
workflow refactoring
ikostan Feb 17, 2025
69e99af
Update test_primes_generator.py
ikostan Feb 17, 2025
22de6b8
Update test_log_func.py
ikostan Feb 17, 2025
a9e22cb
Merge pull request #655 from iKostanOrg/utils
ikostan Feb 17, 2025
bcee82c
Update test_sudoku.py
ikostan Feb 18, 2025
c9542ad
Update test_sudoku.py
ikostan Feb 18, 2025
f54c118
Update test_replace_with_alphabet_position.py
ikostan Feb 18, 2025
2fe0013
Update README.md
ikostan Feb 18, 2025
3b484c0
Update test_sudoku.py
ikostan Feb 18, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[flake8]
# Source:
# https://flake8.pycqa.org/en/3.1.1/user/configuration.html#configuration
# Errors to exclude:
# W191 indentation contains tabs
ignore = W191
exclude =
.git,
__pycache__,
.circleci,
.github,
.idea,
allure-report,
allure-results,
deprecated,
docs,
img,
venv
max-complexity = 10
max-line-length = 127
6 changes: 5 additions & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ jobs:
# 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
# Changing the Ignore List
# W191 indentation contains tabs
run: |
python -m flake8 . --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
python -m flake8 . --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 . --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
6 changes: 4 additions & 2 deletions .github/workflows/flake8_kyu2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu2
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu2'
- kyu2

permissions:
contents: read
Expand Down Expand Up @@ -44,5 +44,7 @@ jobs:
# The GitHub editor is 127 chars wide
run: |
python -m flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_2
python -m flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_2
- name: Complexity with flake8
run: |
python -m flake8 --count --benchmark --show-source --statistics ./kyu_2
# yamllint enable rule:line-length
17 changes: 10 additions & 7 deletions .github/workflows/flake8_kyu3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu3
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu3'
- kyu3

permissions:
contents: read
Expand All @@ -13,6 +13,7 @@ permissions:
jobs:
build:
runs-on: 'ubuntu-24.04'
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.x"]
Expand All @@ -31,17 +32,19 @@ jobs:
- 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
python -m pip install -r requirements.txt
python -m pip install flake8
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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
python -m flake8 ./kyu_3 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_3 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
15 changes: 10 additions & 5 deletions .github/workflows/flake8_kyu4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu4
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu4'
- kyu4

permissions:
contents: read
Expand All @@ -13,6 +13,9 @@ permissions:
jobs:
build:
runs-on: 'ubuntu-24.04'
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.x"]
Expand All @@ -33,15 +36,17 @@ jobs:
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
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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
python -m flake8 ./kyu_4 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_4 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
15 changes: 10 additions & 5 deletions .github/workflows/flake8_kyu5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu5
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu5'
- kyu5

permissions:
contents: read
Expand All @@ -13,6 +13,9 @@ permissions:
jobs:
build:
runs-on: 'ubuntu-24.04'
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.x"]
Expand All @@ -33,15 +36,17 @@ jobs:
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
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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_5
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_5
python -m flake8 ./kyu_5 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_5 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
21 changes: 14 additions & 7 deletions .github/workflows/flake8_kyu6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu6
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu6'
- kyu6

permissions:
contents: read
Expand All @@ -13,6 +13,9 @@ permissions:
jobs:
build:
runs-on: 'ubuntu-24.04'
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.x"]
Expand All @@ -31,17 +34,21 @@ jobs:
- 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
python -m pip install -r requirements.txt
python -m pip install flake8
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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
# Changing the Ignore List
# W191 indentation contains tabs
run: |
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_6
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_6
python -m flake8 ./kyu_6 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_6 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
21 changes: 14 additions & 7 deletions .github/workflows/flake8_kyu7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Flake8 for kyu7
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu7'
- kyu7

permissions:
contents: read
Expand All @@ -13,6 +13,9 @@ permissions:
jobs:
build:
runs-on: 'ubuntu-24.04'
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.x"]
Expand All @@ -31,17 +34,21 @@ jobs:
- 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
python -m pip install -r requirements.txt
python -m pip install flake8
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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
# Changing the Ignore List
# W191 indentation contains tabs
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
python -m flake8 ./kyu_7 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_7 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
20 changes: 10 additions & 10 deletions .github/workflows/flake8_kyu8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ name: Flake8 for kyu8
on: # yamllint disable-line rule:truthy
push:
branches:
- 'kyu8'
- kyu8

permissions:
contents: read
pull-requests: read


jobs:
build:
runs-on: 'ubuntu-24.04'
Expand All @@ -36,16 +35,17 @@ jobs:
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
- name: Install flake8
run: |
python -m pip install flake8
- name: Check flake8 version
run: |
echo $PYTHONPATH
python -m flake8 --version
- 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
python -m flake8 ./kyu_8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./kyu_8 --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
51 changes: 51 additions & 0 deletions .github/workflows/flake8_utils.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Flake8 for utils

on: # yamllint disable-line rule:truthy
push:
branches:
- utils

permissions:
contents: read
pull-requests: read

jobs:
build:
runs-on: 'ubuntu-24.04'
# Adding 'timeout-minutes: 10' would prevent jobs from running
# indefinitely if something goes wrong
timeout-minutes: 10
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
python -m pip install -r requirements.txt
- name: Install flake8
run: |
python -m pip install flake8
- name: Check flake8 version
run: |
python -m flake8 --version
- name: Lint with flake8
# yamllint disable rule:line-length
run: |
python -m flake8 ./utils --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
- name: Complexity with flake8
run: |
python -m flake8 ./utils --count --benchmark --show-source --statistics
# yamllint enable rule:line-length
Loading