-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wpk
committed
Jun 7, 2023
0 parents
commit bd8736c
Showing
83 changed files
with
5,262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"template": "https://github.com/wpk-nist-gov/cookiecutter-pypackage.git", | ||
"commit": "a0209ae199aa6f953364fc929e50d41d58082173", | ||
"checkout": "feature/markdown", | ||
"context": { | ||
"cookiecutter": { | ||
"full_name": "William P. Krekelberg", | ||
"email": "[email protected]", | ||
"github_username": "wpk-nist-gov", | ||
"pypi_username": "wpk-nist", | ||
"conda_channel": "wpk-nist", | ||
"project_name": "pyproject2conda", | ||
"project_slug": "pyproject2conda", | ||
"_copy_without_render": [ | ||
"*.html", | ||
"docs/_templates/*.rst", | ||
"docs/_templates/autosummary/*.rst", | ||
"docs/_templates/autodocsumm/*.rst", | ||
"docs/_static/css/*", | ||
"docs/_static/js/*", | ||
"changelog.d/templates/*.j2", | ||
"changelog.d/templates/auto-changelog/*.jinja2" | ||
], | ||
"project_short_description": "A script to convert a Python project declared on a pyproject.toml to a conda environment.", | ||
"version": "0.0.1", | ||
"use_pytest": "y", | ||
"use_pypi_deployment_with_travis": "n", | ||
"command_line_interface": "Click", | ||
"create_author_file": "y", | ||
"open_source_license": "NIST license", | ||
"sphinx_auto": "automodule", | ||
"sphinx_use_autodocsumm": "y", | ||
"sphinx_theme": "sphinx_book_theme", | ||
"_template": "https://github.com/wpk-nist-gov/cookiecutter-pypackage.git" | ||
} | ||
}, | ||
"directory": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
[*.bat] | ||
indent_style = tab | ||
end_of_line = crlf | ||
|
||
[LICENSE] | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.mk] | ||
indent_style = tab | ||
|
||
[*.{yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.ini] | ||
indent_size = 4 | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
|
||
[*.txt] | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
|
||
[*.md] | ||
indent_size = 2 | ||
max_line_length = 80 | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- markdownlint-disable MD041 --> | ||
|
||
- pyproject2conda version: | ||
- Python version: | ||
- Operating System: | ||
|
||
### Description | ||
|
||
Describe what you were trying to get done. Tell us what happened, what went | ||
wrong, and what you expected to happen. | ||
|
||
### What I Did | ||
|
||
```bash | ||
Paste the command(s) you ran and the output. | ||
If there was a crash, please include the traceback here. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# 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/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# IDE settings | ||
.vscode/ | ||
pyrightconfig.json | ||
.autoenv.zsh | ||
.autoenv_leave.zsh | ||
/docs/**/generated/ | ||
/monkeytype.sqlite3 | ||
/dist-conda/* | ||
!/dist-conda/Makefile | ||
/pyproject2conda-feedstock*/ | ||
/tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Example markdownlint configuration with all properties set to their default value | ||
|
||
# Default state for all rules | ||
default: true | ||
# disable rules? | ||
# MD026: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
--- | ||
# pre-commit install | ||
# pre-commit run --all-files | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
default_install_hook_types: | ||
- pre-commit | ||
- commit-msg | ||
repos: | ||
#* Top level | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
#* Formatting | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.0.0-alpha.6" | ||
hooks: | ||
- id: prettier | ||
stages: [commit] | ||
additional_dependencies: | ||
- prettier-plugin-toml | ||
#** markdown | ||
- repo: https://github.com/DavidAnson/markdownlint-cli2 | ||
rev: v0.6.0 | ||
hooks: | ||
- id: markdownlint-cli2 | ||
args: ["--style prettier"] | ||
#* Linting | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
# Ruff version. | ||
rev: "v0.0.261" | ||
hooks: | ||
- id: ruff | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
# - id: black-jupyter | ||
# Move to just black. use nbqa for notebook formatting | ||
- id: black | ||
- repo: https://github.com/adamchainz/blacken-docs | ||
rev: "1.13.0" | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: | ||
- black==23.3.0 | ||
# exclude: ^README.md | ||
- repo: https://github.com/nbQA-dev/nbQA | ||
rev: 1.7.0 | ||
hooks: | ||
- id: nbqa-ruff | ||
additional_dependencies: [ruff] | ||
- id: nbqa-black | ||
additional_dependencies: [black] | ||
|
||
#* Commit message | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.0.1 | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] | ||
|
||
#* Manual Linting | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: tox | ||
args: ["-e", "lint-mypy"] | ||
language: system | ||
pass_filenames: false | ||
# additional_dependencies: [tox] | ||
types: [python] | ||
require_serial: true | ||
stages: [manual] | ||
- id: pyright | ||
name: pyright | ||
entry: pyright | ||
args: [] | ||
language: system | ||
pass_filenames: true | ||
# additional_dependencies: [tox] | ||
types: [python] | ||
require_serial: true | ||
stages: [manual] | ||
# isort, pyupgrade, flake8 defer to ruff | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
stages: [manual] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
stages: [manual] | ||
args: [--py38-plus] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
stages: [manual] | ||
additional_dependencies: | ||
- flake8-docstrings | ||
- Flake8-pyproject | ||
# - pep8-naming | ||
# - flake8-rst-docstrings | ||
exclude: ^tests/|^src/pyproject2conda/tests/|^docs/conf.py|^setup.py | ||
- repo: https://github.com/nbQA-dev/nbQA | ||
rev: 1.7.0 | ||
hooks: | ||
- id: nbqa-pyupgrade | ||
additional_dependencies: [pyupgrade] | ||
stages: [manual] | ||
args: [--py38-plus] | ||
- id: nbqa-isort | ||
additional_dependencies: [isort] | ||
stages: [manual] | ||
#** spelling | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
types_or: [python, rst, markdown, cython, c] | ||
additional_dependencies: [tomli] | ||
args: [-I, docs/spelling_wordlist.txt] | ||
stages: [manual] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proseWrap: "always" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
test: | ||
imports: | ||
- pyproject2conda | ||
commands: | ||
- pip check | ||
requires: | ||
- pip | ||
|
||
about: | ||
home: https://github.com/wpk-nist-gov/pyproject2conda | ||
summary: A script to convert a Python project declared on a pyproject.toml to a conda environment. | ||
description: | | ||
A script to convert a Python project declared on a pyproject.toml to a conda environment. | ||
license: NIST-PD | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- wpk-nist-gov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Credits | ||
|
||
## Development Lead | ||
|
||
- William P. Krekelberg \<[email protected]> | ||
|
||
## Contributors | ||
|
||
None yet. Why not be the first? |
Oops, something went wrong.