Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
event-sourcing / pyproject.toml
Size: Mime:
[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "event-sourcing"
version = "0.1.3"
description = "Event Sourcing framework"
readme = "README.md"
requires-python = ">=3.10"
authors = [
  {name = "Kraken Technologies", email = "talent@octopus.energy" }
]
classifiers = [
  "Programming Language :: Python :: 3",
  "Operating System :: OS Independent"
]
dependencies = [
  "django"
]

[project.optional-dependencies]
dev = [
  "build",
  "bump2version",
  "django-stubs",
  "freezegun",
  "mypy",
  "pytest",
  "pytest-cov",
  "pytest-django",
  "pytz",
  "tox",
  "types-freezegun",
  "types-pytz"
]

[project.urls]
"Bug Tracker" = "https://github.com/octopus-energy/event-sourcing/issues"

[tool.poetry]
name = "event-sourcing"
version = "0.1.3"
authors = ["Kraken Technology <talent@octopus.energy>"]
description = "Event Sourcing library."

[tool.poetry.dependencies]
python = "^3.10"
Django = ">4.0"

[tool.poetry.group.dev.dependencies]
mypy = "^1"
pytest = "~7"
pytest-cov = "~4"
freezegun = "~1.2"
pytest-django = "^4.5.2"
types-pytz = "~2023"
types-freezegun = "~1.1"
build = "~0"
bump2version = "^1.0.1"
pytz = "~2023"
tox = "~4"
django-stubs = ">1.16.0"
coverage = {version = "^7.2.4", extras = ["toml"]}
ruff = "^0.5"

[tool.black]
line-length = 99
target-version = ['py310']
skip-numeric-underscore-normalization = 1

[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = [
  "event_sourcing",
  "tests"
]


[tool.coverage.run]
omit = [
  "*tests/*"
]

[tool.coverage.report]
fail_under = 85
show_missing = true
skip_covered = true

[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
allow_untyped_globals = true
allow_redefinition = true
show_error_codes = true
show_traceback = true
disallow_untyped_defs = true
disallow_untyped_calls = true

[tool.django-stubs]
# This setting might require an extra PYTHONPATH param to be included
# e.g. "PYTHONPATH=$PYTHONPATH:$PWD/src mypy src" if executing from the project root
django_settings_module = "tests.testapp.settings"

[tool.ruff]
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml

# https://beta.ruff.rs/docs/rules/
# E - pyflakes
# F - pycodestyle
# B - flake-8bugbear
line-length = 100
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "B", "I"]
ignore = [
  "B009",  # Do not call `getattr` with a constant attribute value
  "B010",  # Do not call `setattr` with a constant attribute value
]