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

Commit

Permalink
Merge pull request #283 from staticdev/hotfix-deps
Browse files Browse the repository at this point in the history
Dependencies patch
  • Loading branch information
Thiago C. D'Ávila authored Jan 14, 2021
2 parents 1db2389 + 1dcd409 commit 6f95b85
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ignore = E203,E501,W503,C901,B950
max-line-length = 80
max-complexity = 10
docstring-convention = google
per-file-ignores = tests/*:S101
per-file-ignores = tests/*:S101, S105
; darglint
strictness = short
8 changes: 4 additions & 4 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pip==20.3.3
nox==2020.8.22
nox-poetry==0.5.0
poetry==1.1.4
virtualenv==20.1.0
nox==2020.12.31
nox-poetry==0.7.0
poetry==1.0.10
virtualenv==20.3.1
20 changes: 11 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
fail-fast: false
matrix:
include:
- { python-version: 3.8, os: ubuntu-latest, session: "pre-commit" }
- { python-version: 3.8, os: ubuntu-latest, session: "safety" }
- { python-version: 3.9, os: ubuntu-latest, session: "pre-commit" }
- { python-version: 3.9, os: ubuntu-latest, session: "safety" }
- { python-version: 3.9, os: ubuntu-latest, session: "mypy" }
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
- { python-version: 3.7, os: ubuntu-latest, session: "mypy" }
- { python-version: 3.9, os: ubuntu-latest, session: "tests" }
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
- { python-version: 3.8, os: windows-latest, session: "tests" }
- { python-version: 3.8, os: macos-latest, session: "tests" }
# - { python-version: 3.8, os: ubuntu-latest, session: "typeguard" }
- { python-version: 3.8, os: ubuntu-latest, session: "xdoctest" }
- { python-version: 3.8, os: ubuntu-latest, session: "docs-build" }
# - { python-version: 3.9, os: windows-latest, session: "tests" }
- { python-version: 3.9, os: macos-latest, session: "tests" }
# - { python-version: 3.9, os: ubuntu-latest, session: "typeguard" }
- { python-version: 3.9, os: ubuntu-latest, session: "xdoctest" }
- { python-version: 3.9, os: ubuntu-latest, session: "docs-build" }

env:
NOXSESSION: ${{ matrix.session }}
Expand Down Expand Up @@ -100,10 +102,10 @@ jobs:
- name: Check out the repository
uses: actions/[email protected]

- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: 3.8
python-version: 3.9

- name: Upgrade pip
run: |
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ coverage:
target: "80"
patch:
default:
target: "80"
target: "0"
14 changes: 8 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@


package = "django_pagination_bootstrap"
python_versions = ["3.8", "3.7", "3.6"]
python_versions = ["3.9", "3.8", "3.7"]
nox.options.sessions = (
"pre-commit",
"safety",
"mypy",
"tests",
"typeguard",
"xdoctest",
"docs-build",
)

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


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


@nox.session(python="3.8")
@nox.session(python="3.9")
def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
requirements = nox_poetry.export_requirements(session)
Expand All @@ -121,7 +122,8 @@ def tests(session: Session) -> None:
try:
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
finally:
session.notify("coverage")
if session.interactive:
session.notify("coverage")


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


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


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

0 comments on commit 6f95b85

Please sign in to comment.