Skip to content

Commit

Permalink
Get rid of .pylintrc in favor of pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Jun 14, 2024
1 parent e9ca214 commit e280336
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .pylintrc

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ endif()
find_program(PYLINT NAMES pylint)
if (PYLINT)
add_custom_target(pylint
COMMAND ${PYLINT} ${CMAKE_SOURCE_DIR} --recursive yes --rcfile=${CMAKE_SOURCE_DIR}/.pylintrc
COMMAND ${PYLINT} ${CMAKE_SOURCE_DIR} --recursive yes --rcfile=${CMAKE_SOURCE_DIR}/pyproject.toml
COMMENT "Running pylint ...")
endif()

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ skip_glob = ['build/*', 'docs/*']
line_length = 80
preview = true
exclude = 'build/|docs/'

[tool.pylint.master]
ignore = "build,docs"
fail-under = 9.93

[tool.pylint.format]
max-line-length = 80

0 comments on commit e280336

Please sign in to comment.