diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..1dff0d5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [ashu-tosh-kumar] +custom: + ["https://paypal.me/ashutkumar", "https://www.buymeacoffee.com/ashutoshkumar"] diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b232407..ba90f74 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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/ diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 143acc9..5c50e97 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 diff --git a/.gitignore b/.gitignore index c2ce4d9..00a4a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ __pycache__/ *$py.class # User specific code -.report .DS_STORE # VS Code @@ -137,4 +136,5 @@ dmypy.json .pyre/ # local user directories -.local \ No newline at end of file +.local/ +.scannerwork/ \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffeec83..d9121da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.report/Expired TODO Items.html b/.report/Expired TODO Items.html new file mode 100644 index 0000000..1827b69 --- /dev/null +++ b/.report/Expired TODO Items.html @@ -0,0 +1,143 @@ + +
+ +
Message | +Module | +Line No. | +Completion Date | +
---|---|---|---|
some-message-0b0e31cc-e2e8-4d54-9684-ddf95958d7dc | +sample_test_file.py | +6 | +2022-05-01 | +
some-message-f53d566a-1fea-422b-9ac6-41a171977ac2 | +sample_test_file.py | +7 | +2022-05-02 | +
some-message-5c795770-18f7-4104-a5d5-908af39a6686 | +sample_test_file.py | +21 | +2022-05-08 | +
some-@message-726c9e2d-13bf-4309-9b3c-530c7b3404b7 | +sample_test_file.py | +23 | +2022-05-09 | +
+ | sample_test_file.py | +25 | +2022-05-09 | +
+ | sample_test_file.py | +26 | +2022-05-10 | +
+ +
Message | +Module | +Line No. | +Completion Date | +
---|---|---|---|
some-message-4ef1fe34-ab50-4cc1-8abc-e550dee3be3f | +sample_test_file.py | +8 | +2022-05-03 | +
some-message-2af38dcf-29e4-4104-9921-6e654f27a6ca | +sample_test_file.py | +9 | +2022-05-04 | +
some-message-e1922c58-f6d0-49cf-8005-076c18556f13 | +sample_test_file.py | +14 | +2022-05-17 | +
some-message-1a4a2281-40b0-4df0-942e-8d1a9d74ad45 | +sample_test_file.py | +17 | +2022-03-17 | +
some-message-c3757bc8-571f-4717-bf16-b102a16d36f5 | +sample_test_file.py | +18 | +2024-03-03 | +
some-message-8882c77a-ba29-40dc-9bcd-fb7d19ce7d49 | +sample_test_file.py | +19 | +2024-03-13 | +
+ | sample_test_file.py | +22 | +2022-05-09 | +
some-message-a1571791-50fe-4863-8a06-c2d4d921897c""" | +sample_test_file.py | +42 | +2022-05-05 | +
some-message-ffe6e2ca-c78b-4231-b278-06e3de8aa9c6""" | +sample_test_file.py | +51 | +2022-05-06 | +
some-message-a59653a5-3fae-450a-8289-0c4433e27535 | +sample_test_file.py | +53 | +2022-05-07 | +
+ +
User Name | +Message | +Line No. | +Completion Date | +
---|---|---|---|
JANE_DOE | +here for testing, please follow the pattern: {message}-{uuid} to add a message | +2 | +9999-12-25 | +
JANE_DOE | +some-message-21f886ac-cc41-452b-9a53-3cfd56446341 | +4 | +9999-12-25 | +
JANE_DOE | +some-message-0e4fc40f-f7c6-40bb-a6db-a51e158f4cc4 | +5 | +9999-12-25 | +
JANE_DOE | +some-message-0b0e31cc-e2e8-4d54-9684-ddf95958d7dc | +6 | +2022-05-01 | +
JANE_DOE | +some-message-f53d566a-1fea-422b-9ac6-41a171977ac2 | +7 | +2022-05-02 | +
ashutosh | +some-message-4ef1fe34-ab50-4cc1-8abc-e550dee3be3f | +8 | +2022-05-03 | +
ashutosh | +some-message-2af38dcf-29e4-4104-9921-6e654f27a6ca | +9 | +2022-05-04 | +
JANE_DOE | +some-message-f264a5e7-5758-4145-9513-c5c52c20a9fa TODO some-message-43498a94-6b13-41e8-ac2e-05e84fc6c895 | +10 | +9999-12-25 | +
JANE_DOE | +{2022-05-03 @ashutosh some-message-faa74c20-d4c2-444e-9fa0-7f202cb10b44 | +11 | +9999-12-25 | +
JANE_DOE | +2022-05-03} @ashutosh some-message-63448d77-07fb-4bc1-bf80-2d94ab902f5f | +12 | +9999-12-25 | +
JANE_DOE | +2022-05-03 @ashutosh some-message-11c6c4a1-5231-47ec-8cc6-11de055ce441 | +13 | +9999-12-25 | +
ashutosh | +some-message-e1922c58-f6d0-49cf-8005-076c18556f13 | +14 | +2022-05-17 | +
ashutosh | +some-message-1f1d31c2-2a40-4d02-9bcd-b099de963450 | +15 | +9999-12-25 | +
ashutosh | +some-message-e8d9c141-f082-44a3-b828-6f83606e9d24 | +16 | +2024-05-03 | +
ashutosh | +some-message-1a4a2281-40b0-4df0-942e-8d1a9d74ad45 | +17 | +2022-03-17 | +
ashutosh | +some-message-c3757bc8-571f-4717-bf16-b102a16d36f5 | +18 | +2024-03-03 | +
ashutosh | +some-message-8882c77a-ba29-40dc-9bcd-fb7d19ce7d49 | +19 | +2024-03-13 | +
ashutosh | +some-message-6d3d70fd-0dfc-46d6-a1ab-2303c292701c | +20 | +9999-12-25 | +
JANE_DOE | +some-message-5c795770-18f7-4104-a5d5-908af39a6686 | +21 | +2022-05-08 | +
ashutosh | ++ | 22 | +2022-05-09 | +
JANE_DOE | +some-@message-726c9e2d-13bf-4309-9b3c-530c7b3404b7 | +23 | +2022-05-09 | +
JANE_DOE | +some-message-27cdb8bc-fffe-40df-a212-76452cbdb47c {2022-05-09} some-@message-db1d606f-88d3-474e-890e-8e9c34f093d0 | +24 | +9999-12-25 | +
JANE_DOE | ++ | 25 | +2022-05-09 | +
JANE_DOE | ++ | 26 | +2022-05-10 | +
ashutosh | ++ | 27 | +9999-12-25 | +
JANE_DOE | +ashu@tosh | +28 | +9999-12-25 | +
ashutosh | +some-message-35d43513-00df-4c3d-8569-b72d8983f62d | +29 | +9999-12-25 | +
JANE_DOE | ++ | 30 | +9999-12-25 | +
JANE_DOE | +some-message-1621700c-bf13-49b7-ab63-e544d570f341 | +31 | +9999-12-25 | +
ashutosh | +{2022-05-09} | +32 | +9999-12-25 | +
JANE_DOE | +some-message-40b01cd7-3480-4f9b-9d0c-98ad297cf591 @ashutosh {2022-05-09} | +33 | +9999-12-25 | +
ashutosh | +{2022-05-09} some-message-afc38fb9-5a40-470b-9e1c-d4bacc451727 | +34 | +9999-12-25 | +
JANE_DOE | +TODO | +35 | +9999-12-25 | +
ashutosh | +TODO {2022-05-11} some-message-7c2a62cb-8037-46cb-bdee-76dd0791d747 | +36 | +9999-12-25 | +
ashutosh | +# TODO {2022-05-12} some-message-d2cad1b4-8881-4687-a38d-2d14fbfd1306 | +37 | +9999-12-25 | +
ashutosh | ++ | 38 | +9999-12-25 | +
ashutosh | +some-message-a1571791-50fe-4863-8a06-c2d4d921897c""" | +42 | +2022-05-05 | +
JANE_DOE | +: | +47 | +9999-12-25 | +
ashutosh | +some-message-ffe6e2ca-c78b-4231-b278-06e3de8aa9c6""" | +51 | +2022-05-06 | +
ashutosh | +some-message-a59653a5-3fae-450a-8289-0c4433e27535 | +53 | +2022-05-07 | +