generated from chanzuckerberg/Hackathon-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
30 lines (25 loc) · 831 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-FileCopyrightText: 2023 Brown, E. M., Nesbitt, A., Hébert-Dufresne, L., Veytsman, B., Pimentel, J. F., Druskat, S., Mietchen, D., Howison, J.
#
# SPDX-License-Identifier: CC0-1.0
# list all available commands
default:
just --list
###############################################################################
# Basic project and env management
# clean all build, python, and lint files
clean:
rm -fr dist
rm -fr .eggs
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -fr .mypy_cache
# install with all deps
install:
pip install -e ".[lint]"
# lint, format, and check all files
lint:
pre-commit run --all-files