Skip to content

Commit

Permalink
Make all Python references point to 3.11 by default, fix citrix tests…
Browse files Browse the repository at this point in the history
…, bump lock file, remove selective files from black
  • Loading branch information
itdependsnetworks committed Jul 22, 2023
1 parent d3da14d commit f63c983
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 238 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
env:
PYTHON_VER: "${{ matrix.python-version }}"
steps:
Expand Down
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mkdocs==1.3.1
mkdocs==1.4.3
# Material for MkDocs theme
mkdocs-material==8.3.9
mkdocs-material==8.5.8
# Render custom markdown for version added/changed/remove notes
mkdocs-version-annotations==1.0.0
# Automatic documentation from sources, for MkDocs
mkdocstrings==0.19
mkdocstrings-python==0.7.1
mkdocstrings==0.22.0
mkdocstrings-python==1.1.2
1 change: 1 addition & 0 deletions netutils/config/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def build_config_relationship(self) -> t.List[ConfigLine]:
class BaseSpaceConfigParser(BaseConfigParser):
"""Base parser class for config syntax that demarcates using spaces/indentation."""

# TODO: Review if this can be removed
# pylint: disable=abstract-method

comment_chars = ["!"]
Expand Down
3 changes: 2 additions & 1 deletion netutils/password.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Functions for working with Passwords."""

import crypt
# TODO: Swap out crypt prior to py3.13
import crypt # pylint: disable=deprecated-module
import random
import secrets
import string
Expand Down
467 changes: 242 additions & 225 deletions poetry.lock

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
include = [
"LICENSE",
Expand Down Expand Up @@ -44,15 +45,15 @@ sphinx-rtd-theme = "*"
toml = "*"
yamllint = "*"
mypy = "^0.961"
mkdocs = "1.3.1"
mkdocs-material = "8.3.9"
mkdocstrings = "0.19"
mkdocstrings-python = "0.7.1"
mkdocs = "1.4.3"
mkdocs-material = "8.5.8"
mkdocstrings = "0.22.0"
mkdocstrings-python = "1.1.2"
mkdocs-version-annotations = "1.0.0"

[tool.black]
line-length = 120
target-version = ['py37']
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
(
Expand All @@ -69,6 +70,8 @@ exclude = '''
| dist
| data_files # This is ran via black within the flatbot process, redundant and slow otherwise
)/
| sros_full_received.py # TODO: Taking very long, should look to fix
| iosxr_full_received.py # TODO: Taking very long, should look to fix
| settings.py # This is where you define files that should not be stylized by black
# the root of the project
)
Expand Down Expand Up @@ -100,7 +103,7 @@ testpaths = "tests/"
addopts = "-vv --doctest-modules -p no:warnings --ignore-glob='*mock*'"

[tool.mypy]
python_version = 3.8
python_version = 3.11
ignore_errors = false
disallow_untyped_calls = true
disallow_untyped_defs = true
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def is_truthy(arg):
TOOL_CONFIG = PYPROJECT_CONFIG["tool"]["poetry"]

# Can be set to a separate Python version to be used for launching or building image
PYTHON_VER = os.getenv("PYTHON_VER", "3.10")
PYTHON_VER = os.getenv("PYTHON_VER", "3.11")
# Name of the docker image/image
IMAGE_NAME = os.getenv("IMAGE_NAME", TOOL_CONFIG["name"])
# Tag for the image
Expand Down

0 comments on commit f63c983

Please sign in to comment.