Skip to content

Commit

Permalink
migrate tool settings to pyproject.toml
Browse files Browse the repository at this point in the history
Using pyproject.toml allows storing all tools' settings in a single
configuration file.

MyPy configuration is updated: doc/ does not contain any Python code
since 9d0cf6d, pycdio module requires ignoring missing imports, and
the build/ directory must be excluded, otherwise leftovers of building
wheels are confusing MyPy.

This is just a first step toward migrating ARver to pyproject.toml.
Migrating all settings from setup.py requires more research.
  • Loading branch information
arcctgx committed Nov 1, 2024
1 parent 1e56142 commit a972f70
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .mypy.ini

This file was deleted.

5 changes: 0 additions & 5 deletions .pylintrc

This file was deleted.

3 changes: 0 additions & 3 deletions .style.yapf

This file was deleted.

20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[tool.mypy]
exclude = "build"

[[tool.mypy.overrides]]
module = [
"discid",
"musicbrainzngs",
"cdio",
"pycdio"
]
ignore_missing_imports = true

[tool.pylint.basic]
# Do not require docstrings for functions whose names begin with
# underscores, or for main().
no-docstring-rgx = "^(_|main$)"

[tool.yapf]
based_on_style = "pep8"
column_limit = 100

0 comments on commit a972f70

Please sign in to comment.