Skip to content

Commit

Permalink
disable numpydoc for now, fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jul 23, 2024
1 parent 467c160 commit 3c91b88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ clean-test: ## remove test and coverage artifacts
lint/flake8: ## check style with flake8
python -m ruff check src/{{ cookiecutter.project_slug }} tests
python -m flake8 --config=.flake8 src/{{ cookiecutter.project_slug }} tests
python -m numpydoc --validate src/{{ cookiecutter.project_slug }}
# python -m numpydoc --validate src/{{ cookiecutter.project_slug }}

{% if cookiecutter.use_black == 'y' -%}
lint/black: ## check style with black
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ dependencies:
- blackdoc ==0.3.9
- isort ==5.13.2
{%- endif %}
- numpydoc >=1.7.0
# - numpydoc >=1.7.0
- pre-commit >=3.5.0
- ruff >=0.5.0
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dev = [
"coverage >=7.5.0",
"coveralls >=4.0.0",
"mypy",
"numpydoc >=1.7.0",
# "numpydoc >=1.7.0",
{%- if cookiecutter.use_pytest == 'y' %}
"pytest >=8.2.2",
"pytest-cov >=5.0.0",
Expand Down
16 changes: 7 additions & 9 deletions {{cookiecutter.project_slug}}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ envlist =
{%- endif %}
coveralls
requires =
flit ~= 3.9.0,
flit ~= 3.9.0
opts =
--verbose

Expand All @@ -23,7 +23,7 @@ deps =
flake8 >=7.1.0
flake8-rst-docstrings >=0.3.0
ruff >=0.5.0
numpydoc >=1.7.0
; numpydoc >=1.7.0
commands =
make lint
allowlist_externals =
Expand Down Expand Up @@ -57,14 +57,12 @@ deps =
commands_pre =
pip list
pip check
{%- if cookiecutter.use_pytest == 'y' %}

commands =
{% if cookiecutter.use_pytest == 'y' -%}
pytest --cov
# Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
coveralls: - coveralls
{% else -%}
commands =
{%- else -%}
coverage run
# Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
{%- endif %}
; Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
coveralls: - coveralls
{% endif -%}

0 comments on commit 3c91b88

Please sign in to comment.