Skip to content

Commit

Permalink
remove more template lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 14, 2024
1 parent 09130b3 commit afc82e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ repos:
minimum_pre_commit_version: 2.9.2
require_serial: true
types_or: [python, pyi]
args: ["--extend-exclude=setup_utils.py"]
exclude: ^setup_utils.py
- id: black-jupyter
name: black-jupyter
description:
Expand All @@ -21,6 +23,7 @@ repos:
require_serial: true
types_or: [python, pyi, jupyter]
additional_dependencies: [".[jupyter]"]
exclude: ^setup_utils.py

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
Expand All @@ -42,7 +45,6 @@ repos:
hooks:
- id: isort
files: \.py$
exclude: ^babelizer/data
args: [--force-single-line-imports]

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -58,16 +60,6 @@ repos:
- id: forbid-new-submodules
- id: trailing-whitespace

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: babelizer/.*\.py$
args:
- --convention=numpy
- --add-select=D417
additional_dependencies: [".[toml]"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# conda requirements needed to build the project
{%- if cookiecutter.language == 'c' -%}
bmi-c
c-compiler
Expand All @@ -7,4 +8,4 @@ cxx-compiler
{%- elif cookiecutter.language == 'fortran' -%}
bmi-fortran
fortran-compiler
{%- endif -%}
{%- endif %}
2 changes: 2 additions & 0 deletions babelizer/data/{{cookiecutter.package_name}}/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from setuptools import setup
{% if cookiecutter.language in ['c', 'c++', 'fortran'] %}
{%- if cookiecutter.language == 'fortran' %}
from setup_utils import build_ext
{%- endif %}
from setup_utils import get_extension_modules

setup(
Expand Down

0 comments on commit afc82e6

Please sign in to comment.