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

remove unUse import #2295

Merged
merged 5 commits into from
Jul 15, 2024
Merged

remove unUse import #2295

merged 5 commits into from
Jul 15, 2024

Conversation

EdwardLi-coder
Copy link
Contributor

Description

remove unUse import function

Related Issues

Cannot Find Reference to _build_leaves Function(fix #2294 )

Checklist

  • Is this code covered by new or existing unit tests or integration tests?
  • Did you run make unit_testing and make integration-testing successfully?
  • Do new classes, functions, methods and parameters all have docstrings?
  • Were existing docstrings updated, if necessary?
  • Was external documentation updated, if necessary?

Additional Notes or Comments

@jieguangzhou
Copy link
Collaborator

@EdwardLi-coder Could you update the CHANGELOG?

@EdwardLi-coder
Copy link
Contributor Author

@EdwardLi-coder Could you update the CHANGELOG?

I’m sorry, but I’m not sure where exactly to update the CHANGELOG. Could you please provide me with more details? Thank you.

@jieguangzhou
Copy link
Collaborator

@EdwardLi-coder Could you update the CHANGELOG?

I’m sorry, but I’m not sure where exactly to update the CHANGELOG. Could you please provide me with more details? Thank you.

https://github.com/superduper-io/superduper/blob/main/CHANGELOG.md this file.

Under the 0.3.0 -> Bug Fixes

@EdwardLi-coder
Copy link
Contributor Author

@EdwardLi-coder Could you update the CHANGELOG?

I’m sorry, but I’m not sure where exactly to update the CHANGELOG. Could you please provide me with more details? Thank you.

https://github.com/superduper-io/superduper/blob/main/CHANGELOG.md this file.

Under the 0.3.0 -> Bug Fixes

Ok.

@jieguangzhou
Copy link
Collaborator

Hey @EdwardLi-coder , the CI didn't pass, you need to make sure the lint check is OK

Please remove the unused import thing, and run make lint-and-type-check, if it passes, I think the CI will pass

superduper/components/component.py:17:49: F401 [*] `superduper.base.constant.KEY_BUILDS` imported but unused
Run make lint-and-type-check
===> Code Formatting <===
black --check superduper test
All done! ✨ 🍰 ✨
222 files would be left unchanged.
ruff check superduper test
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'extend-select' -> 'lint.extend-select'
  - 'ignore' -> 'lint.ignore'
  - 'isort' -> 'lint.isort'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`.
warning: Docstring at superduper/backends/base/artifacts.py:92:9 contains implicit string concatenation; ignoring...
superduper/components/component.py:17:49: F401 [*] `superduper.base.constant.KEY_BUILDS` imported but unused
Found 1 error.
[*] 1 fixable with the `--fix` option.
make: *** [Makefile:74: lint-and-type-check] Error 1

@EdwardLi-coder
Copy link
Contributor Author

Hey @EdwardLi-coder , the CI didn't pass, you need to make sure the lint check is OK

Please remove the unused import thing, and run make lint-and-type-check, if it passes, I think the CI will pass

superduper/components/component.py:17:49: F401 [*] `superduper.base.constant.KEY_BUILDS` imported but unused
Run make lint-and-type-check
===> Code Formatting <===
black --check superduper test
All done! ✨ 🍰 ✨
222 files would be left unchanged.
ruff check superduper test
warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'extend-select' -> 'lint.extend-select'
  - 'ignore' -> 'lint.ignore'
  - 'isort' -> 'lint.isort'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`.
warning: Docstring at superduper/backends/base/artifacts.py:92:9 contains implicit string concatenation; ignoring...
superduper/components/component.py:17:49: F401 [*] `superduper.base.constant.KEY_BUILDS` imported but unused
Found 1 error.
[*] 1 fixable with the `--fix` option.
make: *** [Makefile:74: lint-and-type-check] Error 1

ok

@EdwardLi-coder
Copy link
Contributor Author

Hi @jieguangzhou. I successfully ran the make lint-and-type-check command locally, but it failed in the CI. I am using the latest versions of both black and ruff.Do you have any suggestions? Should I consider using an older version?
WX20240715-101943@2x
WX20240715-102420@2x

@jieguangzhou
Copy link
Collaborator

@EdwardLi-coder , you can run make install_devkit to install the version we used and please rebase the main branch, thanks

install_devkit: ## Add essential development tools
	# Add pre-commit hooks to ensure that no strange stuff are being committed.
	# https://stackoverflow.com/questions/3462955/putting-git-hooks-into-a-repository
	python -m pip install pre-commit

	@echo "Download Code Quality dependencies"
	python -m pip install --user black==23.3 ruff==0.4.4 mypy types-PyYAML types-requests interrogate

	@echo "Download Code Testing dependencies"
	python -m pip install --user pytest pytest-cov "nbval>=0.10.0"

@EdwardLi-coder
Copy link
Contributor Author

@EdwardLi-coder , you can run make install_devkit to install the version we used and please rebase the main branch, thanks

install_devkit: ## Add essential development tools
	# Add pre-commit hooks to ensure that no strange stuff are being committed.
	# https://stackoverflow.com/questions/3462955/putting-git-hooks-into-a-repository
	python -m pip install pre-commit

	@echo "Download Code Quality dependencies"
	python -m pip install --user black==23.3 ruff==0.4.4 mypy types-PyYAML types-requests interrogate

	@echo "Download Code Testing dependencies"
	python -m pip install --user pytest pytest-cov "nbval>=0.10.0"

I updated it. One succeeded, and one failed. I found the reason for the failure: it was a read timeout. Is there anything else you need me to do?

@jieguangzhou jieguangzhou merged commit c360500 into superduper-io:main Jul 15, 2024
3 checks passed
@jieguangzhou
Copy link
Collaborator

@EdwardLi-coder Hey, thanks for your PR, I merged

@EdwardLi-coder
Copy link
Contributor Author

@EdwardLi-coder Hey, thanks for your PR, I merged

OK.

@EdwardLi-coder EdwardLi-coder deleted the remove_import branch July 16, 2024 09:49
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.

[BUG]: Cannot Find Reference to _build_leaves Function
2 participants