Skip to content

Commit

Permalink
Merge pull request #120 from ashu-tosh-kumar/development
Browse files Browse the repository at this point in the history
Dev to main; package upgrades
  • Loading branch information
ashu-tosh-kumar committed Mar 17, 2024
2 parents 0e5c493 + d10b28c commit 388c293
Show file tree
Hide file tree
Showing 15 changed files with 1,285 additions and 70 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [ashu-tosh-kumar]
custom:
["https://paypal.me/ashutkumar", "https://www.buymeacoffee.com/ashutoshkumar"]
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.9"

# ADJUST THIS: install all dependencies (including pdoc)
- run: pip install -r requirements.txt
- run: pip install poetry; poetry install
# ADJUST THIS: build your documentation into docs/.
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
- run: pdoc -o docs --docformat google --logo https://user-images.githubusercontent.com/37182127/233436178-26c2b4be-e630-4f9b-b4c9-d58424bd365d.png todonotifier/
Expand Down
86 changes: 64 additions & 22 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,77 @@ name: Python application

on:
push:
branches: [ "main" ]
branches: ["main", "development"]
pull_request:
branches: [ "main" ]
branches: ["main", "development"]

permissions:
contents: read

jobs:
build:
build3_9:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
pip install poetry
poetry export -f requirements.txt --with dev>> requirements.txt
pip install -r requirements.txt
- name: Lint with flake8
run: |
python -m pip install --upgrade pip
pip install poetry
poetry export -f requirements.txt --with dev >> requirements.txt
pip install -r requirements.txt
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --config ./tox.ini
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --config ./tox.ini
- name: Test with pytest
run: |
python -m pip install --upgrade pip
pip install poetry
poetry export -f requirements.txt --with dev >> requirements.txt
pip install -r requirements.txt
pytest
build3_11:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry export -f requirements.txt --with dev >> requirements.txt
pip install -r requirements.txt
- name: Lint with flake8
run: |
python -m pip install --upgrade pip
pip install poetry
poetry export -f requirements.txt --with dev >> requirements.txt
pip install -r requirements.txt
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --config ./tox.ini
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --config ./tox.ini
- name: Test with pytest
run: |
python -m pip install --upgrade pip
pip install poetry
poetry export -f requirements.txt --with dev >> requirements.txt
pip install -r requirements.txt
pytest
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ __pycache__/
*$py.class

# User specific code
.report
.DS_STORE

# VS Code
Expand Down Expand Up @@ -137,4 +136,5 @@ dmypy.json
.pyre/

# local user directories
.local
.local/
.scannerwork/
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.3.0
hooks:
- id: black
args: [--config=./pyproject.toml]
language_version: python3.11

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
args: [--config=./tox.ini]
language_version: python3.11

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
language_version: python3.11

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: requirements-txt-fixer
language_version: python3.11
Expand Down
143 changes: 143 additions & 0 deletions .report/Expired TODO Items.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@

<h3>Expired TODOs for JANE_DOE</h3>
<p>

<table>
<tr>
<th>Message</th>
<th>Module</th>
<th>Line No.</th>
<th>Completion Date</th>
</tr>

<tr>
<td>some-message-0b0e31cc-e2e8-4d54-9684-ddf95958d7dc</td>
<td>sample_test_file.py</td>
<td>6</td>
<td>2022-05-01</td>
</tr>

<tr>
<td>some-message-f53d566a-1fea-422b-9ac6-41a171977ac2</td>
<td>sample_test_file.py</td>
<td>7</td>
<td>2022-05-02</td>
</tr>

<tr>
<td>some-message-5c795770-18f7-4104-a5d5-908af39a6686</td>
<td>sample_test_file.py</td>
<td>21</td>
<td>2022-05-08</td>
</tr>

<tr>
<td>some-@message-726c9e2d-13bf-4309-9b3c-530c7b3404b7</td>
<td>sample_test_file.py</td>
<td>23</td>
<td>2022-05-09</td>
</tr>

<tr>
<td></td>
<td>sample_test_file.py</td>
<td>25</td>
<td>2022-05-09</td>
</tr>

<tr>
<td></td>
<td>sample_test_file.py</td>
<td>26</td>
<td>2022-05-10</td>
</tr>

</table>

</p><br>

<h3>Expired TODOs for ashutosh</h3>
<p>

<table>
<tr>
<th>Message</th>
<th>Module</th>
<th>Line No.</th>
<th>Completion Date</th>
</tr>

<tr>
<td>some-message-4ef1fe34-ab50-4cc1-8abc-e550dee3be3f</td>
<td>sample_test_file.py</td>
<td>8</td>
<td>2022-05-03</td>
</tr>

<tr>
<td>some-message-2af38dcf-29e4-4104-9921-6e654f27a6ca</td>
<td>sample_test_file.py</td>
<td>9</td>
<td>2022-05-04</td>
</tr>

<tr>
<td>some-message-e1922c58-f6d0-49cf-8005-076c18556f13</td>
<td>sample_test_file.py</td>
<td>14</td>
<td>2022-05-17</td>
</tr>

<tr>
<td>some-message-1a4a2281-40b0-4df0-942e-8d1a9d74ad45</td>
<td>sample_test_file.py</td>
<td>17</td>
<td>2022-03-17</td>
</tr>

<tr>
<td>some-message-c3757bc8-571f-4717-bf16-b102a16d36f5</td>
<td>sample_test_file.py</td>
<td>18</td>
<td>2024-03-03</td>
</tr>

<tr>
<td>some-message-8882c77a-ba29-40dc-9bcd-fb7d19ce7d49</td>
<td>sample_test_file.py</td>
<td>19</td>
<td>2024-03-13</td>
</tr>

<tr>
<td></td>
<td>sample_test_file.py</td>
<td>22</td>
<td>2022-05-09</td>
</tr>

<tr>
<td>some-message-a1571791-50fe-4863-8a06-c2d4d921897c"""</td>
<td>sample_test_file.py</td>
<td>42</td>
<td>2022-05-05</td>
</tr>

<tr>
<td>some-message-ffe6e2ca-c78b-4231-b278-06e3de8aa9c6"""</td>
<td>sample_test_file.py</td>
<td>51</td>
<td>2022-05-06</td>
</tr>

<tr>
<td>some-message-a59653a5-3fae-450a-8289-0c4433e27535</td>
<td>sample_test_file.py</td>
<td>53</td>
<td>2022-05-07</td>
</tr>

</table>

</p><br>

0 comments on commit 388c293

Please sign in to comment.