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

#130 Add mypy and step to test imports #155

Merged
merged 4 commits into from
Oct 12, 2021
Merged

#130 Add mypy and step to test imports #155

merged 4 commits into from
Oct 12, 2021

Conversation

Dref360
Copy link
Member

@Dref360 Dref360 commented Oct 2, 2021

Summary:

Add Mypy and a step in Circle to test for imports.

Features:

Fixes #130

Checklist:

  • Your code is documented (To validate this, add your module to tests/documentation_test.py).
  • Your code is tested with unit tests.
  • You moved your Issue to the PR state.

@Dref360 Dref360 marked this pull request as ready for review October 6, 2021 18:22
Copy link
Collaborator

@parmidaatg parmidaatg left a comment

Choose a reason for hiding this comment

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

Thanks alot, just one comment :)

poetry run python -c "import baal; import baal.active.dataset; \
import baal.active.heuristics; import baal.active.active_loop; \
import baal.bayesian; import baal.calibration; import baal.modelwrapper"

Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need to test imports? is something changing or it was for internal test?

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to be sure that pip install baal doesnt require HuggingFace or torchvision.

@Dref360 Dref360 merged commit 82df3d4 into master Oct 12, 2021
@Dref360 Dref360 deleted the BAAL-130/mypy branch October 12, 2021 13:24
Dref360 pushed a commit that referenced this pull request Oct 13, 2021
Dref360 added a commit that referenced this pull request Nov 1, 2021
* dry-run-example

* Fix loop

* Fix nbsphinx to 0.8.6

* #130 Add mypy and step to test imports (#155)

* Fix build

* Fix structlog

* Update flash

* Update script

* Log heuristic

* Seems to work now

* Unfreeze backbone

* Reduce number of epochs

* Add wd

* reset epoch

* Format

* Update Flash and remove custom code

* Split API doc in multiple files (#158)

Co-authored-by: fr.branchaud-charron <fr.branchaud-charron@servicenow.com>

* Lint

Co-authored-by: parmida.atighehchian <parmida.atighehchian@servicenow.com>
Co-authored-by: fr.branchaud-charron <fr.branchaud-charron@servicenow.com>
Co-authored-by: Frédéric Branchaud-Charron <frederic.branchaud-charron@elementai.com>
Co-authored-by: Dref360 <frederic.branchaud.charron@gmail.com>
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.

Integrate Mypy
2 participants