Skip to content

Cedric/remove dead code#117

Open
ViaDézo1er / cedric (viadezo1er) wants to merge 3 commits intomainfrom
cedric/remove-dead-code
Open

Cedric/remove dead code#117
ViaDézo1er / cedric (viadezo1er) wants to merge 3 commits intomainfrom
cedric/remove-dead-code

Conversation

@viadezo1er
Copy link
Contributor

Fix #98

As advised by Abhi, used vulture to find unused code.
Only targeted code with 100 confidence, should I also target confidence of 60?

Pytest fixtures aren't handled well so some are whitelisted in the pyproject.toml

vulture still finds dataset_record_id in logger.py, but the docstring indicates we might want to keep it for now (maybe for backward compatibility?).
Need another opinion on this.

Some variables had their name changed by prefixing them with a _, this is cosmetic and indicates to vulture this is voluntarily unused.

asyncio_default_fixture_loop_scope = "function"
addopts = "--durations=3 --durations-min=0.1"

[tool.vulture]

Choose a reason for hiding this comment

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

this should also run in CI.

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.

Add vulture to remove dead code in this repo

2 participants