<commit_before>[build-system]
requires = [
    "setuptools>=18.0",
    "cython>=0.18",
    "wheel>=0.31.0",
    "setuptools_scm",
    "pkgconfig"  # this should be Linux only, but PEP508 is not supported yet in pyproject.toml
    ]

[tool.black]
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
  /(
      \.eggs
    | \.git
    | \.mypy_cache
    | \.venv
    | venv.*
    | build
    | dist
    | ci
  )/
)
'''

[tool.isort]
profile = "black"
py_version = "37"
force_single_line = true

[tool.cibuildwheel]
build-verbosity = 2
skip = ["*-musllinux_*", "pp38-*"]
test-extras = ["pyseabreeze"]
test-command = [
    "python -c 'import seabreeze'",
    "python -c 'import seabreeze.types'",
    "python -c 'import seabreeze.cseabreeze'",
    "python -c 'import seabreeze.pyseabreeze'",
]

[tool.cibuildwheel.linux]
before-build = "yum install -y libusb-devel"

[tool.mypy]
python_version = "3.7"
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = "./src/**/*.py"
exclude = """<commit_msg>[ci] change test-command escape<commit_after>[build-system]
requires = [
    "setuptools>=18.0",
    "cython>=0.18",
    "wheel>=0.31.0",
    "setuptools_scm",
    "pkgconfig"  # this should be Linux only, but PEP508 is not supported yet in pyproject.toml
    ]

[tool.black]
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
  /(
      \.eggs
    | \.git
    | \.mypy_cache
    | \.venv
    | venv.*
    | build
    | dist
    | ci
  )/
)
'''

[tool.isort]
profile = "black"
py_version = "37"
force_single_line = true

[tool.cibuildwheel]
build-verbosity = 2
skip = ["*-musllinux_*", "pp38-*"]
test-extras = ["pyseabreeze"]
test-command = [
    "python -c \"import seabreeze\"",
    "python -c \"import seabreeze.types\"",
    "python -c \"import seabreeze.cseabreeze\"",
    "python -c \"import seabreeze.pyseabreeze\"",
]

[tool.cibuildwheel.linux]
before-build = "yum install -y libusb-devel"

[tool.mypy]
python_version = "3.7"
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = "./src/**/*.py"
exclude = """
{'fraction_non_alphanumeric': 0.15886699507389163, 'fraction_numerical': 0.0180623973727422, 'mean_word_length': 3.422867513611615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6386403', 'n_tokens_mistral': 1004, 'n_tokens_neox': 966, 'n_words': 195}