Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	pyproject.toml
  • Loading branch information
jaraco committed Aug 21, 2024
2 parents 17572fa + f1350e4 commit 6abfbfc
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ disable_warnings =
[report]
show_missing = True
exclude_also =
# jaraco/skeleton#97
@overload
# Exclude common false positives per
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
# Ref jaraco/skeleton#97 and jaraco/skeleton#135
class .*\bProtocol\):
if TYPE_CHECKING:
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
rev: v0.5.6
hooks:
- id: ruff
- id: ruff-format
15 changes: 12 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[mypy]
ignore_missing_imports = True
# required to support namespace packages
# https://github.com/python/mypy/issues/14057
# Is the project well-typed?
strict = False

# Early opt-in even when strict = False
warn_unused_ignores = True
warn_redundant_casts = True
enable_error_code = ignore-without-code

# Support namespace packages per https://github.com/python/mypy/issues/14057
explicit_package_bases = True

# Disable overload-overlap due to many false-positives
disable_error_code = overload-overlap
35 changes: 26 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,11 @@ Source = "https://github.com/jaraco/jaraco.financial"
test = [
# upstream
"pytest >= 6, != 8.1.*",
"pytest-checkdocs >= 2.4",
"pytest-cov",
"pytest-mypy",
"pytest-enabler >= 2.2",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",

# local
"splinter",
"types-python-dateutil",
"types-requests",
"types-PyYAML",
"types-six",
]

doc = [
# upstream
"sphinx >= 3.5",
Expand All @@ -63,6 +55,31 @@ doc = [
# local
]

check = [
"pytest-checkdocs >= 2.4",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
]

cover = [
"pytest-cov",
]

enabler = [
"pytest-enabler >= 2.2",
]

type = [
# upstream
"pytest-mypy",

# local
"types-python-dateutil",
"types-requests",
"types-PyYAML",
"types-six",
]


[project.scripts]
fix-qif-date-format = "jaraco.financial.qif:fix_dates_cmd"
launch-in-money = "jaraco.financial.msmoney:launch_cmd"
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ commands =
usedevelop = True
extras =
test
check
cover
enabler
type

[testenv:diffcov]
description = run tests and check that diff from main is covered
Expand Down

0 comments on commit 6abfbfc

Please sign in to comment.