-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from iKostanOrg/master
Merge from master to kyu2
- Loading branch information
Showing
231 changed files
with
1,225 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Flake8 | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
workflow_call: | ||
|
||
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 | ||
flake8 . --count --max-complexity=10 --max-line-length=127 --benchmark --show-source --statistics | ||
# yamllint enable rule:line-length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: MyPy Lint | ||
|
||
on: | ||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: kyu2 Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_2 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_3 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_3 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_4 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_4 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_5 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_5 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_6 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_6 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_7 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_7 --ignore-missing-imports --check-untyped-defs | ||
- name: kyu_8 Python Data Type Checking with MyPy | ||
run: | | ||
mypy kyu_8 --ignore-missing-imports --check-untyped-defs | ||
- name: utils Python Data Type Checking with MyPy | ||
run: | | ||
mypy utils --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: MyPy for kyu4 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'kyu4' | ||
|
||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_4 --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: MyPy for kyu5 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'kyu5' | ||
|
||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_5 --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: MyPy for kyu6 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'kyu6' | ||
|
||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_6 --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: MyPy for kyu7 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'kyu7' | ||
|
||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_7 --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: MyPy for kyu8 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'kyu8' | ||
|
||
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 mypy | ||
pip install types-requests | ||
- name: Check to make sure that the module is in your Python path | ||
run: | | ||
echo $PYTHONPATH | ||
- name: Python Data Type Checking with MyPy | ||
# Python Type Checking (Guide) | ||
# https://realpython.com/python-type-checking/ | ||
run: | | ||
mypy kyu_8 --ignore-missing-imports --check-untyped-defs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.