Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into 84-npm-start-fails…
Browse files Browse the repository at this point in the history
…-on-m1+-apple-silicone-powered-macs
  • Loading branch information
hawkishpolicy committed Mar 20, 2024
2 parents 456359a + 8fe2660 commit 70954f6
Show file tree
Hide file tree
Showing 96 changed files with 34,450 additions and 33,788 deletions.
4 changes: 1 addition & 3 deletions .bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# If `tests` is empty, all tests are considered included.

tests:
# - B101
# - B102

skips:
# - B101 # skip "assert used" check since assertions are required in pytests
- B101 # skip "assert used" check since assertions are required in pytests
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ nvd-dump
minio-data
**/node_modules
**/.cache
./docs/node_modules
./docs/node_modules
2 changes: 2 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ jobs:
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Copy .env file
run: cp ../dev.env.example .env
- uses: actions/cache@v3
with:
path: ~/.cache/pip
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Files already tracked by Git are not affected.
# See: https://git-scm.com/docs/gitignore

# python
__pycache__
.mypy_cache
.python-version

# terraform
.terraform
Expand Down Expand Up @@ -50,4 +54,3 @@ minio-data
infrastructure/lambdas/security_headers.zip
*.hcl
.iac-data

4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repos:
args:
- --allow-missing-credentials
- id: detect-private-key
exclude: dev.env.example
- id: end-of-file-fixer
exclude: files/(issue|motd)
- id: mixed-line-ending
Expand All @@ -26,6 +27,7 @@ repos:
- --autofix
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: .*.snap

# Text file hooks
- repo: https://github.com/igorshubovych/markdownlint-cli
Expand Down Expand Up @@ -103,6 +105,8 @@ repos:
rev: v1.5.1
hooks:
- id: mypy
additional_dependencies:
- types-requests
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.docs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ COPY ./docs .
# Configure port used by Gatsby
ENV INTERNAL_STATUS_PORT=44475

CMD npm run codegen; npm run develop -- -H 0.0.0.0 --port 4000
CMD npm run codegen; npm run develop -- -H 0.0.0.0 --port 4000
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.

For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>
<http://creativecommons.org/publicdomain/zero/1.0/>
2 changes: 1 addition & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
dist
Dockerfile*
nvd-dump
coverage
coverage
2 changes: 1 addition & 1 deletion backend/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
engine-strict=true
engine-strict=true
4 changes: 2 additions & 2 deletions backend/.snyk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version: v1.22.1

# ignores vulnerabilities until expiry date; change duration by modifying expiry date

ignore:
ignore:
# ignore scrapy 2.x.x for 6 months.
SNYK-PYTHON-SCRAPY-40690:
SNYK-PYTHON-SCRAPY-40690:
- '*':
reason: No fix available up to version 2.11.0
expires: 2024-06-01T00:00:00.000Z
Expand Down
6 changes: 3 additions & 3 deletions backend/Dockerfile.pe
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ RUN git clone -b AL-staging-SQS https://github.com/cisagov/pe-reports.git && \

RUN python -m spacy download en_core_web_lg

# Create database.ini
RUN echo "[database]" > database.ini \
&& echo "user=$(cat db_user.txt)" >> database.ini \
# Create database.ini
RUN echo "[database]" > database.ini \
&& echo "user=$(cat db_user.txt)" >> database.ini \
&& echo "password=$(cat db_password.txt)" >> database.ini

COPY worker worker
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ WORKDIR /app

RUN apk add --no-cache curl unzip musl-dev

RUN curl -4LO http://github.com/Findomain/Findomain/releases/latest/download/findomain-linux.zip
RUN curl -4LO http://github.com/Findomain/Findomain/releases/latest/download/findomain-linux.zip
RUN unzip findomain-linux.zip && chmod +x findomain && cp findomain /usr/bin/findomain

RUN go mod init crossfeed-worker
Expand Down
Loading

0 comments on commit 70954f6

Please sign in to comment.