Skip to content

Commit

Permalink
Merge branch 'lint/update' of https://github.com/Borda/pyDeprecate in…
Browse files Browse the repository at this point in the history
…to lint/update
  • Loading branch information
Borda committed Apr 6, 2024
2 parents 3b07fa5 + aa3dc48 commit b9db7b8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 58 deletions.
109 changes: 51 additions & 58 deletions pyproject.toml
Expand Up @@ -4,71 +4,15 @@ description-file = "README.md"

[build-system]
requires = [
"setuptools",
"wheel",
"setuptools",
"wheel",
]


[tool.check-manifest]
ignore = [
"*.yml",
".github",
".github/*"
]


[tool.pytest.ini_options]
norecursedirs = [
".git",
".github",
"dist",
"build",
"docs",
]
addopts = [
"--strict-markers",
"--doctest-modules",
"--color=yes",
"--disable-pytest-warnings",
]
#filterwarnings = ["error::FutureWarning"]
xfail_strict = true
junit_duration_report = "call"

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pass",
]
[tool.coverage.run]
parallel = true
relative_files = true


[tool.codespell]
#skip = '*.py'
quiet-level = 3
# comma separated list of words; waiting for:
# https://github.com/codespell-project/codespell/issues/2839#issuecomment-1731601603
# also adding links until they ignored by its: nature
# https://github.com/codespell-project/codespell/issues/2243#issuecomment-1732019960
#ignore-words-list = ""


[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true


[tool.black]
# https://github.com/psf/black
line-length = 120
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"


[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down Expand Up @@ -113,6 +57,55 @@ convention = "google"
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

[tool.codespell]
#skip = '*.py'
quiet-level = 3
# comma separated list of words; waiting for:
# https://github.com/codespell-project/codespell/issues/2839#issuecomment-1731601603
# also adding links until they ignored by its: nature
# https://github.com/codespell-project/codespell/issues/2243#issuecomment-1732019960
#ignore-words-list = ""

[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
wrap-summaries = 119
wrap-descriptions = 120
blank = true

[tool.check-manifest]
ignore = [
"*.yml",
".github",
".github/*"
]

[tool.pytest.ini_options]
norecursedirs = [
".git",
".github",
"dist",
"build",
"docs",
]
addopts = [
"--strict-markers",
"--doctest-modules",
"--color=yes",
"--disable-pytest-warnings",
]
#filterwarnings = ["error::FutureWarning"]
xfail_strict = true
junit_duration_report = "call"

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pass",
]
[tool.coverage.run]
parallel = true
relative_files = true

[tool.mypy]
files = ["deprecate"]
Expand Down
1 change: 1 addition & 0 deletions setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Copyright (C) 2020-2023 Jiri Borovec <...>."""

import os
from importlib.util import module_from_spec, spec_from_file_location

Expand Down

0 comments on commit b9db7b8

Please sign in to comment.