Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled biweekly dependency update for week 38 #1176

Merged
merged 17 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
tox-env: ["black", "lint", "docs"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.8"
python: "3.9"

sphinx:
configuration: docs/conf.py
Expand Down
4 changes: 4 additions & 0 deletions example/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Meta:

class AuthorFactory(factory.django.DjangoModelFactory):
class Meta:
skip_postgeneration_save = True
model = Author

name = factory.LazyAttribute(lambda x: faker.name())
Expand All @@ -49,6 +50,7 @@ class Meta:
class AuthorBioFactory(factory.django.DjangoModelFactory):
class Meta:
model = AuthorBio
skip_postgeneration_save = True

author = factory.SubFactory(AuthorFactory)
body = factory.LazyAttribute(lambda x: faker.text())
Expand All @@ -69,6 +71,7 @@ class Meta:
class EntryFactory(factory.django.DjangoModelFactory):
class Meta:
model = Entry
skip_postgeneration_save = True

headline = factory.LazyAttribute(lambda x: faker.sentence(nb_words=4))
body_text = factory.LazyAttribute(lambda x: faker.text())
Expand Down Expand Up @@ -130,6 +133,7 @@ class Meta:
class CompanyFactory(factory.django.DjangoModelFactory):
class Meta:
model = Company
skip_postgeneration_save = True

name = factory.LazyAttribute(lambda x: faker.company())
current_project = factory.SubFactory(ArtProjectFactory)
Expand Down
1 change: 1 addition & 0 deletions example/tests/__snapshots__/test_errors.ambr
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# serializer version: 1
# name: test_first_level_attribute_error
dict({
'errors': list([
Expand Down
1 change: 1 addition & 0 deletions example/tests/__snapshots__/test_openapi.ambr
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# serializer version: 1
# name: test_delete_request
'''
{
Expand Down
1 change: 0 additions & 1 deletion example/tests/integration/test_polymorphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def test_polymorphism_on_included_relations(single_company, client):
for rel in content["data"]["relationships"]["futureProjects"]["data"]
} == {"researchProjects", "artProjects"}
assert {x.get("type") for x in content.get("included")} == {
"artProjects",
"artProjects",
"researchProjects",
}, "Detail included types are incorrect"
Expand Down
8 changes: 4 additions & 4 deletions requirements/requirements-codestyle.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
black==23.3.0
flake8==6.0.0
flake8-bugbear==23.3.23
flake8-isort==6.0.0
black==23.9.1
flake8==6.1.0
flake8-bugbear==23.9.16
flake8-isort==6.1.0
isort==5.12.0
4 changes: 2 additions & 2 deletions requirements/requirements-documentation.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
recommonmark==0.7.1
Sphinx==6.1.3
sphinx_rtd_theme==1.2.0
Sphinx==7.2.6
sphinx_rtd_theme==1.3.0
4 changes: 2 additions & 2 deletions requirements/requirements-optionals.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django-filter==23.1
django-filter==23.3
django-polymorphic==3.1.0
pyyaml==6.0
pyyaml==6.0.1
uritemplate==4.1.1
10 changes: 5 additions & 5 deletions requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
factory-boy==3.2.1
Faker==18.4.0
pytest==7.3.1
pytest-cov==4.0.0
factory-boy==3.3.0
Faker==19.6.1
pytest==7.4.2
pytest-cov==4.1.0
pytest-django==4.5.2
pytest-factoryboy==2.5.1
syrupy==3.0.6
syrupy==4.5.0
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ filterwarnings =
# can be removed once fixed in django polymorphic
ignore:pkg_resources is deprecated as an API
ignore:Deprecated call to `pkg_resource
# Django filter schema generation. Can be removed once we remove
# schema support
ignore:Built-in schema generation is deprecated.
testpaths =
example
tests
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ commands =
pytest --cov --no-cov-on-fail --cov-report xml {posargs}

[testenv:black]
basepython = python3.8
basepython = python3.9
deps =
-rrequirements/requirements-codestyle.txt
commands = black --check .

[testenv:lint]
basepython = python3.8
basepython = python3.9
deps =
-rrequirements/requirements-codestyle.txt
-rrequirements/requirements-testing.txt
Expand All @@ -43,7 +43,7 @@ commands = flake8

[testenv:docs]
# keep in sync with .readthedocs.yml
basepython = python3.8
basepython = python3.9
deps =
-rrequirements/requirements-optionals.txt
-rrequirements/requirements-documentation.txt
Expand Down
Loading