Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session_notes_cleaner is stable enough to become an automated commit action #10

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
9763c67
. t Working setup - directory structure, pytest, approvalTests.
MichaelRWolf Dec 14, 2023
c14d136
. t Added .ignore entries for 'Python' and 'macOS'
MichaelRWolf Dec 14, 2023
4ab3e56
. t Moved files from session-notes/cleanup-notes to src
MichaelRWolf Dec 14, 2023
469c092
. t Ignore tests/*.received.* files
MichaelRWolf Dec 14, 2023
b6bfadb
. t Passing test - test_strip_trailing_whitespace
MichaelRWolf Dec 14, 2023
be0cdf6
. t Passing test - test_strip_trailing_whitespace
MichaelRWolf Dec 14, 2023
510f058
. t Simpler input to test_strip_trailing_whitespace
MichaelRWolf Dec 15, 2023
9b94405
. t New test - test_sample_file_has_no_trailing_whitespace(self)
MichaelRWolf Dec 15, 2023
44c9e01
. t 2 new tests for inactive_coauthors
MichaelRWolf Dec 15, 2023
07c9fe3
Delete session_notes_cleaner.py
MichaelRWolf Dec 15, 2023
da1fedd
Revert "Delete session_notes_cleaner.py"
MichaelRWolf Dec 15, 2023
9feb03d
. t Replace lost methods for inactive coauthors
MichaelRWolf Dec 15, 2023
3e3440e
. t New test - test_contains_active_coauthors()
MichaelRWolf Dec 15, 2023
6722e2d
. t New - test_cleanup_contents(self):
MichaelRWolf Dec 15, 2023
f4c4c81
. t New class method - normalize_coauthor_heading(self, contents)
MichaelRWolf Dec 15, 2023
f53f5a3
. r Consistent parameter name - 'text'
MichaelRWolf Dec 15, 2023
d82eb34
. r New - test_normalize_coauthor_heading(self)
MichaelRWolf Dec 15, 2023
e419a69
. r Reformatting
MichaelRWolf Dec 15, 2023
bdd4f8e
. t Removed *received* file
Dec 15, 2023
498b86e
. r Use assertEqual instead of assertEquals
MichaelRWolf Dec 15, 2023
09eb491
. f @staticmethod strip_trailing_whitespace(text)
MichaelRWolf Dec 15, 2023
5e0deb9
. r Rename all functions to fn_*. Move cleanup_file() into class.
MichaelRWolf Dec 15, 2023
e1fbe84
. r Move into class - get_date_from_filename()
MichaelRWolf Dec 15, 2023
83db980
! r Remove dead code
MichaelRWolf Dec 15, 2023
7bc4501
. r Move into class - contains_session_date(self, contents)
MichaelRWolf Dec 15, 2023
13aec60
. r Move into class - slurp_file(self, filename)
MichaelRWolf Dec 15, 2023
4154f0f
. r Move into class - delete_inactive_coauthors(self, text)
MichaelRWolf Dec 15, 2023
2243b29
. r Remove dead code
MichaelRWolf Dec 15, 2023
6045453
. r Reorder methods.
MichaelRWolf Dec 15, 2023
faa7e82
. r Reorder methods.
MichaelRWolf Dec 15, 2023
4536d45
. r Rename method to: standardize_coauthor_heading(self, text)
MichaelRWolf Dec 15, 2023
16969b3
Update doit
MichaelRWolf Dec 15, 2023
25d1171
. t New - test_remove_coauthor_headings()
MichaelRWolf Dec 15, 2023
cb8a959
. t New - test_add_coauthor_heading_before_co_authored_by_list(self):
MichaelRWolf Dec 15, 2023
b7952f4
. r Standardize headers before removing sections. Tweak regep's to m…
MichaelRWolf Dec 15, 2023
026f02c
. . Reverting files to b03bc8a035f61199035fffc12ab957658e42089c, befo…
MichaelRWolf Dec 15, 2023
a41358a
. r Tweak heder regex's and reuse them across functions.
MichaelRWolf Dec 15, 2023
987bef4
. F Cleaned all session files!!!! Task DONE!
MichaelRWolf Dec 15, 2023
e05a264
. d Add TODO
MichaelRWolf Dec 18, 2023
0ef5a8e
Removed inactive contributer section that lacked header
MichaelRWolf Jan 1, 2024
af6fbed
Update test_session_notes_cleaner.py
MichaelRWolf Jan 2, 2024
c569a1f
- f Tighten up RegExp to match date in filename
MichaelRWolf Jan 3, 2024
fd4896d
- t Cleaned up AI-generated test cases
MichaelRWolf Jan 3, 2024
d4d22ff
- f Check for valid date in filename. Enable more AI-generated tests.
MichaelRWolf Jan 3, 2024
991d2b0
. d Create TODO for Reporter. (And remove dead code comments)
MichaelRWolf Jan 3, 2024
f372272
. - Removed dead code (as suggested by "code problems")
MichaelRWolf Jan 3, 2024
7dd8c2c
. t Disabled (unworking) MultiReporter
MichaelRWolf Jan 3, 2024
87596f1
. r Add explicit 'else'
MichaelRWolf Jan 3, 2024
0b8629f
. r Outdent incorrect 'else'
MichaelRWolf Jan 3, 2024
8387b27
. a Invert 'if' match
MichaelRWolf Jan 3, 2024
386d39e
. r Move assignment closer to usage
MichaelRWolf Jan 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 199 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,199 @@
.idea
# ApprovalTests
tests/*.approved.*


# Copied from https://github.com/github/gitignore/blob/main/Python.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# 2023-12-04. MRW commented out at suggestion of Python.gitignore
# .idea



# 2023-12-04 - Copied from https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/mob-programming-rpg_gregorriegler.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .rustup/settings.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
profile = "default"
version = "12"

[overrides]
3 changes: 3 additions & 0 deletions session-notes/cleanup-notes/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions session-notes/cleanup-notes/.idea/cleanup-notes.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions session-notes/cleanup-notes/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions session-notes/cleanup-notes/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions session-notes/cleanup-notes/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 0 additions & 69 deletions session-notes/cleanup-notes/cleanup_session_notes.py

This file was deleted.

1 change: 1 addition & 0 deletions session-notes/session-notes-2023-02-02.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Session Date: 2023-02-02
## Co-Authors
Co-Authored-By: Nitsan Avni <nitsanav@gmail.com>
Co-Authored-By: Eddie Bush <eddie@craftsmanshipcounts.com>
Co-Authored-By: Michael R. Wolf <MichaelRWolf@att.net>
1 change: 1 addition & 0 deletions session-notes/session-notes-2023-02-09.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Session Date: 2023-02-09
## Co-Authors
Co-Authored-By: Nitsan Avni <nitsanav@gmail.com>
Co-Authored-By: Eddie Bush <eddie@craftsmanshipcounts.com>
Co-Authored-By: Rea <reasu@protonmail.com>
1 change: 1 addition & 0 deletions session-notes/session-notes-2023-02-16.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Session Date: 2023-02-16
## Co-Authors
Co-Authored-By: Nitsan Avni <nitsanav@gmail.com>
Co-Authored-By: Michael R. Wolf <MichaelRWolf@att.net>

1 change: 1 addition & 0 deletions session-notes/session-notes-2023-02-23.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Session Date: 2023-02-23
## Co-Authors
Co-Authored-By: Rea <reasu@protonmail.com>
Co-Authored-By: Tsvetan Tsvetanov <cpi.cecko@gmail.com>
Co-Authored-By: Michael R. Wolf <MichaelRWolf@att.net>
Loading
Oops, something went wrong.