Skip to content

Ignore complexity violations, but re-enable rules#315

Merged
brianhelba merged 2 commits intomasterfrom
noqa-ruff-errors
Mar 5, 2026
Merged

Ignore complexity violations, but re-enable rules#315
brianhelba merged 2 commits intomasterfrom
noqa-ruff-errors

Conversation

@brianhelba
Copy link
Collaborator

Also refactor some functions to reduce complexity.

@brianhelba brianhelba requested a review from annehaley March 5, 2026 18:38
geodata = geopandas.GeoDataFrame.from_features(
vector_data.read_geojson_data().get("features")
).set_crs(4326)
geodata = geodata.fillna({"connection_column": ""})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note, this is a semantic change, removing inplace=True, due to https://docs.astral.sh/ruff/rules/pandas-use-of-inplace-argument/

@brianhelba
Copy link
Collaborator Author

With the exception of 1 thing noted as an inline comment, the rest of the refactor is just structural (moving functions and inlining variables) and should have no behavior impact.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 5, 2026

Deploying geodatalytics with  Cloudflare Pages  Cloudflare Pages

Latest commit: 45fab6a
Status: ✅  Deploy successful!
Preview URL: https://5565b44b.geodatalytics.pages.dev
Branch Preview URL: https://noqa-ruff-errors.geodatalytics.pages.dev

View logs

Copy link
Collaborator

@annehaley annehaley left a comment

Choose a reason for hiding this comment

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

This seems like a fairly straightforward refactor. Thank you for pointing out the one semantic change. LGTM

@brianhelba brianhelba merged commit 8bd9bef into master Mar 5, 2026
4 checks passed
@brianhelba brianhelba deleted the noqa-ruff-errors branch March 5, 2026 22:26
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.

2 participants