Skip to content

Commit 0cefdea

Browse files
authored
Merge pull request #662 from iKostanOrg/master
Merge from master
2 parents e92cd1e + db0ed30 commit 0cefdea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1017
-749
lines changed

.github/workflows/flake8_kyu6.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Flake8 for kyu6
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu6'
7+
- kyu6
88

99
permissions:
1010
contents: read
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
1618
timeout-minutes: 10
1719
strategy:
1820
matrix:
@@ -45,8 +47,8 @@ jobs:
4547
# Changing the Ignore List
4648
# W191 indentation contains tabs
4749
run: |
48-
python -m flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_6
50+
python -m flake8 ./kyu_6 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
4951
- name: Complexity with flake8
5052
run: |
51-
python -m flake8 --count --max-complexity=10 --max-line-length=127 --ignore=W191,W503,W504 --benchmark --show-source --statistics ./kyu_6
53+
python -m flake8 ./kyu_6 --count --benchmark --show-source --statistics
5254
# yamllint enable rule:line-length

.github/workflows/flake8_kyu7.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Flake8 for kyu7
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu7'
7+
- kyu7
88

99
permissions:
1010
contents: read
@@ -13,6 +13,9 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
18+
timeout-minutes: 10
1619
strategy:
1720
matrix:
1821
python-version: ["3.x"]
@@ -31,17 +34,21 @@ jobs:
3134
- name: Install dependencies
3235
run: |
3336
python -m pip install --upgrade pip setuptools wheel
34-
pip install -r requirements.txt
35-
pip install flake8
36-
- name: Check to make sure that the module is in your Python path
37+
python -m pip install -r requirements.txt
38+
python -m pip install flake8
39+
- name: Check flake8 version
3740
run: |
38-
echo $PYTHONPATH
41+
python -m flake8 --version
3942
- name: Lint with flake8
4043
# yamllint disable rule:line-length
4144
# stop the build if there are Python syntax errors or undefined names
4245
# exit-zero treats all errors as warnings.
4346
# The GitHub editor is 127 chars wide
47+
# Changing the Ignore List
48+
# W191 indentation contains tabs
4449
run: |
45-
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_7
46-
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_7
50+
python -m flake8 ./kyu_7 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
51+
- name: Complexity with flake8
52+
run: |
53+
python -m flake8 ./kyu_7 --count --benchmark --show-source --statistics
4754
# yamllint enable rule:line-length

.github/workflows/flake8_kyu8.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ name: Flake8 for kyu8
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu8'
7+
- kyu8
88

99
permissions:
1010
contents: read
1111
pull-requests: read
1212

13-
1413
jobs:
1514
build:
1615
runs-on: 'ubuntu-24.04'
@@ -36,16 +35,17 @@ jobs:
3635
run: |
3736
python -m pip install --upgrade pip setuptools wheel
3837
pip install -r requirements.txt
39-
pip install flake8
40-
- name: Check to make sure that the module is in your Python path
38+
- name: Install flake8
39+
run: |
40+
python -m pip install flake8
41+
- name: Check flake8 version
4142
run: |
42-
echo $PYTHONPATH
43+
python -m flake8 --version
4344
- name: Lint with flake8
4445
# yamllint disable rule:line-length
45-
# stop the build if there are Python syntax errors or undefined names
46-
# exit-zero treats all errors as warnings.
47-
# The GitHub editor is 127 chars wide
4846
run: |
49-
flake8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics ./kyu_8
50-
flake8 --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics ./kyu_8
47+
python -m flake8 ./kyu_8 --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
48+
- name: Complexity with flake8
49+
run: |
50+
python -m flake8 ./kyu_8 --count --benchmark --show-source --statistics
5151
# yamllint enable rule:line-length

.github/workflows/flake8_utils.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Flake8 for utils
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches:
7+
- utils
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
13+
jobs:
14+
build:
15+
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
18+
timeout-minutes: 10
19+
strategy:
20+
matrix:
21+
python-version: ["3.x"]
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
# This is the version of the action for setting up Python,
26+
# not the Python version.
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
# You can test your matrix by printing the current
31+
# Python version
32+
- name: Display Python version
33+
run: python -c "import sys; print(sys.version)"
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip setuptools wheel
37+
python -m pip install -r requirements.txt
38+
- name: Install flake8
39+
run: |
40+
python -m pip install flake8
41+
- name: Check flake8 version
42+
run: |
43+
python -m flake8 --version
44+
- name: Lint with flake8
45+
# yamllint disable rule:line-length
46+
run: |
47+
python -m flake8 ./utils --count --select=E9,F63,F7,F82 --doctests --show-source --statistics
48+
- name: Complexity with flake8
49+
run: |
50+
python -m flake8 ./utils --count --benchmark --show-source --statistics
51+
# yamllint enable rule:line-length

.github/workflows/lint_test_build_pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
name: Main Build Pipeline
33

44
on: # yamllint disable-line rule:truthy
5+
pull_request:
6+
branches-ignore:
7+
- master
8+
- kyu2
9+
- kyu3
10+
- kyu4
11+
- kyu5
12+
- kyu6
13+
- kyu7
14+
- kyu8
15+
- utils
16+
- Documentation
517
push:
618
branches-ignore:
719
- kyu2

.github/workflows/mypy_kyu3.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ name: MyPy for kyu3
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu3'
7+
- kyu3
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
813

914
jobs:
1015
build:

.github/workflows/mypy_kyu6.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: MyPy for kyu6
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu6'
7+
- kyu6
88

99
permissions:
1010
contents: read
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
1618
timeout-minutes: 10
1719
strategy:
1820
matrix:

.github/workflows/mypy_kyu7.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ name: MyPy for kyu7
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu7'
7+
- kyu7
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
812

913
jobs:
1014
build:
1115
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
18+
timeout-minutes: 10
1219
strategy:
1320
matrix:
1421
python-version: ["3.x"]
@@ -26,14 +33,14 @@ jobs:
2633
- name: Install dependencies
2734
run: |
2835
python -m pip install --upgrade pip setuptools wheel
29-
pip install -r requirements.txt
30-
pip install mypy
31-
pip install types-requests
32-
- name: Check to make sure that the module is in your Python path
36+
python -m pip install -r requirements.txt
37+
python -m pip install mypy
38+
python -m pip install types-requests
39+
- name: Check MyPy version
3340
run: |
34-
echo $PYTHONPATH
41+
python -m mypy --version
3542
- name: Python Data Type Checking with MyPy
3643
# Python Type Checking (Guide)
3744
# https://realpython.com/python-type-checking/
3845
run: |
39-
mypy kyu_7 --ignore-missing-imports --check-untyped-defs
46+
python -m mypy ./kyu_7 --ignore-missing-imports --check-untyped-defs

.github/workflows/pydocstyle_kyu3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: pydocstyle for kyu3
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu3'
7+
- kyu3
88

99
permissions:
1010
contents: read

.github/workflows/pydocstyle_kyu6.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: PyDocstyle for kyu6
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu6'
7+
- kyu6
88

99
permissions:
1010
contents: read
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
1618
timeout-minutes: 10
1719
strategy:
1820
matrix:
@@ -41,4 +43,4 @@ jobs:
4143
# Pydocstyle testing (Guide)
4244
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage
4345
run: |
44-
python -m pydocstyle --verbose --explain --count ./kyu_6
46+
python -m pydocstyle ./kyu_6 --verbose --explain --count

.github/workflows/pydocstyle_kyu7.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: pydocstyle for kyu7
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu7'
7+
- kyu7
88

99
permissions:
1010
contents: read
@@ -13,6 +13,9 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
18+
timeout-minutes: 10
1619
strategy:
1720
matrix:
1821
python-version: ["3.x"]
@@ -30,17 +33,14 @@ jobs:
3033
- name: Install dependencies
3134
run: |
3235
python -m pip install --upgrade pip setuptools wheel
33-
pip install -r requirements.txt
34-
pip install pydocstyle
35-
pip install types-requests
36-
- name: Check to make sure that the module is in your Python path
37-
run: |
38-
echo $PYTHONPATH
36+
python -m pip install -r requirements.txt
37+
python -m pip install pydocstyle
38+
python -m pip install types-requests
3939
- name: Check pydocstyle version
4040
run: |
41-
pydocstyle --version
41+
python -m pydocstyle --version
4242
- name: Doc style checking with pydocstyle
4343
# Pydocstyle testing (Guide)
4444
# https://www.pydocstyle.org/en/stable/usage.html#cli-usage
4545
run: |
46-
pydocstyle --verbose --explain --count --ignore=D212 kyu_7
46+
python -m pydocstyle ./kyu_7 --verbose --explain --count

.github/workflows/pylint_kyu3.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ name: PyLint for kyu3
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu3'
7+
- kyu3
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
812

913
jobs:
1014
build:

.github/workflows/pylint_kyu6.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: PyLint for kyu6
44
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'kyu6'
7+
- kyu6
88

99
permissions:
1010
contents: read
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
build:
1515
runs-on: 'ubuntu-24.04'
16+
# Adding 'timeout-minutes: 10' would prevent jobs from running
17+
# indefinitely if something goes wrong
1618
timeout-minutes: 10
1719
strategy:
1820
matrix:

0 commit comments

Comments
 (0)