Skip to content

Commit 04e51f4

Browse files
authored
ruff: INP001 compliance (#373)
1 parent ee07844 commit 04e51f4

11 files changed

+4
-7
lines changed

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ conda:
99
environment: requirements/ncta.yml
1010

1111
sphinx:
12-
configuration: docs/conf.py
12+
configuration: docs/src/conf.py
1313
fail_on_warning: false
1414

1515
python:

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
8+
SOURCEDIR = src
99
BUILDDIR = _build
1010

1111
# Put it first so that "make" without argument is like "make help".
File renamed without changes.
File renamed without changes.

docs/conf.py renamed to docs/src/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# Add any paths that contain custom static files (such as style sheets) here,
5858
# relative to this directory. They are copied after the builtin static files,
5959
# so a file named "default.css" will overwrite the builtin "default.css".
60-
html_static_path = ["_static"]
60+
# html_static_path = ["_static"]
6161

6262
intersphinx_mapping = {
6363
"cftime": ("https://unidata.github.io/cftime", None),
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pyproject.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ignore = [
143143

144144
[tool.ruff]
145145
line-length = 88
146+
src = ["docs/src", "src"]
146147

147148
[tool.ruff.format]
148149
preview = false
@@ -272,10 +273,6 @@ known-first-party = ["nc_time_axis"]
272273
"N999", # Invalid module name
273274
]
274275

275-
"docs/conf.py" = [
276-
"INP001", # implicit namespace
277-
]
278-
279276
[tool.ruff.lint.pydocstyle]
280277
convention = "numpy"
281278

0 commit comments

Comments
 (0)