From 7c2e1d362934cc548531a170fb13d1d3a7d4e42e Mon Sep 17 00:00:00 2001 From: staticdev Date: Sat, 20 Jun 2020 12:25:52 -0300 Subject: [PATCH] Add pygments --- noxfile.py | 2 +- poetry.lock | 18 +++++++++++++++--- pyproject.toml | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 9d9a437..1870dd1 100644 --- a/noxfile.py +++ b/noxfile.py @@ -142,7 +142,7 @@ def mypy(session: Session) -> None: def tests(session: Session) -> None: """Run the test suite.""" install_package(session) - install(session, "coverage[toml]", "pytest", "pytest_mock") + install(session, "coverage[toml]", "pygments", "pytest", "pytest_mock") try: session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs) finally: diff --git a/poetry.lock b/poetry.lock index ab60446..f8cfd3f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -111,7 +111,7 @@ requests = ">=2.7.9" [[package]] category = "dev" description = "Cross-platform colored terminal text." -marker = "platform_system == \"Windows\" or sys_platform == \"win32\"" +marker = "sys_platform == \"win32\" or platform_system == \"Windows\"" name = "colorama" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -424,6 +424,14 @@ optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" version = "2.2.0" +[[package]] +category = "dev" +description = "Pygments is a syntax highlighting package written in Python." +name = "pygments" +optional = false +python-versions = ">=3.5" +version = "2.6.1" + [[package]] category = "dev" description = "Python parsing module" @@ -477,7 +485,7 @@ category = "dev" description = "YAML parser and emitter for Python" name = "pyyaml" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = "*" version = "5.3.1" [[package]] @@ -650,7 +658,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["jaraco.itertools", "func-timeout"] [metadata] -content-hash = "ca9ac69f0d3f192acf5535ac0d47a4db99ab230bab5d567742ba7089aa7bb408" +content-hash = "3b82210346cf1132f0c65a4ffdeef4368788953d8bb0c6503af102cf26343de1" python-versions = "^3.7" [metadata.files] @@ -844,6 +852,10 @@ pyflakes = [ {file = "pyflakes-2.2.0-py2.py3-none-any.whl", hash = "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92"}, {file = "pyflakes-2.2.0.tar.gz", hash = "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8"}, ] +pygments = [ + {file = "Pygments-2.6.1-py3-none-any.whl", hash = "sha256:ff7a40b4860b727ab48fad6360eb351cc1b33cbf9b15a0f689ca5353e9463324"}, + {file = "Pygments-2.6.1.tar.gz", hash = "sha256:647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44"}, +] pyparsing = [ {file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"}, {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, diff --git a/pyproject.toml b/pyproject.toml index b7ee66c..3580a69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ codecov = "^2.1.7" pytest-mock = "^3.1.1" typeguard = "^2.9.1" pre-commit = "^2.5.1" +pygments = "^2.6.1" [tool.poetry.scripts] toml-validator = "toml_validator.__main__:main"