-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #862 from CodeForPhilly/staging
Merge staging into main
- Loading branch information
Showing
21 changed files
with
3,481 additions
and
3,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ data.env | |
.idea | ||
data/src/tmp | ||
.DS_Store | ||
/data/src/local_outputs/ | ||
|
||
## App | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
repos: | ||
# Python hooks | ||
- repo: local | ||
hooks: | ||
# Ruff for Python linting | ||
- id: ruff | ||
name: ruff (Python linting) | ||
entry: ruff check --fix | ||
language: python | ||
types_or: [python, pyi, jupyter] | ||
files: \.py$ | ||
exclude: ^data/src/awkde/ | ||
|
||
# Ruff for Python formatting | ||
- id: ruff-format | ||
name: ruff-format (Python formatting) | ||
entry: ruff format | ||
language: python | ||
types_or: [python, pyi, jupyter] | ||
files: \.py$ | ||
exclude: ^data/src/awkde/ | ||
|
||
# Dependency checks for Python | ||
- id: check-python-dependencies | ||
name: Check Python dependencies | ||
entry: bash -c 'cd data/src && pipenv check --bare --quiet || (echo "Python dependencies check failed" && exit 1)' | ||
language: system | ||
files: ^data/src/Pipfile$ | ||
|
||
# JavaScript hooks | ||
- repo: local | ||
hooks: | ||
# Formatting with Prettier | ||
- id: prettier | ||
name: Prettier (Code formatting) | ||
entry: npm run format | ||
language: node | ||
files: \.(js|jsx|ts|tsx)$ | ||
|
||
# Linting with ESLint | ||
- id: eslint | ||
name: ESLint (JavaScript linting) | ||
entry: npm run lint | ||
language: node | ||
files: \.(js|jsx|ts|tsx)$ | ||
|
||
# Dependency checks for Node.js | ||
- id: npm-audit | ||
name: Check Node.js dependencies | ||
entry: npm audit | ||
language: node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Use the existing main container image | ||
FROM vacant-lots-proj:latest | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the fetch_and_save_data.py script to the container | ||
COPY src/fetch_and_save_data.py ./ | ||
|
||
# Ensure Pipenv and dependencies are installed | ||
RUN pipenv install --ignore-pipfile --dev | ||
|
||
# Set the default command to run the script with pipenv and python | ||
ENTRYPOINT ["sh", "-c", "pipenv run python ./fetch_and_save_data.py \"$@\"", "--"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ pytest = "*" | |
networkx = "*" | ||
libpysal = "*" | ||
jenkspy = "*" | ||
pyarrow = "*" | ||
|
||
[dev-packages] | ||
|
||
|
Oops, something went wrong.