refactor: migrate from setup.py to pyproject.toml and reorganize tools #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several improvements and refactorings across multiple files in the project. The changes focus on adding a new build system configuration, improving exception handling, and enhancing code readability through consistent formatting.
New Build System Configuration:
pyproject.toml
: Added build system configuration usinghatchling
and specified project metadata, dependencies, and scripts.Exception Handling Improvements:
semseg/__init__.py
: Improved exception handling inshow_backbones
by specifyingException
in theexcept
block.semseg/tools/export.py
: Enhanced exception handling inexport_coreml
function by catchingException
instead of a bareexcept
.Code Readability Enhancements:
semseg/augmentations.py
: Reformatted multiple functions and class methods to improve readability by breaking long lines and aligning parameters. [1] [2] [3] [4] [5] [6] [7] [8]semseg/schedulers.py
: Reformatted class constructors and methods for better readability and consistency. [1] [2] [3] [4] [5]New Benchmarking Tool:
semseg/tools/benchmark.py
: Added a new script for benchmarking models, including FLOP count and inference time measurements.File Renaming:
tools/export.py
tosemseg/tools/export.py
: Renamed the file to follow the project directory structure and updated import statements accordingly.