-
Notifications
You must be signed in to change notification settings - Fork 4
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
Lint etl subdirectories #677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with making this kind of massive PR if it's just linting. However, let's check that the line endings of all these files are the same (unix line endings).
Yeah, everything seems to LF now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An annoying change, but a super helpful one nonetheless. Thanks for picking up this chore!
# nolint start | ||
# pdf(str_c("output/krig_demo/", year_num, ".pdf"), width = 11, height = 8.5) | ||
|
||
#plot_surface(k) | ||
|
||
#dev.off() | ||
# plot_surface(k) | ||
|
||
# dev.off() | ||
# # nolint end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Nitpick, non-blocking] Rather than turn off linting for this block, maybe we just delete the unused code that's commented out?
# raster_location <- str_c("output/kriging_surfaces/rasters/", year, ".tif") # nolint | ||
# raster_file <- read_stars(raster_location) # nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Nitpick, non-blocking]
# raster_location <- str_c("output/kriging_surfaces/rasters/", year, ".tif") # nolint | |
# raster_file <- read_stars(raster_location) # nolint | |
# raster_location <- str_c("output/kriging_surfaces/rasters/", year, ".tif") # nolint | |
# raster_file <- read_stars(raster_location) # nolint |
# Demo from 2010: | ||
# plot_surface(out[[1]]) # nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Nitpick, non-blocking] Same here:
# Demo from 2010: | |
# plot_surface(out[[1]]) # nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right that this should get removed, but this entire file needs to be cleaned up for extraneous code. I only wanted to address formatting in this PR so that there wouldn't be any uncertainty as to whether the insane number of changes here might lead to any changes in outputs or how code is understood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR applies
styler::style_dir()
toscripts-ccao-data-raw-us-east-1
andscripts-ccao-data-warehouse-us-east-1
.