1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-05-05 08:00:13 +02:00

[META] Migrates to pyproject.toml (PEP 518)

This commit is contained in:
Samuel FORESTIER 2022-09-17 17:06:19 +02:00
parent 01d1d90bf8
commit 1c7d4f3a55
3 changed files with 35 additions and 31 deletions

@ -1,4 +0,0 @@
[mypy]
# Don't lint external dependencies missing type annotations.
ignore_missing_imports = True

@ -1,27 +0,0 @@
[MASTER]
# Required hook as we use absolute imports within the code.
init-hook='import sys; sys.path.append("archey/")'
# C sources of the `netifaces` module won't be available.
# Let's ignore it during linting please.
extension-pkg-whitelist=netifaces
# Automatically detects the number of CPU available to use.
jobs=0
# For the time being, disable `similarities` checker due to false positives across tests modules.
# See PyCQA/pylint#214.
disable=similarities
# Additional plugins to check the code base against.
load-plugins=
pylint.extensions.check_elif,
pylint.extensions.redefined_variable_type,
pylint.extensions.overlapping_exceptions,
pylint.extensions.empty_comment,
pylint.extensions.while_used,
pylint_secure_coding_standard
[DESIGN]
# For entries classes, we (often) only use the `__init__` magic method.
min-public-methods=0

35
pyproject.toml Normal file

@ -0,0 +1,35 @@
# Pylint
[tool.pylint.MASTER]
## Required hook as we use absolute imports within the code.
init-hook = 'import sys; sys.path.append("archey/")'
## C sources of the `netifaces` module won't be available.
## Let's ignore it during linting please.
extension-pkg-whitelist = "netifaces"
## Automatically detects the number of CPU available to use.
jobs = 0
## For the time being, disable `similarities` checker due to false positives across tests modules.
## See PyCQA/pylint#214.
disable = "similarities"
## Additional plugins to check the code base against.
load-plugins = [
"pylint.extensions.check_elif",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.empty_comment",
"pylint.extensions.while_used",
"pylint_secure_coding_standard",
]
[tool.pylint.DESIGN]
## For entries classes, we (often) only use the `__init__` magic method.
min-public-methods = 0
# Mypy
[[tool.mypy.overrides]]
## netifaces is not typed and does not provide any stub
module = "netifaces"
ignore_missing_imports = true