My final project for CS50P.
Video Demo: Youtube Link.
Description: I wrote this script to organize any messy directory and assign the files into separate folders. The directories configuration can be found in the directories.py
. After the files are organized, you can also choose if you want to remove the unorganized files from the base directory. The folder that you want to be organized should be put in resources directory.
- run
make init
to make sure all necessary packages are installed - the script can be run with
make run
- code can be formatted with black by running
make format
- code can linted with ruff by running
make check
andmake fix
- code can be tested with
make test
- python
- pytest
- black
- ruff
- shutil
- pathlib
- sys
- re
- os
feat
– a new feature is introduced with the changesfix
– a bug fix has occurredchore
– changes that do not relate to a fix or feature and don't modify src or test files (for example updating dependencies)refactor
– refactored code that neither fixes a bug nor adds a featuredocs
– updates to documentation such as a the README or other markdown filesstyle
– changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on.test
– including new or correcting previous testsperf
– performance improvementsci
– continuous integration relatedbuild
– changes that affect the build system or external dependenciesrevert
– reverts a previous commit
Ha Anna - @ha-anna - [email protected]