Skip to content

Commit

Permalink
🔥
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer committed Jun 6, 2024
1 parent 85bb640 commit e374698
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 76 deletions.
1 change: 0 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"__project_slug": "{{ cookiecutter.project_name | lower | replace('-', '_') | replace('.', '_') }}",
"__type": "{{ 'compiled' if cookiecutter.backend in ['skbuild', 'maturin'] else 'pure' }}",
"__answers": "",
"__ci": "{{ 'github' if 'github.com' in cookiecutter.url else 'gitlab' }}",
"__prompts__": {
"project_name": "The name of your project",
"org": "The name of your (GitHub?) org",
Expand Down
1 change: 0 additions & 1 deletion helpers/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ def hook(self, context):
"compiled" if context["backend"] in ["skbuild", "maturin"] else "pure"
)
context["__answers"] = context["_copier_conf"]["answers_file"]
context["__ci"] = "github" if "github.com" in context["url"] else "gitlab"
return {"cookiecutter": context}
10 changes: 0 additions & 10 deletions {{cookiecutter.project_name}}/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ environment for each run.

You can set up a development environment by running:

{% if cookiecutter.backend == "poetry" -%}

```bash
poetry install
```

{%- else -%}

```bash
python3 -m venv .venv
source ./.venv/bin/activate
Expand All @@ -53,8 +45,6 @@ py -m venv .venv
py -m install -v -e .[dev]
```

{%- endif %}

# Pre-commit

You should prepare pre-commit, which will help you by checking that commits pass
Expand Down
8 changes: 0 additions & 8 deletions {{cookiecutter.project_name}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ jobs:
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
allow-prereleases: true

{%- if cookiecutter.backend == "mesonpy" %}

- name: Activate MSVC for Meson
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

{%- endif %}

- name: Install package
run: python -m pip install .[test]

Expand Down

This file was deleted.

25 changes: 1 addition & 24 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,7 @@ repos:
args: ["--fix", "--show-fixes"]
- id: ruff-format

{%- if cookiecutter.backend == "setuptools" or cookiecutter.backend == "pybind11" %}

- repo: https://github.com/asottile/setup-cfg-fmt
rev: "v2.5.0"
hooks:
- id: setup-cfg-fmt
args: [--include-version-classifiers, --max-py-version=3.12]

{%- endif %}

{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}
{%- if cookiecutter.backend == "skbuild" %}

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v18.1.5"
Expand Down Expand Up @@ -93,15 +83,6 @@ repos:
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
exclude: .pre-commit-config.yaml

{%- if cookiecutter.backend in ["setuptools", "pybind11"] %}

- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
stages: [manual]
{%- endif %}

{%- if cookiecutter.backend == "skbuild" %}

- repo: https://github.com/cheshirekow/cmake-format-precommit
Expand All @@ -120,10 +101,6 @@ repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.28.4"
hooks:
{%- if cookiecutter.__ci == "github" %}
- id: check-dependabot
- id: check-github-workflows
{%- elif cookiecutter.__ci == "gitlab" %}
- id: check-gitlab-ci
{%- endif %}
- id: check-readthedocs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@

from ._version import version as __version__

{%- elif cookiecutter.backend == "pdm" and cookiecutter.vcs %}

import importlib.metadata

__version__ = importlib.metadata.version("{{ cookiecutter.__project_slug }}")

{%- elif cookiecutter.backend == "poetry" and cookiecutter.vcs %}

__version__ = "0.0.0"

{%- else %}

__version__ = "0.1.0"
Expand Down

0 comments on commit e374698

Please sign in to comment.