Skip to content

Commit 797925f

Browse files
authored
Merge pull request #11 from indeedeng/jira/ngivens/IWF-937
IWF-937 remove references to nexus
2 parents 2ac9725 + 2658592 commit 797925f

File tree

5 files changed

+403
-452
lines changed

5 files changed

+403
-452
lines changed

.githooks/no-nexus.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#! /usr/bin/env bash
2+
3+
sed -i'' \
4+
-e '/./{H;$!d}' \
5+
-e 'x' \
6+
-e 's|\[package.source\]\ntype\s*=\s*\"legacy\"\nurl\s*=\s*\"https://nexus.corp.indeed.com/repository/pypi/simple\"\nreference\s*=\s*\"nexus\"||' \
7+
poetry.lock
8+
9+
sed -i'' \
10+
-e '1{/^\s*$/d}' \
11+
poetry.lock
12+
13+
sed -i'' \
14+
-e '/^\s*$/N;/^\s*\n$/D' \
15+
poetry.lock
16+
17+
CHANGES=$(git diff --exit-code poetry.lock | grep -Pzo '\-\[package.source\]\n\-type = "legacy"\n\-url = "https://nexus.corp.indeed.com/repository/pypi/simple"\n\-reference = "nexus"\n' | wc -c)
18+
19+
if [[ $CHANGES -eq 0 ]]; then
20+
exit 0
21+
fi
22+
23+
exit 1
24+

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
5+
- id: mypy
6+
name: Validate types with MyPy
7+
entry: poetry run mypy
8+
language: system
9+
types: [python]
10+
pass_filenames: false
11+
args:
12+
- "iwf"
13+
14+
- id: no-nexus
15+
name: Remove nexus references
16+
entry: .githooks/no-nexus.sh
17+
language: script
18+
types: [file] # Example: run on all files, adjust as needed

ai-agent-email/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

0 commit comments

Comments
 (0)