diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9fa0dab..decb8757 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: rev: v0.0.292 hooks: - id: ruff - args: [--fix, --ignore, "D,E501"] + args: [--fix, --ignore, "D,E501", "--show-fixes"] - repo: https://github.com/psf/black rev: 23.9.1 @@ -39,3 +39,9 @@ repos: - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.0.3 + hooks: + - id: prettier + diff --git a/pyproject.toml b/pyproject.toml index 5b44cc80..6590b899 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] # AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD! -requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5", "wheel"] +requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] @@ -73,9 +73,13 @@ isort.split-on-trailing-comma = false "tests/*" = ["D", "E501"] # TODO - remove E501 [tool.pytest.ini_options] -addopts = "--color=yes -p no:warnings --import-mode=importlib --durations=30" +minversion = "6.0" +addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"] +xfail_strict = true +filterwarnings = ["error"] +log_cli_level = "info" testpaths = [ - "tests", + "tests", ] [tool.mypy] @@ -83,6 +87,10 @@ ignore_missing_imports = true namespace_packages = true explicit_package_bases = true no_implicit_optional = false +strict = true +show_error_codes = true +enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] +warn_unreachable = true [tool.codespell] ignore-words-list = "nd"