Skip to content

Commit

Permalink
make required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvDuseja committed Oct 23, 2023
1 parent 796ca2f commit 5f64888
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -73,16 +73,24 @@ 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]
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"
Expand Down

0 comments on commit 5f64888

Please sign in to comment.