Skip to content

Commit 4d4071c

Browse files
authored
Add options from Scientific Python (#157)
1 parent 11f6842 commit 4d4071c

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
- main
88
- renovate/**
99
pull_request:
10+
workflow_dispatch:
11+
12+
concurrency:
13+
cancel-in-progress: true
14+
group: >-
15+
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1016
1117
jobs:
1218
test:

pyproject.toml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,39 @@ paths.source = [
7070
]
7171

7272
[tool.mypy]
73+
enable_error_code = [
74+
"ignore-without-code",
75+
"redundant-expr",
76+
"truthy-bool",
77+
]
7378
strict = true
79+
warn_unreachable = true
7480

7581
[tool.pytest.ini_options]
76-
addopts = """
77-
--color=yes
78-
--import-mode=importlib
79-
--verbose
80-
"""
82+
addopts = [
83+
"--color=yes",
84+
"--import-mode=importlib",
85+
"--strict-config",
86+
"--strict-markers",
87+
"--verbose",
88+
"-ra",
89+
]
90+
filterwarnings = [
91+
"error",
92+
]
93+
log_cli_level = "INFO"
94+
minversion = 6
8195
testpaths = [
8296
"tests",
8397
]
98+
xfail_strict = true
8499

85100
[tool.ruff]
86101
fix = true
87102
force-exclude = true
103+
src = [
104+
"src",
105+
]
88106
lint.ignore = [
89107
"COM812",
90108
"D203",

0 commit comments

Comments
 (0)