Repository navigation
ci: check format with black - #37
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 190 190
=========================================
Hits 190 190
☔ View full report in Codecov by Sentry. |
uniqueg
left a comment
There was a problem hiding this comment.
Wait, Build the Docs failed, likely because of the Pyyaml/Cython issue. Could you incorporate the required version limits in the requirements so that they will be applied for the RtD build as well? 🙏
|
@uniqueg we cannot force the build requirement of
pyyaml build configuration - https://github.com/yaml/pyyaml/blob/ee37f4653c08fc07aecff69cfd92848e6b1a540e/pyproject.toml And for read the docs build, I could not find any ci step inside github action checks.yaml where I could tweak the requirement installation behaviour. Can you help me in locating the config for this? |
Did you actually try that? Pip should resolve a list of packages that fulfills all the requirements, doesn't it? About ReadTheDocs: That is the problem, you can't tweak the installation instructions, as far as I know. You can just point to one or more requirements files. And that config is done on RtD itself, not in the CI. |
Yes, I tried by creating a requirements.txt file as shown below However, pip still uses the latest version of cython for building pyyaml, the reason is that pip will resolve only runtime package dependencies as defined in requirements.txt. However, cython is a build time dependency, which is only used to compile pyyaml, and as mentioned above, pip isolates the build environment for each package that is being installed, therefore it will not use system installed cython version. That is the reason why I had to install pyyaml with the flag This error should be auto resolved if we upgrade to latest foca version (0.12.1), since it uses |
|
Okay, thanks for the detailed explanation - now it makes sense to me. Hmm, I would say it depends how much work you have put into this that you would need to redo if upgrading to the latest FOCA version first. If it is essentially only rerunning black, then yes, I would much prefer that over merging a failing PR. If you'd have to redo a lot of work, let's bite that bullet. |
|
I wouldn't have to redo any of my changes since the changelog of the foca upgrade only has one change, i.e adding the feature for running celery jobs. will share the PR for the foca upgrade today. |
|
@uniqueg all tests have now passed, can you please review this PR again please |
Description
This pull request implements all the changes required to standardize formatting for the codebase as mentioned in #36
Fixes #36
Type of change
Please delete options that are not relevant.
Checklist: