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

feat(Makefile): use pyclean v3 features #15

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.PHONY: clean format test all

clean:
pyclean .
rm -rf .pdb/ obsolete/ .mypy_cache/ .pytest_cache/ .ruff_cache/ htmlcov/ .coverage
pyclean . --debris mypy --erase .pdb/**/* .pdb/ obsolete/**/* obsolete/ --yes
Copy link

Choose a reason for hiding this comment

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

Watch out that this will only clear the mypy folder, but not any other debris (e.g. packaging folders, cache folders, pytest leftovers, etc.).

Of that's what you want and need, fine. Otherwise you need to add any other debris target you require (see the --help screen).

I know this is somewhat inconvenient. I've not sat down to come up with a better, more intuitive solution yet. 😟

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thank you for the heads up!


format:
ruff format ramachandraw/ tests/ scripts/
ruff --fix ramachandraw/ tests/ scripts/

test:
pytest --cov=ramachandraw --cov-report html
Expand Down
Loading