From f352f009222bc5f864d43f8036c318bd18868105 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Fri, 26 Apr 2024 16:20:09 +0200 Subject: [PATCH] Apply suggestions --- gso/products/product_types/iptrunk.py | 4 ++-- pyproject.toml | 9 +++++++++ requirements.txt | 1 - tox.ini | 3 ++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gso/products/product_types/iptrunk.py b/gso/products/product_types/iptrunk.py index 6f6b85b1..9d71188e 100644 --- a/gso/products/product_types/iptrunk.py +++ b/gso/products/product_types/iptrunk.py @@ -29,7 +29,7 @@ class Iptrunk(IptrunkProvisioning, lifecycle=[SubscriptionLifecycle.ACTIVE]): class ImportedIptrunkInactive(SubscriptionModel, is_base=True): - """An IP trunk that is inactive.""" + """An imported IP trunk that is inactive.""" iptrunk: IptrunkBlockInactive @@ -37,6 +37,6 @@ class ImportedIptrunkInactive(SubscriptionModel, is_base=True): class ImportedIptrunk( ImportedIptrunkInactive, lifecycle=[SubscriptionLifecycle.PROVISIONING, SubscriptionLifecycle.ACTIVE] ): - """An IP trunk that is active.""" + """An imported IP trunk that is active.""" iptrunk: IptrunkBlock diff --git a/pyproject.toml b/pyproject.toml index 5162b2ca..34c2cc10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,3 +104,12 @@ ban-relative-imports = "all" [tool.ruff.isort] known-third-party = ["pydantic", "migrations"] known-first-party = ["test", "docs"] + +[tool.pytest.ini_options] +markers = [ + "noautofixt" +] +filterwarnings = [ + "ignore", + "default:::gso", +] diff --git a/requirements.txt b/requirements.txt index eea6234f..73bb46ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,6 @@ pycountry==22.3.5 pynetbox==7.2.0 celery-redbeat==2.1.1 celery==5.3.4 -typer==0.7.0 # Test and linting dependencies celery-stubs==0.1.3 diff --git a/tox.ini b/tox.ini index de7627e2..60771640 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,8 @@ envlist = py311 [pytest] -markers = workflow +markers = "workflow,noautofixt" +filterwarnings = "ignore,default:::gso" [testenv] passenv = DATABASE_URI_TEST,SKIP_ALL_TESTS,ENVIRONMENT_IGNORE_MUTATION_DISABLED -- GitLab