Skip to content

Conversation

@schwehr
Copy link
Collaborator

@schwehr schwehr commented Dec 31, 2025

Follow on to #2437

* Move import webbrowser and box to the top
* Remove redundant imports of requests
* Add more type annotations
* Remove types from doc strings when type annotations are present
* Fit to 88 columns
* Convert doc strings to start with "Returns" and remove "Returns:" section
* Remove commented out code
* Remove redundant comments
* Add missing puctuation to comment
* Remove types from doc strings with type annotations are present
* Add missing punctation in comments
* Fix typo `avariables`
* Add type annotations
* Remove commented out code
* Simplify `get_current_year`
* `find_files`:
  * Switch `Path` to pathlib.Path
  * Make a local variable `path` for `Path(input_dir)`
* `(x, y)` --> `x, y` when the parens are not required
* Remove `:param:` in doc string for `get_geometry_coords`
* Remove extra blank lines
* Remove redundant comments
* Start doc string summary line directly after `"""`
* Add `assert parent` for `psutil.Process().parent()` for pytype
* Avoid a local bool variable when just returning a bool
* `hex_to_rgba`: Improve doc string
* `remove_port_from_string`: Remove `result = ` when just returning result
* `pmtiles_style`: Remove extra kwargs
* Use module import: `get_palette` --> `colormaps.get_palette`
* Use `pathlib.Path.read()`
* import colormaps
* ipywidgets is aliased to widgets
@schwehr schwehr changed the title Cleanup common 2025-12-31 common.py: Cleanup 2025-12-31 Dec 31, 2025
@schwehr schwehr marked this pull request as draft January 7, 2026 08:09
@schwehr schwehr marked this pull request as ready for review January 8, 2026 21:54
Copy link
Member

@jdbcode jdbcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preemptive LGTM, see comment about being able to remove a possibly unused import.

@jdbcode jdbcode assigned schwehr and unassigned jdbcode and naschmitz Jan 8, 2026
@schwehr
Copy link
Collaborator Author

schwehr commented Jan 8, 2026

I will try to figure out the This branch cannot be rebased due to conflicts later

@schwehr schwehr merged commit 1aca919 into gee-community:master Jan 9, 2026
13 checks passed
@schwehr schwehr deleted the cleanup-common-1231 branch January 9, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants