Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 6f95b85

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #283 from staticdev/hotfix-deps
Dependencies patch
2 parents 1db2389 + 1dcd409 commit 6f95b85

File tree

7 files changed

+116
-137
lines changed

7 files changed

+116
-137
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ ignore = E203,E501,W503,C901,B950
44
max-line-length = 80
55
max-complexity = 10
66
docstring-convention = google
7-
per-file-ignores = tests/*:S101
7+
per-file-ignores = tests/*:S101, S105
88
; darglint
99
strictness = short

.github/workflows/constraints.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pip==20.3.3
2-
nox==2020.8.22
3-
nox-poetry==0.5.0
4-
poetry==1.1.4
5-
virtualenv==20.1.0
2+
nox==2020.12.31
3+
nox-poetry==0.7.0
4+
poetry==1.0.10
5+
virtualenv==20.3.1

.github/workflows/tests.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- { python-version: 3.8, os: ubuntu-latest, session: "pre-commit" }
16-
- { python-version: 3.8, os: ubuntu-latest, session: "safety" }
15+
- { python-version: 3.9, os: ubuntu-latest, session: "pre-commit" }
16+
- { python-version: 3.9, os: ubuntu-latest, session: "safety" }
17+
- { python-version: 3.9, os: ubuntu-latest, session: "mypy" }
1718
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
1819
- { python-version: 3.7, os: ubuntu-latest, session: "mypy" }
20+
- { python-version: 3.9, os: ubuntu-latest, session: "tests" }
1921
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
2022
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
21-
- { python-version: 3.8, os: windows-latest, session: "tests" }
22-
- { python-version: 3.8, os: macos-latest, session: "tests" }
23-
# - { python-version: 3.8, os: ubuntu-latest, session: "typeguard" }
24-
- { python-version: 3.8, os: ubuntu-latest, session: "xdoctest" }
25-
- { python-version: 3.8, os: ubuntu-latest, session: "docs-build" }
23+
# - { python-version: 3.9, os: windows-latest, session: "tests" }
24+
- { python-version: 3.9, os: macos-latest, session: "tests" }
25+
# - { python-version: 3.9, os: ubuntu-latest, session: "typeguard" }
26+
- { python-version: 3.9, os: ubuntu-latest, session: "xdoctest" }
27+
- { python-version: 3.9, os: ubuntu-latest, session: "docs-build" }
2628

2729
env:
2830
NOXSESSION: ${{ matrix.session }}
@@ -100,10 +102,10 @@ jobs:
100102
- name: Check out the repository
101103
uses: actions/[email protected]
102104

103-
- name: Set up Python 3.8
105+
- name: Set up Python 3.9
104106
uses: actions/[email protected]
105107
with:
106-
python-version: 3.8
108+
python-version: 3.9
107109

108110
- name: Upgrade pip
109111
run: |

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ coverage:
66
target: "80"
77
patch:
88
default:
9-
target: "80"
9+
target: "0"

noxfile.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010

1111

1212
package = "django_pagination_bootstrap"
13-
python_versions = ["3.8", "3.7", "3.6"]
13+
python_versions = ["3.9", "3.8", "3.7"]
1414
nox.options.sessions = (
1515
"pre-commit",
1616
"safety",
1717
"mypy",
1818
"tests",
1919
"typeguard",
20+
"xdoctest",
2021
"docs-build",
2122
)
2223

@@ -72,7 +73,7 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
7273
hook.write_text("\n".join(lines))
7374

7475

75-
@nox.session(name="pre-commit", python="3.8")
76+
@nox.session(name="pre-commit", python="3.9")
7677
def precommit(session: Session) -> None:
7778
"""Lint using pre-commit."""
7879
args = session.posargs or ["run", "--all-files", "--show-diff-on-failure"]
@@ -94,7 +95,7 @@ def precommit(session: Session) -> None:
9495
activate_virtualenv_in_precommit_hooks(session)
9596

9697

97-
@nox.session(python="3.8")
98+
@nox.session(python="3.9")
9899
def safety(session: Session) -> None:
99100
"""Scan dependencies for insecure packages."""
100101
requirements = nox_poetry.export_requirements(session)
@@ -121,7 +122,8 @@ def tests(session: Session) -> None:
121122
try:
122123
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
123124
finally:
124-
session.notify("coverage")
125+
if session.interactive:
126+
session.notify("coverage")
125127

126128

127129
@nox.session
@@ -156,7 +158,7 @@ def xdoctest(session: Session) -> None:
156158
session.run("python", "-m", "xdoctest", package, *args)
157159

158160

159-
@nox.session(name="docs-build", python="3.8")
161+
@nox.session(name="docs-build", python="3.9")
160162
def docs_build(session: Session) -> None:
161163
"""Build the documentation."""
162164
args = session.posargs or ["docs", "docs/_build"]
@@ -170,7 +172,7 @@ def docs_build(session: Session) -> None:
170172
session.run("sphinx-build", *args)
171173

172174

173-
@nox.session(python="3.8")
175+
@nox.session(python="3.9")
174176
def docs(session: Session) -> None:
175177
"""Build and serve the documentation with live reloading on file changes."""
176178
args = session.posargs or ["--open-browser", "docs", "docs/_build"]

0 commit comments

Comments
 (0)