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

Development #12

Merged
merged 4 commits into from
May 18, 2024
Merged

Development #12

merged 4 commits into from
May 18, 2024

Conversation

leaver2000
Copy link
Owner

No description provided.

@leaver2000 leaver2000 merged commit e387da9 into master May 18, 2024
1 check failed
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @leaver2000 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -24,7 +24,7 @@
if tuple(sys.argv[1:3]) == ("clean", "--all"):
# when switching between production and coverage we need to remove the _c.c file to
# ensure that the cython code is recompiled with the correct compiler directives
for file in ("nzthermo/_c.c", "nzthermo/_datetime.c"):
for file in ("src/nzthermo/_c.c", "src/nzthermo/_datetime.c"):
Copy link

Choose a reason for hiding this comment

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

suggestion: Consider using a constant for the file paths.

Using a constant or a configuration variable for the file paths would make the code more maintainable and reduce the risk of errors if the paths need to be updated in the future.

Suggested change
for file in ("src/nzthermo/_c.c", "src/nzthermo/_datetime.c"):
FILE_PATHS = ("src/nzthermo/_c.c", "src/nzthermo/_datetime.c")
for file in FILE_PATHS:

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.

1 participant