Skip to content

Instantly share code, notes, and snippets.

@hintron
Created August 16, 2023 20:27
Show Gist options
  • Select an option

  • Save hintron/f9b5f04a0052602caa9bc8db052d6500 to your computer and use it in GitHub Desktop.

Select an option

Save hintron/f9b5f04a0052602caa9bc8db052d6500 to your computer and use it in GitHub Desktop.
pyproject.toml - sanitized for poetry bug report
[tool.poetry]
name = "xxxxxxxxx"
version = "vvvvvvvvvv"
description = "yyyyyyyyyy"
authors = ["zzzzzzzzzz", "zzzzzzzzzz"]
[tool.poetry.dependencies]
python = "~3.10"
python_jsonschema_objects = "^0.4.1"
PyYAML = "^6.0.1"
click = "^8.0"
arrow = "^1.0.3"
pandas = "^1.4.3"
myst-parser = "^0.18.0"
h5py = "^3.7.0"
"click-bash4.2-completion" = "^0.1.0"
numpy = "^1.23.4"
[tool.poetry.dev-dependencies]
pytest = "^6.2"
hypothesis = "^6.14.0"
Sphinx = "^4.0.2"
sphinx-rtd-theme = "^0.5.2"
black = "^21.6b0"
pylint = "^2.14.5"
coverage = {version = "^5.5", extras = ["toml"]}
isort = "^5.8.0"
rstcheck = "^3.3.1"
pre-commit = "^2.13.0"
gitlint = "^0.17.0"
gitlint-core = "^0.17.0"
releases = "^1.6.3"
pyinstaller = "^5.3"
urllib3 = "^1"
pylint-pytest = "^1.1.2"
[tool.poetry.scripts]
xxxxxxxxx = "xxxxxxxxx.xxxxxxxxx:main"
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
| dev
| docs
)/
'''
# needs version >= 5
[tool.isort]
profile = "black"
src_paths = ['xxxxxxxxx', 'test']
[tool.pylint.master]
ignore-paths = ["docs"]
[tool.pylint.main]
# allow 1+ letter names for arguments and variables
# Original regex: [a-z_][a-z0-9_]{2,30}$
# http://pylint-messages.wikidot.com/messages:c0103
argument-rgx = '[a-z_][a-z0-9_]{0,30}$'
variable-rgx = '[a-z_][a-z0-9_]{0,30}$'
const-rgx = '[a-zA-Z_][a-zA-Z0-9_]{0,30}$'
load-plugins = [
"pylint_pytest",
]
[tool.pylint.messages_control]
[tool.pylint.format]
max-line-length = 88
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--color=yes -ra -q"
testpaths = [
"test",
]
[tool.coverage.run]
branch = true
omit = [
"*/test/*",
"*/.env/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "reports"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment