mirror of
https://github.com/riscv/riscv-opcodes.git
synced 2025-10-14 02:58:32 +08:00

* Suppress wrong import position warnings * don't depend on matplotlib unless -svg is passed on command line cc @tomaird
34 lines
1.1 KiB
INI
34 lines
1.1 KiB
INI
[MAIN]
|
|
py-version = 3.9.0
|
|
disable=
|
|
# Allow 'TODO:' in code.
|
|
fixme,
|
|
# Overly zealous duplicate code detection.
|
|
duplicate-code,
|
|
# These debatable style lints are quite annoying, and often push
|
|
# you into mixing up small changes (adding one statement to a function)
|
|
# with large refactors (splitting the function up into shorter functions).
|
|
too-few-public-methods,
|
|
too-many-arguments,
|
|
too-many-positional-arguments,
|
|
too-many-branches,
|
|
too-many-instance-attributes,
|
|
too-many-locals,
|
|
too-many-return-statements,
|
|
too-many-statements,
|
|
# Handled by Black.
|
|
line-too-long,
|
|
# Conditional dependence on matplotlib
|
|
import-outside-toplevel,
|
|
# This is technically correct but not that important.
|
|
logging-fstring-interpolation,
|
|
# TODO: These should be enabled but writing documentation for
|
|
# all of the code is not feasible in one go.
|
|
missing-module-docstring,
|
|
missing-function-docstring,
|
|
missing-class-docstring,
|
|
|
|
# These names are fine when used sensibly. Without listing them here
|
|
# Pylint will complain they are too short.
|
|
good-names=c,i,j,k,id,pc
|