-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
133 lines (117 loc) · 4.32 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# PEP 621 dependencies declaration
# adapt to your dependencies manager
[project]
dependencies = [
"mkdocstrings[python]>=0.18",
]
# [tool.poetry]
# name = "fact"
# version = "1.0.0"
# description = "Example Python project using best practices"
# authors = ["John Hagen <[email protected]>"]
# license = "MIT"
# readme = "README.md"
# repository = "https://github.com/johnthagen/python-blueprint"
# documentation = "https://johnthagen.github.io/python-blueprint/"
# classifiers = [
# "Development Status :: 5 - Production/Stable",
# "Intended Audience :: Developers",
# "License :: OSI Approved :: MIT License",
# "Operating System :: OS Independent",
# "Programming Language :: Python",
# "Programming Language :: Python :: 3",
# "Programming Language :: Python :: 3 :: Only",
# "Programming Language :: Python :: 3.8",
# "Programming Language :: Python :: 3.9",
# "Programming Language :: Python :: 3.10",
# "Typing :: Typed",
# # Include this classifier to prevent accidently publishing private code to PyPI.
# # https://pypi.org/classifiers/
# "Private :: Do Not Upload",
# ]
# [tool.poetry.dependencies]
# # Some packages, such as scipy, constrain their upper bound of Python versions they support.
# # Without also constraining the upper bound here, Poetry will not select those versions and will
# # result in an old version being resolved/locked.
# python = "^3.8, <3.11"
# colorama = "*"
# typer = "*"
# [tool.poetry.dev-dependencies]
# nox-poetry = "*"
# # Testing.
# pytest = "*"
# pytest-cov = "*"
# # Type Checking.
# mypy = "*"
# # As of mypy 0.900, mypy no longer bundles the stubs for third-party libraries that reside
# # in the typeshed project. Add these "types-" packages here if you depend on them in
# # requirements.in (e.g. types-requests).
# # See: http://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html
# # https://github.com/python/typeshed/tree/master/stubs
# # Linting.
# flake8 = "*"
# flake8-bugbear = "*"
# flake8-broken-line = "*"
# flake8-comprehensions = "*"
# pep8-naming = "*"
# # TODO: Remove this when flake8 adds native support for pyproject.toml.
# pyproject-flake8 = "*"
# # Formatting.
# black = "*"
# isort = "*"
# # Documentation.
# mkdocs-material = "*"
# mkdocs-htmlproofer-plugin = "*"
# mkdocstrings = { version = "*", extras = ["python"] }
# ## Autodoc.
# mkdocs-gen-files = "*"
# mkdocs-literate-nav = "*"
# [tool.poetry.scripts]
# fact = "fact.cli:entry_point"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.mypy]
ignore_missing_imports = true
strict = true
# If certain strict config options are too pedantic for a project,
# disable them selectively here by setting to false.
# Note: This configuration is suppported by pyproject-flake8.
[tool.flake8]
# Use the more relaxed max line length permitted in PEP 8.
max-line-length = 99
# This ignore is required by black.
extend-ignore = ["E203"]
# flake8-bugbear config.
# This argument is not needed if not using Typer as a dependency.
extend-immutable-calls = ["Argument"]
# TODO: Remove this once flake8 > 4.0.1 is released as this has been fixed
# upstream: https://github.com/PyCQA/flake8/pull/1443
extend-exclude = [".nox"]
exclude = ["docs","pipeline_v1"]
[tool.black]
line-length = 99
target-version = ["py38", "py39", "py310"]
# black will automatically exclude all files listed in .gitignore
# If you need to exclude additional folders, consider using extend-exclude to avoid disabling the
# default .gitignore behaviour.
[tool.isort]
profile = "black"
line_length = 99
force_sort_within_sections = true
# Inform isort of paths to import names that should be considered part of the "First Party" group.
src_paths = ["src/fact"]
skip_gitignore = true
# If you need to skip/exclude folders, consider using skip_glob as that will allow the
# isort defaults for skip to remain without the need to duplicate them.
[tool.pytest.ini_options]
filterwarnings = [
# When running tests, treat warnings as errors (e.g. -Werror).
# See: https://docs.pytest.org/en/latest/reference/reference.html#confval-filterwarnings
"error",
# Add additional warning supressions as needed here. For example, if a third-party library
# is throwing a deprecation warning that needs to be fixed upstream:
# "ignore::DeprecationWarning:typer",
]
[tool.coverage.run]
branch = true