Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ repos:
args: ["--exit-non-zero-on-fix"]
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "d600c142bb19f521ae6a6a345f94a2efd7937759" # frozen: v2.26.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/EbodShojaei/bake
rev: a39df91c8e2c8ee584f81ff8d7d00f137a5fc160 # frozen: v1.4.6
hooks:
Expand Down
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 58 additions & 58 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
requires = [ "poetry-core>=2" ]


[tool.poetry]
name = "wemake-python-package"
description = "Bleeding edge cookiecutter template to create new python packages"
version = "0.1.0"
readme = "README.md"
description = "Bleeding edge cookiecutter template to create new python packages"
package-mode = false
license = "MIT"
authors = [
"Nikita Sobolev <mail@sobolevn.me>",
]
license = "MIT"
package-mode = false
readme = "README.md"
classifiers = [
"Private :: Do not Upload",
]


[tool.poetry.dependencies]
python = "^3.11"
cookiecutter = "^2.7"
Expand All @@ -26,28 +25,25 @@ lice2 = "^0.13"

[tool.poetry.group.dev.dependencies]
binaryornot = "^0.6"

wemake-python-styleguide = "^1.7"
ruff = "^0.16"

mypy = "^2.3"

pytest = "^9.1"
pytest-randomly = "^4.1"
pytest-cookies = "^0.7"
pytest-randomly = "^4.1"
ruff = "^0.16"
wemake-python-styleguide = "^1.7"


[tool.ruff]
# Ruff config: https://docs.astral.sh/ruff/settings
preview = true
fix = true
output-prefer-rule-codes = true
target-version = "py311"
line-length = 80
extend-exclude = [
# Internal project:
'[{][{]cookiecutter.project_name[}][}]',
"[{][{]cookiecutter.project_name[}][}]",
]
# Ruff config: https://docs.astral.sh/ruff/settings
preview = true
fix = true
output-prefer-rule-codes = true

[tool.ruff.format]
quote-style = "single"
Expand Down Expand Up @@ -95,8 +91,8 @@ select = [
"YTT", # flake8-2020
]
ignore = [
"A005", # allow to shadow stdlib and builtin module names
"COM812", # trailing comma, conflicts with `ruff format`
"A005", # allow to shadow stdlib and builtin module names
"COM812", # trailing comma, conflicts with `ruff format`
# Different doc rules that we don't really care about:
"D100",
"D104",
Expand All @@ -117,7 +113,6 @@ ignore = [
"TRY003", # long exception messages from `tryceratops`
]
external = [ "WPS" ]

# Plugin configs:
flake8-quotes.inline-quotes = "single"
mccabe.max-complexity = 6
Expand All @@ -129,36 +124,42 @@ pydocstyle.convention = "google"
]


[tool.pytest.ini_options]
# pytest config: http://doc.pytest.org/en/latest/customize.html
[tool.codespell]
# codespell configuration: https://github.com/codespell-project/codespell
skip = [
"*.lock",
".mypy_cache",
"__pycache__",
"_build",
]

# Strict `@xfail` by default:
xfail_strict = true
# Fail on warnings:
filterwarnings = ["error"]

addopts = [
"--strict-config",
"--strict-markers",
"--doctest-modules",
"--tb=short",
# Custom template parts:
"--ignore={{cookiecutter.project_name}}",
"--ignore=hooks",
[tool.pyproject-fmt]
# Docs: https://pyproject-fmt.readthedocs.io/en/latest/configuration.html
column_width = 80
generate_python_version_classifiers = false
table_format = "long"
sub_table_spacing = "\n"
separate_root_table = "\n\n"


[tool.typos.files]
# typos configuration: https://github.com/crate-ci/typos/
extend-exclude = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]


[tool.mypy]
exclude = [
"{{cookiecutter.project_name}}",
]
# The mypy configurations: http://bit.ly/2zEl9WI
ignore_missing_imports = true
strict = true
strict_equality_for_none = true
warn_unreachable = true

exclude = [
'{{cookiecutter.project_name}}',
]

enable_error_code = [
"deprecated",
"exhaustive-match",
Expand All @@ -172,23 +173,22 @@ enable_error_code = [
"unimported-reveal",
"unused-awaitable",
]
strict_equality_for_none = true
strict = true


[tool.codespell]
# codespell configuration: https://github.com/codespell-project/codespell
skip = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
]


[tool.typos.files]
# typos configuration: https://github.com/crate-ci/typos/
extend-exclude = [
"__pycache__",
"_build",
".mypy_cache",
"*.lock",
[tool.pytest.ini_options]
# pytest config: http://doc.pytest.org/en/latest/customize.html
# Strict `@xfail` by default:
xfail_strict = true
# Fail on warnings:
filterwarnings = [ "error" ]
addopts = [
"--strict-config",
"--strict-markers",
"--doctest-modules",
"--tb=short",
# Custom template parts:
"--ignore={{cookiecutter.project_name}}",
"--ignore=hooks",
]
11 changes: 8 additions & 3 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest"

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: 067260dc5fe6ea86b7551bfd6f8b3ba4e6c93129 # frozen: v1.28.0
rev: 451b56af716f9f0d0c2b816503a3fd0cf8b036fa # frozen: v1.29.0
hooks:
- id: zizmor
args: ["--no-progress", "--fix"]
Expand All @@ -27,12 +27,17 @@ repos:
args: ["--severity=style"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: cb8c523fd4835aba42af70f4cad5568db4df0b6c # frozen: v0.16.0
rev: 39d9ac5938dadb73df0564a45f163e25ff9fa6e2 # frozen: v0.16.1
hooks:
- id: ruff-check
args: ["--exit-non-zero-on-fix"]
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "b82a24a520c5d496cb7b23b4e9b63537c280f51b" # frozen: v2.27.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: c883505f64b59c3c5c9375191e4ad9f98e727ccd # frozen: v1.0.2
hooks:
Expand All @@ -48,7 +53,7 @@ repos:
- id: mbake-validate

- repo: https://github.com/crate-ci/typos
rev: 96d9af6217dc2855210655af7e1ff19d23d4e593 # frozen: v1
rev: 12ffd4a04b4893ab75db66a59aaad2d996c3e982 # frozen: v1
hooks:
- id: typos

Expand Down
37 changes: 0 additions & 37 deletions {{cookiecutter.project_name}}/docs/make.bat

This file was deleted.

Loading