Skip to content

Commit b820e77

Browse files
committed
Greatly expand tests coverage
1 parent 6777939 commit b820e77

File tree

91 files changed

+6585
-33351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+6585
-33351
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ repos:
1717
rev: "v0.9.9"
1818
hooks:
1919
- id: ruff
20-
entry: ruff check --ignore PLR0915,S301
20+
# Use config from pyproject.toml which includes global ignores and respect file-level noqa comments
21+
args: ["--config=pyproject.toml"]
2122
- repo: https://github.com/codespell-project/codespell
2223
rev: v2.3.0
2324
hooks:
@@ -39,11 +40,4 @@ repos:
3940
language: python
4041
"types_or": [python, pyi]
4142
args: ["--ignore-missing-imports", "--scripts-are-modules"]
42-
require_serial: true
43-
- repo: local
44-
hooks:
45-
- id: pylint
46-
name: pylint
47-
entry: pylint financetoolkit
48-
language: system
49-
types: [python]
43+
require_serial: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ build-backend = "poetry.core.masonry.api"
8181
[tool.ruff]
8282
line-length = 122
8383
lint.select = ["E", "W", "F", "Q", "W", "S", "UP", "I", "PD", "SIM", "PLC", "PLE", "PLR", "PLW"]
84-
lint.ignore = ["S105", "S106", "S107", "PLR0913", "PLR0912", "PLR0911", "PLR0915", "PD010", "PD013", "S310", "S301"]
84+
lint.ignore = ["S105", "S106", "S107", "PLR0913", "PLR0912", "PLR0911", "PLR0915", "PD010", "PD013", "S310", "S301", "S101"]
8585
exclude = ["conftest.py"]
8686

8787
[tool.pylint]

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# ruff: noqa

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# ruff: noqa
2+
13
import json
24
import os
35
import pathlib

tests/discovery/__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3

0 commit comments

Comments
 (0)