Skip to content

Commit

Permalink
DEV: updates pylint and isort rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Jun 14, 2024
1 parent 055f15d commit 4966f19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fail-under=10
#from-stdin=

# Files or directories to be skipped. They should be base names, not paths.
ignore=CVS, docs
ignore=CVS, docs, data,

# Add files or directories matching the regular expressions patterns to the
# ignore-list. The regex matches against paths and can be in Posix or Windows
Expand Down Expand Up @@ -212,6 +212,14 @@ good-names=FlightPhases,
fin_set_NACA,
fin_set_E473,
HIRESW_dictionary,
prop_I_11,
S_nozzle*, # nozzle gyration tensor
r_CM_z,
r_CM_t,
r_CM_dot,
r_CM_ddot,
Kt, # transformation matrix transposed



# Good variable names regexes, separated by a comma. If names match any regex,
Expand Down Expand Up @@ -454,14 +462,18 @@ disable=raw-checker-failed,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
deprecated-pragma, # because we have some peniding deprecations in the code.
use-symbolic-message-instead,
use-implicit-booleaness-not-comparison-to-string,
use-implicit-booleaness-not-comparison-to-zero,
no-else-return,
inconsistent-return-statements,
unspecified-encoding,
no-member, # because we use funcify_method decorator
invalid-overridden-method, # because we use funcify_method decorator
fixme, # because we use TODO in the code
missing-module-docstring, # not useful for most of the modules.
attribute-defined-outside-init, # to avoid more than 200 errors (code works fine)

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ line-length = 88
include = '\.py$|\.ipynb$'
skip-string-normalization = true

[tool.isort]
profile = "black"

[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
Expand Down

0 comments on commit 4966f19

Please sign in to comment.