Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ ci:
autoupdate_commit_msg: 'ci: `pre-commit.ci` auto update'
repos:
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.0
rev: v2.3.3
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 8.0.1
hooks:
- id: isort
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/psf/black
rev: 23.7.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
language_version: python3
exclude: ^{{cookiecutter.project_name}}
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.4.2
hooks:
- id: codespell
files: \.(py|md)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -41,7 +41,7 @@ repos:
- id: check-json
- id: check-toml
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.5.4
rev: v4.13.9
hooks:
- id: commitizen
stages: [commit-msg]
Expand All @@ -52,39 +52,39 @@ repos:
stages: [commit-msg]
args: [--ignore=B6, --msg-filename]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
rev: 3.6.1
hooks:
- id: editorconfig-checker
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
rev: v2.14.0
hooks:
- id: hadolint-docker
args: ['--ignore', 'DL3006']
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.3
rev: 0.37.0
hooks:
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
rev: v1.7.7
hooks:
- id: docformatter
additional_dependencies: [tomli]
exclude: tests
args: [--config, pyproject.toml]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.9.4
hooks:
- id: bandit
additional_dependencies: ["bandit[toml]"]
args: ["-c", "pyproject.toml"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.13.0
rev: v2.20.0
hooks:
- id: pyproject-fmt
args: [--indent, '2']
- repo: https://github.com/python-poetry/poetry
rev: 1.5.0
rev: 2.3.2
hooks:
- id: poetry-check
- id: poetry-lock
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"github_user": "Group4Life",
"github_repository": "https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.project_name }}",
"version": "0.0.0"
}
}
136 changes: 61 additions & 75 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,107 +9,93 @@ name = "cookie"
version = "1.0.4"
description = "🐍🍪 A Python Cookiecutter tailored towards Group4Life projects"
readme = "README.md"
authors = ["billsioros <billsioros97@gmail.com>"]
authors = [ "billsioros <billsioros97@gmail.com>" ]
license = "MIT"
homepage = "https://Group4Life.github.io/cookie"
repository = "https://github.com/Group4Life/cookie"
keywords = []
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
]

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/Group4Life/cookie/issues"
"Changelog" = "https://github.com/Group4Life/cookie/releases"

[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.group.dev.dependencies]
python-semantic-release = "*"
isort = "*"
pre-commit = "*"
poethepoet = "*"
pytest = "*"
pytest-sugar = "*"
pytest-clarity = "*"
mkdocs = "*"
mkdocs-material = "*"
mkdocs-minify-plugin = "*"
mkdocs-redirects = "*"
mdx-truly-sane-lists = "*"
mike = "*"
pytest-cookies = "*"
black = "*"
dependencies.python = "^3.9"
group.dev.dependencies.python-semantic-release = "*"
group.dev.dependencies.isort = "*"
group.dev.dependencies.pre-commit = "*"
group.dev.dependencies.poethepoet = "*"
group.dev.dependencies.pytest = "*"
group.dev.dependencies.pytest-sugar = "*"
group.dev.dependencies.pytest-clarity = "*"
group.dev.dependencies.mkdocs = "*"
group.dev.dependencies.mkdocs-material = "*"
group.dev.dependencies.mkdocs-minify-plugin = "*"
group.dev.dependencies.mkdocs-redirects = "*"
group.dev.dependencies.mdx-truly-sane-lists = "*"
group.dev.dependencies.mike = "*"
group.dev.dependencies.pytest-cookies = "*"
group.dev.dependencies.black = "*"
urls."Bug Tracker" = "https://github.com/Group4Life/cookie/issues"
urls.Changelog = "https://github.com/Group4Life/cookie/releases"

[tool.black]
line-length = 99
target-version = ["py37", "py38"]
target-version = [ "py37", "py38" ]
skip-string-normalization = true
exclude = "{{cookiecutter.project_name}}"

[tool.isort]
profile = "black"
src_paths = ["cookie", "hooks", "tests"]
src_paths = [ "cookie", "hooks", "tests" ]
line_length = 99

[tool.pytest.ini_options]
addopts = "-vv --color=yes"
log_cli = false
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s %(levelname)s %(message)s"
log_cli_level = "INFO"
python_files = "test_*.py"
python_functions = "test_*"
testpaths = "tests"
[tool.docformatter]
black = true
non-strict = true
non-cap = [
"cookie",
]
recursive = true
in-place = true

[tool.bandit]
recursive = true
exclude_dirs = [ "tests" ]

[tool.pytest]
ini_options.addopts = "-vv --color=yes"
ini_options.log_cli = false
ini_options.log_cli_date_format = "%Y-%m-%d %H:%M:%S"
ini_options.log_cli_format = "%(asctime)s %(levelname)s %(message)s"
ini_options.log_cli_level = "INFO"
ini_options.python_files = "test_*.py"
ini_options.python_functions = "test_*"
ini_options.testpaths = "tests"

[tool.semantic_release]
upload_to_pypi = false
version_toml = "pyproject.toml:tool.poetry.version"
changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url"
build_command = false

[tool.poe.tasks]
[tool.poe]
tasks.clean.cmd = "rm -rf ./**/__pycache__ dist site .pytest_cache"
tasks.clean.help = "Clean up any auxiliary files"

[tool.poe.tasks.clean]
cmd = "rm -rf ./**/__pycache__ dist site .pytest_cache"
help = "Clean up any auxiliary files"
tasks.docs.shell = "python -c 'import webbrowser; webbrowser.open(\"http://127.0.0.1:8000\")'; poetry run mkdocs serve"
tasks.docs.help = "Build and serve the documentation"

[tool.poe.tasks.format]
shell = "poetry run isort .; poetry run black ."
help = "Format your codebase"
tasks.export.cmd = "poetry export --without-hashes --dev -o requirements.txt"

[tool.poe.tasks.hooks]
cmd = "poetry run pre-commit run --all-files"
help = "Run all pre-commit hooks"
tasks.format.shell = "poetry run isort .; poetry run black ."
tasks.format.help = "Format your codebase"

[tool.poe.tasks.test]
cmd = "poetry run pytest --cov=cookie"
help = "Run the test suite"
tasks.hooks.cmd = "poetry run pre-commit run --all-files"
tasks.hooks.help = "Run all pre-commit hooks"

[tool.poe.tasks.lint]
cmd = "poetry run ruff check src"
help = "Lint your code for errors"
tasks.lint.cmd = "poetry run ruff check src"
tasks.lint.help = "Lint your code for errors"

[tool.poe.tasks.docs]
shell = "python -c 'import webbrowser; webbrowser.open(\"http://127.0.0.1:8000\")'; poetry run mkdocs serve"
help = "Build and serve the documentation"

[tool.poe.tasks.export]
cmd = "poetry export --without-hashes --dev -o requirements.txt"

[tool.docformatter]
black = true
non-strict = true
non-cap = [
"cookie",
]
recursive = true
in-place = true

[tool.bandit]
recursive = true
exclude_dirs = ["tests"]
tasks.test.cmd = "poetry run pytest --cov=cookie"
tasks.test.help = "Run the test suite"
Loading
Loading