Skip to content

Commit 0e282eb

Browse files
committed
feat: Unvendor awkde
1 parent d98f7dc commit 0e282eb

34 files changed

+3043
-5490
lines changed

.github/workflows/pr_checks_backend.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ jobs:
6868
echo "Using Python: $(which python)"
6969
pipenv --python $(which python) install --dev
7070
71-
- name: Install awkde
72-
working-directory: data/src/awkde
73-
run: pipenv run pip install .
74-
7571
- name: Run Pytest
7672
working-directory: data/src
7773
run: PYTHONPATH=$PYTHONPATH:. pipenv run pytest

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,3 @@ data/src/app/service-account-key.json
5959

6060
# compiled python files
6161
*.pyc
62-
63-
# awkde build files
64-
data/src/awkde/build/
65-
tmp/

.pre-commit-config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repos:
99
language: python
1010
types_or: [python, pyi, jupyter]
1111
files: \.py$
12-
exclude: ^data/src/awkde/
1312

1413
# Ruff for Python formatting
1514
- id: ruff-format
@@ -18,7 +17,6 @@ repos:
1817
language: python
1918
types_or: [python, pyi, jupyter]
2019
files: \.py$
21-
exclude: ^data/src/awkde/
2220

2321
# Dependency checks for Python
2422
- id: check-python-dependencies
@@ -35,14 +33,13 @@ repos:
3533
radon hal {} -s | awk "/effort/ { if (\$3 > 2000) print FILENAME \": High Halstead effort:\" \$3 }"'
3634
language: system
3735
files: \.py$
38-
exclude: ^data/src/awkde/
3936

4037
- repo: https://github.com/jendrikseipp/vulture
4138
rev: 'v2.3' # or any later Vulture version
4239
hooks:
4340
- id: vulture
4441
name: vulture (Dead code detection)
45-
entry: vulture data/ --exclude=data/src/awkde
42+
entry: vulture data/
4643
language: python
4744
types: [python]
4845
files: ^data/

data/Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ ENV GDAL_CONFIG=/usr/bin/gdal-config
2929
# Install Pipenv
3030
RUN pip install pipenv
3131

32-
# update pipfile
33-
RUN pipenv lock
34-
3532
# Copy the Pipfile and Pipfile.lock from the src directory
3633
COPY src/Pipfile src/Pipfile.lock ./
3734

35+
# update pipfile
36+
RUN pipenv lock
37+
3838
# Install the dependencies from Pipfile
3939
RUN pipenv install --deploy --ignore-pipfile
4040

@@ -44,17 +44,9 @@ RUN git clone https://github.com/felt/tippecanoe.git \
4444
&& make \
4545
&& make install
4646

47-
# Copy the src directory (including awkde)
47+
# Copy the src directory
4848
COPY src/ .
4949

50-
# Install awkde within the Pipenv environment
51-
# Assuming awkde is located in /usr/src/app/awkde
52-
WORKDIR /usr/src/app/awkde
53-
RUN pipenv run pip install .
54-
55-
# Change back to the original working directory
56-
WORKDIR /usr/src/app
57-
5850
# Use Pipenv to run the script
5951
# Adjust the path to your main Python script if needed
6052
CMD ["pipenv", "run", "python", "./script.py"]

data/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ services:
2626
context: .
2727
volumes:
2828
- ./src:/usr/src/app
29-
command: sh -c "pip install ruff && ruff format --exclude '/usr/src/app/awkde/'"
29+
command: sh -c "pip install ruff && ruff format"
3030
network_mode: 'host'
3131

3232
linter:
3333
build:
3434
context: .
3535
volumes:
3636
- ./src:/usr/src/app
37-
command: sh -c "pip install ruff && ruff check --fix --exclude '/usr/src/app/awkde/'"
37+
command: sh -c "pip install ruff && ruff check --fix"
3838
network_mode: 'host'
3939

4040
streetview:

data/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
[tool.pylint]
2-
ignore = ["awkde/"]
32
output-format = "colorized,parseable"
43

54
[tool.pylint.'MESSAGES CONTROL']
65
disable = ["all"]
76
enable = ["duplicate-code"]
87

98
[tool.vulture]
10-
exclude = ["awkde/"]
119
make_whitelist = true
1210
# min_confidence = 80
1311
sort_by_size = true
1412

1513
[tool.mypy]
1614
ignore_missing_imports = true
17-
exclude = 'awkde/'
1815

1916
[tool.ruff]
2017
# Exclude a variety of commonly ignored directories, plus our own
2118
exclude = [
22-
"awkde/",
2319
".bzr",
2420
".direnv",
2521
".eggs",

data/src/Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7+
awkde = { git = 'https://github.com/mennthor/awkde.git', ref = '5b601fe4d92229d5deb8737fd121dce193bac552' }
78
jupyter = "*"
89
requests = "*"
910
pandas = "==2.2.2"

0 commit comments

Comments
 (0)