Skip to content

Commit bf1e59b

Browse files
committed
Update dependencies and config
* Update Python version * Update OpenSearch Docker image in README * Minor configuration updates * Bump boto3 from 1.26.66 to 1.26.83 * Bump opensearch-py from 2.1.1 to 2.2.0 * Bump sentry-sdk from 1.15.0 to 1.16.0 * Bump mypy from 1.0.0 to 1.0.1 * Bump pydocstyle from 6.1.1 to 6.3.0
1 parent 7b9826e commit bf1e59b

File tree

8 files changed

+283
-255
lines changed

8 files changed

+283
-255
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ updates:
1111
schedule:
1212
interval: "daily"
1313

14-
# Maintain dependencies for npm
14+
# Maintain dependencies for application
1515
- package-ecosystem: "pip"
1616
directory: "/"
1717
schedule:
1818
interval: "daily"
19+
reviewers:
20+
- "MITLibraries/dataeng"
21+
22+
# Maintain dependencies for Docker
23+
- package-ecosystem: "docker"
24+
directory: "/"
25+
schedule:
26+
interval: "weekly"
27+
reviewers:
28+
- "MITLibraries/dataeng"

.github/pull-request-template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ Include links to Jira Software and/or Jira Service Management tickets here.
3131

3232
### Code Reviewer
3333

34-
- [ ] The commit message is clear and follows our guidelines
35-
(not just this pull request message)
34+
- [ ] The commit message is clear and follows our guidelines (not just this pull request message)
3635
- [ ] There are appropriate tests covering any new functionality
3736
- [ ] The documentation has been updated or is unnecessary
3837
- [ ] The changes have been verified

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10.9
1+
3.11.2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim as build
1+
FROM python:3.11-slim as build
22
WORKDIR /app
33
COPY . .
44

Pipfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name = "pypi"
66
[packages]
77
boto3 = "*"
88
click = "*"
9-
ijson = "*"
109
opensearch-py = "*"
1110
rich-click = "*"
1211
sentry-sdk = "*"
@@ -15,19 +14,19 @@ smart-open = {extras = ["s3"], version = "*"}
1514
[dev-packages]
1615
bandit = "*"
1716
black = "*"
17+
boto3-stubs = "*"
1818
coverage = "*"
1919
coveralls = "*"
2020
freezegun = "*"
21+
ijson = "*"
2122
mypy = "*"
23+
pydocstyle = "*"
2224
pylama = {extras = ["all"], version = "*"}
2325
pytest = "*"
2426
vcrpy = "*"
25-
# pydocstyle added and pinned until pylama is updated to work with 6.2+, see
26-
# https://github.com/klen/pylama/issues/232
27-
pydocstyle = "==6.1.1"
2827

2928
[requires]
30-
python_version = "3.10"
29+
python_version = "3.11"
3130

3231
[scripts]
3332
tim = "python -c \"from tim.cli import main; main(prog_name='tim')\""

Pipfile.lock

Lines changed: 263 additions & 236 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A local OpenSearch instance can be started for development purposes by running:
3131
``` bash
3232
$ docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" \
3333
-e "plugins.security.disabled=true" \
34-
opensearchproject/opensearch:1.3.3
34+
opensearchproject/opensearch:2.3.0
3535
```
3636

3737
To confirm the instance is up, run `pipenv run tim -u localhost ping`.

setup.cfg

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
disallow_incomplete_defs = True
33
disallow_untyped_defs = True
44

5-
[mypy-boto3.*]
6-
ignore_missing_imports = True
7-
85
[mypy-ijson.*]
96
ignore_missing_imports = True
107

@@ -16,15 +13,11 @@ ignore_missing_imports = True
1613

1714
[pylama]
1815
ignore = C0114,C0116,D100,D103,W0012
19-
linters = eradicate,isort,mccabe,pycodestyle,pydocstyle,pyflakes,pylint
16+
linters = eradicate,isort,mccabe,pycodestyle,pyflakes,pylint
2017
max_line_length = 90
2118

2219
[pylama:isort]
2320
profile = black
2421

2522
[pylama:pydocstyle]
2623
convention = pep257
27-
28-
[tool:pytest]
29-
log_level = DEBUG
30-

0 commit comments

Comments
 (0)