]> git.madduck.net Git - etc/vim.git/blob - pyproject.toml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Use underscores instead of a space in a test file's name (#3180)
[etc/vim.git] / pyproject.toml
1 # Example configuration for Black.
2
3 # NOTE: you have to use single-quoted strings in TOML for regular expressions.
4 # It's the equivalent of r-strings in Python.  Multiline strings are treated as
5 # verbose regular expressions by Black.  Use [ ] to denote a significant space
6 # character.
7
8 [tool.black]
9 line-length = 88
10 target-version = ['py36', 'py37', 'py38']
11 include = '\.pyi?$'
12 extend-exclude = '''
13 /(
14   # The following are specific to Black, you probably don't want those.
15   | blib2to3
16   | tests/data
17   | profiling
18 )/
19 '''
20 # We use preview style for formatting Black itself. If you
21 # want stable formatting across releases, you should keep
22 # this off.
23 preview = true
24
25 # Build system information below.
26 # NOTE: You don't need this in your own Black configuration.
27
28 [build-system]
29 requires = ["setuptools>=45.0", "setuptools_scm[toml]>=6.3.1", "wheel"]
30 build-backend = "setuptools.build_meta"
31
32 [tool.pytest.ini_options]
33 # Option below requires `tests/optional.py`
34 addopts = "--strict-config --strict-markers"
35 optional-tests = [
36   "no_blackd: run when `d` extra NOT installed",
37   "no_jupyter: run when `jupyter` extra NOT installed",
38 ]
39 markers = [
40   "incompatible_with_mypyc: run when testing mypyc compiled black"
41 ]
42 xfail_strict = true
43 filterwarnings = [
44     "error",
45     # this is mitigated by a try/catch in https://github.com/psf/black/pull/2974/
46     # this ignore can be removed when support for aiohttp 3.7 is dropped.
47     '''ignore:Decorator `@unittest_run_loop` is no longer needed in aiohttp 3\.8\+:DeprecationWarning''',
48     # this is mitigated by https://github.com/python/cpython/issues/79071 in python 3.8+
49     # this ignore can be removed when support for 3.7 is dropped.
50     '''ignore:Bare functions are deprecated, use async ones:DeprecationWarning''',
51 ]