Skip to content

Commit

Permalink
feat(rs): remove something redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 30, 2024
1 parent adcba84 commit 842c9eb
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 230 deletions.
2 changes: 0 additions & 2 deletions template/rs/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"full_name": "Firstname Lastname",
"github_username": "your-org-or-username",

"python_version": "3.10",

"__gh_slug": "{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}",
"__prompts__": {
"project_name": "Enter your project name",
Expand Down
146 changes: 10 additions & 136 deletions template/rs/{{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,143 +3,17 @@
.vscode
.DS_Store

### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
coverage.lcov
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# pytype static type analyzer
.pytype/
# These are backup files generated by rustfmt
**/*.rs.bk

# Cython debug symbols
cython_debug/
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
10 changes: 0 additions & 10 deletions template/rs/{{cookiecutter.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,3 @@ repos:
- id: commitizen
- id: commitizen-branch
stages: [ push ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff-format
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.12
hooks:
- id: uv-lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Code of Conduct

This project adheres to the Python Code of Conduct, which can be found [here](https://www.python.org/psf/conduct/).
This project adheres to the Python Code of Conduct, which can be found [here](https://www.rust-lang.org/policies/code-of-conduct).
10 changes: 10 additions & 0 deletions template/rs/{{cookiecutter.project_slug}}/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "{{cookiecutter.project_slug}}"
version = "{{cookiecutter.project_version}}"
edition = "2021"
description = "{{cookiecutter.project_desc}}"
repository = "https://github.com/{{cookiecutter.__gh_slug}}"
homepage = "https://github.com/{{cookiecutter.__gh_slug}}"
license = "MIT OR Apache-2.0"

[dependencies]
75 changes: 0 additions & 75 deletions template/rs/{{cookiecutter.project_slug}}/pyproject.toml

This file was deleted.

6 changes: 0 additions & 6 deletions template/rs/{{cookiecutter.project_slug}}/ruff.toml

This file was deleted.

0 comments on commit 842c9eb

Please sign in to comment.