-
Notifications
You must be signed in to change notification settings - Fork 35
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 setup fix #122
Lint setup fix #122
Conversation
Yeah I think it makes more sense to use the actions scripts in brainglobe/actions. I think all that's needed is for @brainglobe/ucl-rsdg is there a good way to automate this? We've centalised a lot of the setup, but there are still lots of files in each repo that could get out of date. |
But is it centralised? ie for |
Not automatically, a new version would need to be released (and the version used in the individual repo may need to be updated), but the changes wouldn't need to be copied & pasted. |
I don't think there's an easy way to share the test/pre-commit configuration files above across repositories unfortunately. |
@@ -13,7 +13,6 @@ jobs: | |||
python-version: 3.8 | |||
- name: Install dependencies | |||
run: | | |||
python -m pip install --upgrade pip |
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.
It's good practice to run this to make sure the latest version of pip
is being used - was it causing issues?
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 thought it was this line that was entering the endless loop of non-resolvable pip version search, but maybe it was actually one of the docgen packages that I now removed as dev deps. I'll try to put this line back, thanks for the tip!
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.
Actually, I'll just try to emulate the structure of the imio
repo as per @adamltyson suggestion
isn't there a way to have a part of a repo that is itself a repo? |
There I don't understand the redundancy between the test matrix defined in the workflows |
That I don’t know, @dstansby? |
Do you mean this section: https://github.com/brainglobe/imio/blob/3dac57ee27c8b7f9d0eef2e546319c36597c1e7e/tox.ini#L4-L8 ? It's a hangover from the template |
yes, that one! ok, then I can just remove it? |
Yep, you can |
Regarding |
Ok, this is now fixed, @adamltyson what do you think? @paddyroddy ok, I see! But then this does not standardise much things across repos right? I think that at least for linting we should probably have common tests, and maybe just keep out the (few) repos that won't nee python-related tests? I feel that it is somehow counterintuitive to have common actions to run tests but then to determine their behavior locally in every repo...(also related to the |
Looks fine to me @vigji!
I agree. If we can't standardise everything with |
Yeah I think default config files in |
I disagree on your |
Ok, happy to learn here! Can I ask your help to fix the |
Fixed in #123 |
* Fix mypy * Ignore direnv
Test fix.
Description
Changes to GitHub actions to fix linting bug. Is this good @adamltyson ? should we handle this differently now that we have the .github repo?