Skip to content

Commit 2048d1f

Browse files
authored
ci(deps): update coatl-dev actions and workflows (#52)
1 parent d4cb651 commit 2048d1f

5 files changed

Lines changed: 34 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
pylint:
11-
uses: coatl-dev/workflows/.github/workflows/pylint.yml@92e51b14907b5aac1a8af1fcd9c2a1a5369dc47a # v7.0.32
11+
uses: coatl-dev/workflows/.github/workflows/pylint.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0
1212
with:
1313
path: src
1414

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1818

1919
- name: Upload package to PyPI
20-
uses: coatl-dev/actions/pypi-upload@283f0790110a211f3255faeda31417d81823fd02 # v7.1.1
20+
uses: coatl-dev/actions/pypi-upload@499c77f2bc6f909d372849058517ca2e39ce16d4 # v7.1.3
2121
with:
2222
password: ${{ secrets.PYPI_API_TOKEN_JAVA_API_PKG }}
2323

2424
- name: Upload stubs to PyPI
25-
uses: coatl-dev/actions/pypi-upload@283f0790110a211f3255faeda31417d81823fd02 # v7.1.1
25+
uses: coatl-dev/actions/pypi-upload@499c77f2bc6f909d372849058517ca2e39ce16d4 # v7.1.3
2626
with:
2727
python-version: '3.12'
2828
password: ${{ secrets.PYPI_API_TOKEN_JAVA_API_STUBS }}

‎.github/workflows/tox.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55

66
jobs:
77
tox-package:
8-
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@92e51b14907b5aac1a8af1fcd9c2a1a5369dc47a # v7.0.32
8+
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0
99

1010
tox-stubs:
11-
uses: coatl-dev/workflows/.github/workflows/tox.yml@92e51b14907b5aac1a8af1fcd9c2a1a5369dc47a # v7.0.32
11+
uses: coatl-dev/workflows/.github/workflows/tox.yml@d7cf5f9059f9a5fa365b8c9e06ff63f5d968ddb0 # v7.1.0
1212
with:
1313
python-versions: |
1414
3.9

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: sort-all
1212
files: ^src/
1313
- repo: https://github.com/bwhmather/ssort
14-
rev: 0.17.0
14+
rev: 0.19.0
1515
hooks:
1616
- id: ssort
1717
files: ^src/
@@ -23,8 +23,8 @@ repos:
2323
rev: 1.5.0
2424
hooks:
2525
- id: unimport
26-
files: ^src/
2726
language_version: python3.12
27+
files: ^src/
2828
- repo: https://github.com/PyCQA/isort
2929
rev: 10.0.0b1
3030
hooks:
@@ -42,16 +42,15 @@ repos:
4242
- id: docformatter
4343
files: ^src/
4444
args: [--config, tox.ini]
45-
language_version: python3.12
4645
- repo: https://github.com/coatl-dev/flake8
4746
rev: 5.0.4
4847
hooks:
4948
- id: flake8
5049
name: flake8-package
50+
language_version: python3.12
5151
files: ^src/
5252
args: [--config, tox.ini]
5353
additional_dependencies: [pydoclint]
54-
language_version: python3.12
5554
- repo: https://github.com/PyCQA/flake8
5655
rev: 7.4.1
5756
hooks:

‎.pylintrc‎

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ fail-on=
4141
# Specify a score threshold under which the program will exit with error.
4242
fail-under=10
4343

44+
# The files to lint. The flag can also be omitted as pylint will try to lint
45+
# any file passed as argument. This can be used to set files to a directory in
46+
# a configuration file and invoke pylint by only typing pylint on the command
47+
# line. Any file passed as argument will overwrite any file set in the
48+
# configuration file.
49+
files=
50+
4451
# Interpret the stdin as a python script, whose filename needs to be passed as
4552
# the module_or_package argument.
4653
#from-stdin=
@@ -93,7 +100,7 @@ prefer-stubs=no
93100

94101
# Minimum Python version to use for version dependent checks. Will default to
95102
# the version used to run pylint.
96-
py-version=3.14
103+
py-version=3.15
97104

98105
# Discover python modules and packages in the file system subtree.
99106
recursive=no
@@ -337,6 +344,10 @@ expected-line-ending-format=
337344
# Regexp for a line that is allowed to be longer than the limit.
338345
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
339346

347+
# Regexp for a part of a line that will not be counted when calculating the
348+
# line length.
349+
#ignore-pattern-in-long-lines=
350+
340351
# Number of spaces of indent required inside a hanging or continued line.
341352
indent-after-paren=4
342353

@@ -389,6 +400,9 @@ import-graph=
389400
# to the given file (report RP0402 must not be disabled).
390401
int-import-graph=
391402

403+
# Force import order to recognize a module as part of a first party library.
404+
known-first-party=
405+
392406
# Force import order to recognize a module as part of the standard
393407
# compatibility libraries.
394408
known-standard-library=
@@ -505,9 +519,9 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor
505519
msg-template=
506520

507521
# Set the output format. Available formats are: 'text', 'parseable',
508-
# 'colorized', 'json2' (improved json format), 'json' (old json format), msvs
509-
# (visual studio) and 'github' (GitHub actions). You can also give a reporter
510-
# class, e.g. mypackage.mymodule.MyReporterClass.
522+
# 'colorized', 'json2' (improved json format), 'json' (old json format), 'msvs'
523+
# (visual studio), 'github' (GitHub actions) and 'junit' (JUnit XML). You can
524+
# also give a reporter class, e.g. mypackage.mymodule.MyReporterClass.
511525
#output-format=
512526

513527
# Tells whether to display a full report or only the messages.
@@ -531,7 +545,8 @@ ignore-imports=yes
531545
# Signatures are removed from the similarity computation
532546
ignore-signatures=yes
533547

534-
# Minimum lines number of a similarity.
548+
# Minimum lines number of a similarity. Setting it to 0 will disable the check,
549+
# but you should use disable=duplicate-code instead.
535550
min-similarity-lines=4
536551

537552

@@ -605,6 +620,12 @@ ignored-checks-for-mixins=no-member,
605620
# qualified names.
606621
ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
607622

623+
# Couples of functions with side effects that are often believed to return
624+
# something and the equivalent function that does return something, separated
625+
# by a comma. Used to hint at the right function to use in the 'assignment-
626+
# from-no-return' message.
627+
known-side-effects-only-functions=reverse:reversed,sort:sorted
628+
608629
# Show a hint with possible names when a member name was not found. The aspect
609630
# of finding the hint is based on edit distance.
610631
missing-member-hint=yes

0 commit comments

Comments
 (0)