Skip to content

Commit

Permalink
Update python dev dependencies (major) (#5086)
Browse files Browse the repository at this point in the history
* Update python dev dependencies

* Update Python and fix warnings

* Fix references

---------

Co-authored-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
openverse-bot and obulat authored Oct 28, 2024
1 parent c99b4db commit 4315378
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 320 deletions.
241 changes: 82 additions & 159 deletions api/pdm.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ overrides = [
]
dev = [
"ipython >=8.22.1, <9",
"pgcli >=3.5.0, <4",
"pgcli >=4.1, <5",
"remote-pdb >=2.1.0, <3",
"setuptools >=69.5.1,<70",
"setuptools >=75.2,<76",
]
test = [
"factory-boy >=3.3.0, <4",
"fakeredis >=2.21.3, <3",
"freezegun >=1.4.0, <2",
"pook >=2, <3",
"pytest >=7.4.4, <8",
"pytest >=8.3.3, <9",
"pytest-django >=4.8.0, <5",
"pytest-pook>=1.0.0",
"pytest-raises >=0.11, <0.12",
"pytest-sugar >=0.9.7, <0.10",
"pytest-sugar >=1, <1.1",
"schemathesis >=3.25.6, <4",
]

Expand Down
280 changes: 150 additions & 130 deletions documentation/pdm.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ example, may not be able to implement all or any of these.
## How we will gather metrics

`django-prometheus` exports Prometheus metrics from a Django app and covers all
the information we'd want, at least to start off with.
the information we'd want, at least to start off with[^0].

There is not a real equivalent for Nuxt so we'll have to write our own either
from scratch or based on the ones that already exist. It would be nice to do
Expand All @@ -159,9 +159,9 @@ up-front that we can anticipate wanting monitors for.
- Note, queries are rarely that intuitive to write and have at least two
moving parts that dictate how the alarm works, the query and then the alarm
condition.
- Each view has a version of the above relative to request frequency. Views with
lower overall requests per second will require longer windows of time before
alerting. We could also configure something like
- Each view[^1] has a version of the above relative to request frequency. Views
with lower overall requests per second will require longer windows of time
before alerting. We could also configure something like
`view_request_count > threshold && view_5xx_count == view_request_count` to
filter out cases where only a small number of requests have occurred against a
view that happened to fail; though this is risky. I think in those cases we'd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ around what constitutes "sensitive content" for Openverse users.

### Maintenance of the list

The list be will be maintained by a subset of Openeverse contributors who are
The list be will be maintained by a subset of Openverse contributors who are
comfortable reading these strings, but also making judgments about which should
be included. This work may involve fielding pull requests and feedback from the
community, along with researching unfamiliar sensitive terms to determine their
Expand Down Expand Up @@ -174,7 +174,7 @@ work will always be based on the following assumptions:
will use other means to explicitly block or remove content. Removing
sensitive content can, in many cases, be its own form of harm. A quote From
the research paper "On the Dangers of Stochastic Parrots: Can Language Models
Be Too Big? 🦜"[1] illustrates this well:
Be Too Big? 🦜"[^1] illustrates this well:

“If we filter out the discourse of marginalized populations, we fail to
provide training data that reclaims slurs and otherwise describes
Expand Down
8 changes: 4 additions & 4 deletions documentation/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
{name = "Openverse Contributors", email = "openverse@wordpress.org"},
]

requires-python = "==3.11.*"
requires-python = "==3.12.*"
dependencies = []

[tool.pdm]
Expand All @@ -17,9 +17,9 @@ distribution = false
[tool.pdm.dev-dependencies]
dev = [
"furo >=2024.4.27, <2025",
"myst-parser[linkify] >=3.0.1, <4",
"sphinx >=7.3.7, <8",
"sphinxcontrib-mermaid >=0.9.2, <0.10",
"myst-parser[linkify] >=4, <5",
"sphinx >=8.1.3, <9",
"sphinxcontrib-mermaid >=1, <1.1",
"sphinx-autobuild >=2024.4.16, <2025",
"sphinx-copybutton >=0.5.2, <0.6",
"sphinx-notfound-page >=1.0.0, <2",
Expand Down
29 changes: 14 additions & 15 deletions indexer_worker/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions indexer_worker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ distribution = false
[tool.pdm.dev-dependencies]
dev = [
"ipython~=8.16",
"pytest~=7.4",
"pytest~=8.3",
"pytest-order~=1.1",
"pytest-sugar~=0.9",
"pytest-sugar~=1.0",
"remote-pdb~=2.1",
"pook~=2.0",
]
Expand Down

0 comments on commit 4315378

Please sign in to comment.