diff --git a/.copier-answers.yml b/.copier-answers.yml index 73d7fa5..93739d1 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 0.5.1 +_commit: 0.6.2 _src_path: gh:ignition-devs/copier-templates author_email: cesar@coatl.dev author_fullname: César Román diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e1e263..1753e8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,13 +9,13 @@ on: jobs: pre-commit: - uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@31a6192d52b637a7363f8add40a3f709c98147da # v7.0.35 + uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 with: skip-hooks: 'pylint' pylint: needs: pre-commit - uses: coatl-dev/workflows/.github/workflows/pylint.yml@31a6192d52b637a7363f8add40a3f709c98147da # v7.0.35 + uses: coatl-dev/workflows/.github/workflows/pylint.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 with: path: 'src' @@ -46,11 +46,11 @@ jobs: tox-package: if: ${{ github.event_name == 'pull_request' }} - uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@31a6192d52b637a7363f8add40a3f709c98147da # v7.0.35 + uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 tox-stubs: if: ${{ github.event_name == 'pull_request' }} - uses: coatl-dev/workflows/.github/workflows/tox.yml@31a6192d52b637a7363f8add40a3f709c98147da # v7.0.35 + uses: coatl-dev/workflows/.github/workflows/tox.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0 with: python-versions: | 3.9 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b380e30..6b56e01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,21 +6,22 @@ repos: name: sort-all files: ^src/ - repo: https://github.com/bwhmather/ssort - rev: 0.17.0 + rev: 0.19.0 hooks: - id: ssort files: ^src/ - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.1 + rev: 26.10.1 hooks: - id: black - repo: https://github.com/hakancelikdev/unimport - rev: 1.4.0 + rev: 1.5.0 hooks: - id: unimport + language_version: python3.12 files: ^src/ - repo: https://github.com/PyCQA/isort - rev: 9.0.2 + rev: 10.0.0b1 hooks: - id: isort name: isort-package @@ -69,7 +70,7 @@ repos: files: ^src/ types: [python] - repo: https://github.com/commitizen-tools/commitizen - rev: v4.19.0 + rev: v4.19.3 hooks: - id: commitizen - id: commitizen-branch diff --git a/.pylintrc b/.pylintrc index 87d9809..3134fee 100644 --- a/.pylintrc +++ b/.pylintrc @@ -41,6 +41,13 @@ fail-on= # Specify a score threshold under which the program will exit with error. fail-under=10 +# The files to lint. The flag can also be omitted as pylint will try to lint +# any file passed as argument. This can be used to set files to a directory in +# a configuration file and invoke pylint by only typing pylint on the command +# line. Any file passed as argument will overwrite any file set in the +# configuration file. +files= + # Interpret the stdin as a python script, whose filename needs to be passed as # the module_or_package argument. #from-stdin= @@ -93,7 +100,7 @@ prefer-stubs=no # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.14 +py-version=3.15 # Discover python modules and packages in the file system subtree. recursive=no @@ -342,6 +349,10 @@ expected-line-ending-format= # Regexp for a line that is allowed to be longer than the limit. ignore-long-lines=^\s*(# )??$ +# Regexp for a part of a line that will not be counted when calculating the +# line length. +#ignore-pattern-in-long-lines= + # Number of spaces of indent required inside a hanging or continued line. indent-after-paren=4 @@ -394,6 +405,9 @@ import-graph= # to the given file (report RP0402 must not be disabled). int-import-graph= +# Force import order to recognize a module as part of a first party library. +known-first-party= + # Force import order to recognize a module as part of the standard # compatibility libraries. known-standard-library= @@ -502,9 +516,9 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor msg-template= # Set the output format. Available formats are: 'text', 'parseable', -# 'colorized', 'json2' (improved json format), 'json' (old json format), msvs -# (visual studio) and 'github' (GitHub actions). You can also give a reporter -# class, e.g. mypackage.mymodule.MyReporterClass. +# 'colorized', 'json2' (improved json format), 'json' (old json format), 'msvs' +# (visual studio), 'github' (GitHub actions) and 'junit' (JUnit XML). You can +# also give a reporter class, e.g. mypackage.mymodule.MyReporterClass. #output-format= # Tells whether to display a full report or only the messages. @@ -528,7 +542,8 @@ ignore-imports=yes # Signatures are removed from the similarity computation ignore-signatures=yes -# Minimum lines number of a similarity. +# Minimum lines number of a similarity. Setting it to 0 will disable the check, +# but you should use disable=duplicate-code instead. min-similarity-lines=4 @@ -602,6 +617,12 @@ ignored-checks-for-mixins=no-member, # qualified names. ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace +# Couples of functions with side effects that are often believed to return +# something and the equivalent function that does return something, separated +# by a comma. Used to hint at the right function to use in the 'assignment- +# from-no-return' message. +known-side-effects-only-functions=reverse:reversed,sort:sorted + # Show a hint with possible names when a member name was not found. The aspect # of finding the hint is based on edit distance. missing-member-hint=yes