diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..faed046 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,9 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +sphinx: + configuration: docs/conf.py diff --git a/CHANGELOG b/CHANGELOG index 0d985f8..b810fa4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +0.9.1 (Aug 12, 2023) +-------------------- + +* Update Radon pinned dependency. +* Replace regular YAML loader with safe one: #46 + 0.9.0 (Feb 24, 2022) -------------------- diff --git a/requirements.txt b/requirements.txt index 56e1395..21f3513 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -radon>=4,<6 +radon>=4,<7 requests>=2.0,<3.0 PyYAML>=4.2b1,<7.0 diff --git a/xenon/__init__.py b/xenon/__init__.py index c509e25..a33631c 100644 --- a/xenon/__init__.py +++ b/xenon/__init__.py @@ -2,7 +2,7 @@ The latter is the entry point for the command line program. ''' -__version__ = '0.9.0' +__version__ = '0.9.1' import os import sys @@ -55,7 +55,7 @@ def parse_args(): setattr(args, attr, val.upper()) try: with open(args.config, 'r') as f: - yml = yaml.load(f) + yml = yaml.safe_load(f) except (getattr(__builtins__, 'FileNotFoundError', IOError), yaml.YAMLError): yml = {}