From 992464fd9200c7ed58b675a51920972f405688d0 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Thu, 11 May 2023 08:05:12 -0500 Subject: [PATCH] updates --- {{ package_name }}/README.md | 10 +--- {{ package_name }}/pyproject.toml.jinja | 65 ++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 10 deletions(-) diff --git a/{{ package_name }}/README.md b/{{ package_name }}/README.md index 41df047..98deda9 100644 --- a/{{ package_name }}/README.md +++ b/{{ package_name }}/README.md @@ -1,14 +1,6 @@ # {{ package_title }} -[![PyPI - Version](https://img.shields.io/pypi/v/{{ package_name }}.svg)](https://pypi.org/project/{{ package_name }}) -[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/{{ package_name }}.svg)](https://pypi.org/project/{{ package_name }}) - ---- - -**Table of Contents** - -- [Installation](#installation) -- [License](#license) +{{ description }} ## Installation diff --git a/{{ package_name }}/pyproject.toml.jinja b/{{ package_name }}/pyproject.toml.jinja index 145c53e..0e5026f 100644 --- a/{{ package_name }}/pyproject.toml.jinja +++ b/{{ package_name }}/pyproject.toml.jinja @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "{{ package_name }}" -description = 'A rich terminal report for coveragepy.' +description = '{{ description }}' readme = "README.md" requires-python = ">=3.7" license = "MIT" @@ -94,3 +94,66 @@ testpaths = ["tests"] [tool.coverage_rich] fail-under=80 + +[tool.ruff] + +ignore = ["E501"] +target-version = "py37" + +[tool.ruff.per-file-ignores] +'tests/**/*.py' = ['S101'] + + +select = [ +"F", # Pyflakes +"E", # Error +"W", # Warning +"C90", # mccabe +"I", # isort +"N", # pep8-naming +# "D", # pydocstyle +"UP", # pyupgrade +"YTT", # flake8-2020 +"ANN", # flake8-annotations +"S", # flake8-bandit +"BLE", # flake8-blind-except +"FBT", # flake8-boolean-trap +"B", # flake8-bugbear +"A", # flake8-builtins +"COM", # flake8-commas +"C4", # flake8-comprehensions +"DTZ", # flake8-datetimez +"T10", # flake8-debugger +"DJ", # flake8-django +"EM", # flake8-errmsg +"EXE", # flake8-executable +"ISC", # flake8-implicit-str-concat +"ICN", # flake8-import-conventions +"G", # flake8-logging-format +"INP", # flake8-no-pep420 +"PIE", # flake8-pie +"T20", # flake8-print +"PYI", # flake8-pyi +"PT", # flake8-pytest-style +"Q", # flake8-quotes +"RSE", # flake8-raise +"RET", # flake8-return +"SLF", # flake8-self +"SIM", # flake8-simplify +"TID", # flake8-tidy-imports +"TCH", # flake8-type-checking +# "INT", # flake8-gettext +"ARG", # flake8-unused-arguments +"PTH", # flake8-use-pathlib +"ERA", # eradicate +"PD", # pandas-vet +"PGH", # pygrep-hooks +"PL", # Pylint +"PLC", # Convention +"PLE", # Error +"PLR", # Refactor +"PLW", # Warning +"TRY", # tryceratops +"NPY", # NumPy-specific rules +"RUF", # Ruff-specific rules +]