Skip to content

Commit ae7cb50

Browse files
committed
feat: INP only in src/
1 parent 11c5f50 commit ae7cb50

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.github/workflows/check-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ jobs:
1111
- name: Check mkdocs
1212
uses: deargen/workflows/actions/check-mkdocs@master
1313
with:
14-
src-dir: src
1514
requirements-docs-file: deps/lock/x86_64-manylinux_2_28/requirements_docs.txt

.github/workflows/gen-init-py.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Generate __init__.py files
22

3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
src-dir:
7-
description: src directory
8-
required: true
9-
default: src
3+
on: workflow_dispatch
104

115
jobs:
126
generate-init-py:
@@ -15,5 +9,3 @@ jobs:
159
steps:
1610
- uses: actions/checkout@v4
1711
- uses: deargen/workflows/actions/gen-init-py@master
18-
with:
19-
src-dir: ${{ github.event.inputs.src-dir }}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pythonVersion = "3.10"
8282
reportDuplicateImport = true
8383

8484
[tool.ruff]
85-
namespace-packages = ["tools", "scripts", "tests"] # for INP rule, suppress on these directories
85+
namespace-packages = [] # for INP rule, suppress on these directories
8686
extend-exclude = [
8787
"src/ml_project/_version.py", # CHANGE
8888
]
@@ -163,6 +163,7 @@ ignore = [
163163
"__init__.py" = [
164164
"F401", # Ignore seemingly unused imports (they're meant for re-export)
165165
]
166+
"[!s][!r][!c]*/**" = ["INP001"] # Implicit namespace package (no __init__.py) ignored not under src/
166167

167168
[tool.ruff.lint.pydocstyle]
168169
convention = "google"

0 commit comments

Comments
 (0)