Skip to content

Commit

Permalink
Dependency updates: remove safety, typeguard, run poetry lock and update
Browse files Browse the repository at this point in the history
  • Loading branch information
anschweitzer committed Aug 6, 2024
1 parent 453cf04 commit 2e96076
Show file tree
Hide file tree
Showing 4 changed files with 318 additions and 539 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ repos:
language: system
types: [text]
stages: [commit, push, manual]
# - id: flake8
# name: flake8
# entry: flake8
# language: system
# types: [python]
# require_serial: true
# args: [--darglint-ignore-regex, .*]
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
args: [--darglint-ignore-regex, .*]
- id: isort
name: isort
entry: isort
Expand Down
24 changes: 3 additions & 21 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
from textwrap import dedent

import nox
import nox # noqa


try:
Expand All @@ -28,10 +28,8 @@
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"pre-commit",
# "safety",
"mypy",
"tests",
# "typeguard",
"xdoctest",
"docs-build",
)
Expand Down Expand Up @@ -126,8 +124,8 @@ def precommit(session: Session) -> None:
"flake8",
"flake8-bandit",
"flake8-bugbear",
# "flake8-docstrings",
# "flake8-rst-docstrings",
"flake8-docstrings",
"flake8-rst-docstrings",
"isort",
"pep8-naming",
"pre-commit",
Expand All @@ -139,14 +137,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 Expand Up @@ -183,14 +173,6 @@ def coverage(session: Session) -> None:
session.run("coverage", *args)


@session(python=python_versions[0])
def typeguard(session: Session) -> None:
"""Runtime type checking using Typeguard."""
session.install(".")
session.install("pytest", "typeguard", "pygments")
session.run("pytest", f"--typeguard-packages={package}", *session.posargs)


@session(python=python_versions)
def xdoctest(session: Session) -> None:
"""Run examples with xdoctest."""
Expand Down
Loading

0 comments on commit 2e96076

Please sign in to comment.