Skip to content

Commit

Permalink
Update to release 2023.10.20 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
arneso-ssb authored Oct 20, 2023
1 parent 5102f38 commit f0ac048
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 192 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/statisticsnorway/ssb-pypitemplate.git",
"commit": "38a7d47a6f3b02a41dbd8a70bc8cdef05ff550fc",
"commit": "dfaba34e671c80aa63c0a5945f23d9dcc3784e56",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==23.2.1
pip==23.3
nox==2023.4.22
nox-poetry==1.0.3
poetry==1.6.1
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
fail-fast: false
matrix:
include:
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.11", os: "ubuntu-latest", session: "safety" }
- { python: "3.10", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
Expand All @@ -25,9 +24,9 @@ jobs:
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "windows-latest", session: "tests" }
- { python: "3.11", os: "macos-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.11", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.11", os: "ubuntu-latest", session: "docs-build" }
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }

env:
NOXSESSION: ${{ matrix.session }}
Expand Down
12 changes: 0 additions & 12 deletions .readthedocs.yml

This file was deleted.

9 changes: 0 additions & 9 deletions codecov.yml

This file was deleted.

11 changes: 1 addition & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
raise SystemExit(dedent(message)) from None

package = "ssb_pypitemplate_instance"
python_versions = ["3.11", "3.10", "3.9"]
python_versions = ["3.10", "3.11", "3.9"]
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"pre-commit",
"safety",
"mypy",
"tests",
"typeguard",
Expand Down Expand Up @@ -139,14 +138,6 @@ def precommit(session: Session) -> None:
activate_virtualenv_in_precommit_hooks(session)


@session(python=python_versions[0])
def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
requirements = session.poetry.export_requirements()
session.install("safety")
session.run("safety", "check", "--full-report", f"--file={requirements}")


@session(python=python_versions)
def mypy(session: Session) -> None:
"""Type-check using mypy."""
Expand Down
262 changes: 109 additions & 153 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssb-pypitemplate-instance"
version = "0.0.1"
version = "0.1.0"
description = "SSB Pypitemplate Instance"
authors = ["Arne Sørli <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -28,7 +28,6 @@ pre-commit = ">=2.16.0"
pre-commit-hooks = ">=4.1.0"
ruff = ">=0.0.284"
pytest = ">=6.2.5"
safety = ">=1.10.3"
sphinx = ">=6.2.1"
sphinx-autobuild = ">=2021.3.14"
sphinx-autodoc-typehints = ">=1.24.0"
Expand Down

0 comments on commit f0ac048

Please sign in to comment.