Skip to content

Commit f2afec7

Browse files
Update justfile, precommit, and add submodule
1 parent 09c8e7b commit f2afec7

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "data_science/pandas/pandas_meetup"]
2+
path = data_science/pandas/pandas_meetup
3+
url = https://github.com/pythoninthegrass/pandas_meetup.git

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ fail_fast: true
33
repos:
44
# checks for secrets via rules (gitleaks.toml)
55
- repo: https://github.com/zricethezav/gitleaks
6-
rev: v8.15.0
6+
rev: v8.15.3
77
hooks:
88
- id: gitleaks
99
- repo: https://github.com/ambv/black
10-
rev: 22.10.0
10+
rev: 23.1.0
1111
hooks:
1212
- id: black
13-
- repo: https://gitlab.com/pycqa/flake8
14-
rev: 3.9.2
13+
- repo: https://github.com/PyCQA/flake8
14+
rev: 6.0.0
1515
hooks:
1616
- id: flake8
1717
# - repo: https://github.com/timothycrosley/isort
1818
# rev: 5.10.1
1919
# hooks:
2020
# - id: isort
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.3.0
22+
rev: v4.4.0
2323
hooks:
2424
- id: check-yaml
2525
- id: check-added-large-files

data_science/pandas/pandas_meetup

Submodule pandas_meetup added at 0f16ee5

justfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@ export-reqs: update-deps
5858

5959
# [git] update git submodules
6060
sub:
61-
git submodule update --init --recursive && git pull --recurse-submodules
61+
@echo "To add a submodule:"
62+
@echo "git submodule add https://github.com/username/repo.git path/to/submodule"
63+
@echo "Updating all submodules..."
64+
git submodule update --init --recursive && git pull --recurse-submodules -j8
65+
66+
# [git] update pre-commit hooks
67+
pre-commit:
68+
@echo "To install pre-commit hooks:"
69+
@echo "pre-commit install"
70+
@echo "Updating pre-commit hooks..."
71+
pre-commit autoupdate
6272

6373
# [minikube] start minikube + tilt
6474
start-minikube:

0 commit comments

Comments
 (0)