Skip to content
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

DM-39785: Package modernization and ruff #162

Merged
merged 22 commits into from Jun 26, 2023
Merged

DM-39785: Package modernization and ruff #162

merged 22 commits into from Jun 26, 2023

Conversation

timj
Copy link
Member

@timj timj commented Jun 25, 2023

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Patch coverage: 95.00% and project coverage change: -0.07 ⚠️

Comparison is base (87fa34d) 93.94% compared to head (7607e8a) 93.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
- Coverage   93.94%   93.88%   -0.07%     
==========================================
  Files          43       43              
  Lines        2826     2830       +4     
==========================================
+ Hits         2655     2657       +2     
- Misses        171      173       +2     
Impacted Files Coverage Δ
tests/import_test/two/three/fail.py 33.33% <ø> (ø)
tests/test_classes.py 98.80% <ø> (ø)
tests/test_decorators.py 100.00% <ø> (ø)
tests/test_deprecated.py 100.00% <ø> (ø)
tests/test_ellipsis.py 100.00% <ø> (ø)
tests/test_executables.py 100.00% <ø> (ø)
tests/test_getPackageDir.py 66.66% <ø> (-1.76%) ⬇️
tests/test_introspection.py 100.00% <ø> (ø)
tests/test_logging.py 100.00% <ø> (ø)
tests/test_ordering.py 86.66% <ø> (ø)
... and 26 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timj timj marked this pull request as ready for review June 26, 2023 16:42
@timj timj requested a review from andy-slac June 26, 2023 16:44
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, few minor comments.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be adding a reusable workflow for ruff to rubin_workflows?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, although I don't think we can add it to the reusable linter workflow so we'd have to make a standalone workflow with those four lines in it. Maybe a shared linter could include ruff but not run it if a use_ruff parameter is false and then we can add a "use_ruff = True" argument to that. I'm happy to fix things up based on the RFC.

tests/import_test/two/three/success.py Outdated Show resolved Hide resolved
tests/test_executables.py Outdated Show resolved Hide resolved
tests/test_getTempFilePath.py Outdated Show resolved Hide resolved
tests/test_getTempFilePath.py Outdated Show resolved Hide resolved
tests/test_getTempFilePath.py Outdated Show resolved Hide resolved
@timj timj merged commit 3943c6b into main Jun 26, 2023
13 of 14 checks passed
@timj timj deleted the tickets/DM-39785 branch June 26, 2023 18:51
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.

None yet

2 participants