Skip to content

Commit d9e3117

Browse files
authored
Updated pylintrc to version 3.0 (#54)
1 parent 40ec225 commit d9e3117

File tree

6 files changed

+44
-18
lines changed

6 files changed

+44
-18
lines changed

.github/workflows/test_tox.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
strategy:
6161
matrix:
6262
include:
63-
- python-version: '3.11'
64-
toxenv: 'py311,coverage'
63+
- python-version: '3.10'
64+
toxenv: 'coverage'
6565
container:
6666
image: ubuntu:22.04
6767
steps:

.pylintrc

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pylint 2.17.x configuration file
1+
# Pylint 3.0.x configuration file
22
#
33
# This file is generated by l2tdevtools update-dependencies.py, any dependency
44
# related changes should be made in dependencies.ini.
@@ -85,15 +85,14 @@ limit-inference-results=100
8585

8686
# List of plugins (as comma separated values of python module names) to load,
8787
# usually to register additional checkers.
88-
# load-plugins=
8988
load-plugins=pylint.extensions.docparams
9089

9190
# Pickle collected data for later comparisons.
9291
persistent=yes
9392

9493
# Minimum Python version to use for version dependent checks. Will default to
9594
# the version used to run pylint.
96-
py-version=3.11
95+
py-version=3.12
9796

9897
# Discover python modules and packages in the file system subtree.
9998
# recursive=no
@@ -441,6 +440,7 @@ confidence=HIGH,
441440
# --enable=similarities". If you want to run only the classes checker, but have
442441
# no Warning level messages displayed, use "--disable=all --enable=classes
443442
# --disable=W".
443+
444444
disable=assignment-from-none,
445445
bad-inline-option,
446446
consider-using-f-string,
@@ -468,6 +468,8 @@ disable=assignment-from-none,
468468
too-many-return-statements,
469469
too-many-statements,
470470
unsubscriptable-object,
471+
use-implicit-booleaness-not-comparison-to-string,
472+
use-implicit-booleaness-not-comparison-to-zero,
471473
useless-object-inheritance,
472474
useless-suppression,
473475
use-symbolic-message-instead
@@ -522,8 +524,9 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor
522524
# used to format the message information. See doc for all details.
523525
msg-template=
524526

525-
# Set the output format. Available formats are text, parseable, colorized, json
526-
# and msvs (visual studio). You can also give a reporter class, e.g.
527+
# Set the output format. Available formats are: text, parseable, colorized,
528+
# json2 (improved json format), json (old json format) and msvs (visual
529+
# studio). You can also give a reporter class, e.g.
527530
# mypackage.mymodule.MyReporterClass.
528531
#output-format=
529532

appveyor.yml

+28-9
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
11
environment:
22
matrix:
3-
- DESCRIPTION: "Windows with 32-bit Python 3.11"
3+
- DESCRIPTION: "Run tests on Windows with 32-bit Python 3.11"
44
MACHINE_TYPE: "x86"
55
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
66
PYTHON: "C:\\Python311"
77
PYTHON_VERSION: "3.11"
88
L2TBINARIES_TRACK: "dev"
9-
- DESCRIPTION: "Windows with 64-bit Python 3.11"
9+
TARGET: tests
10+
- DESCRIPTION: "Run tests on Windows with 64-bit Python 3.11"
1011
MACHINE_TYPE: "amd64"
1112
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
1213
PYTHON: "C:\\Python311-x64"
1314
PYTHON_VERSION: "3.11"
1415
L2TBINARIES_TRACK: "dev"
15-
- DESCRIPTION: "Mac OS with Python 3.11"
16+
TARGET: tests
17+
- DESCRIPTION: "Build wheel on Windows with 32-bit Python 3.11"
18+
MACHINE_TYPE: "amd64"
19+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
20+
PYTHON: "C:\\Python311-x64"
21+
PYTHON_VERSION: "3.11"
22+
L2TBINARIES_TRACK: "dev"
23+
TARGET: wheel
24+
- DESCRIPTION: "Build wheel on Windows with 64-bit Python 3.11"
25+
MACHINE_TYPE: "amd64"
26+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
27+
PYTHON: "C:\\Python311-x64"
28+
PYTHON_VERSION: "3.11"
29+
L2TBINARIES_TRACK: "dev"
30+
TARGET: wheel
31+
- DESCRIPTION: "Run tests on Mac OS with Python 3.11"
1632
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
1733
HOMEBREW_NO_INSTALL_CLEANUP: 1
34+
TARGET: tests
1835

1936
install:
20-
- cmd: "%PYTHON%\\python.exe -m pip install -U pip setuptools twine wheel"
37+
- cmd: "%PYTHON%\\python.exe -m pip install -U build pip setuptools twine wheel"
2138
- ps: If ($isWindows) { .\config\appveyor\install.ps1 }
2239
- sh: config/appveyor/install.sh
2340

2441
build_script:
25-
- cmd: "%PYTHON%\\python.exe setup.py bdist_wheel"
42+
- cmd: IF [%TARGET%]==[wheel] (
43+
"%PYTHON%\\python.exe" -m build --wheel )
2644

2745
test_script:
28-
- cmd: "%PYTHON%\\python.exe run_tests.py"
29-
- cmd: IF EXIST "tests\\end-to-end.py" (
30-
set PYTHONPATH=. &&
31-
"%PYTHON%\\python.exe" "tests\\end-to-end.py" --debug -c "config\\end-to-end.ini" )
46+
- cmd: IF [%TARGET%]==[tests] (
47+
"%PYTHON%\\python.exe" run_tests.py &&
48+
IF EXIST "tests\\end-to-end.py" (
49+
set PYTHONPATH=. &&
50+
"%PYTHON%\\python.exe" "tests\\end-to-end.py" --debug -c "config\\end-to-end.ini" ) )
3251
- sh: config/appveyor/runtests.sh
3352

3453
artifacts:

setup.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[metadata]
22
name = acstore
3-
version = 20230506
3+
version = 20231227
44
description = Attribute Container Storage (ACStore).
55
long_description = ACStore, or Attribute Container Storage, provides a stand-alone implementation to read and write attribute container storage files.
6+
long_description_content_type = text/plain
67
url = https://github.com/log2timeline/acstore
78
maintainer = Log2Timeline maintainers
89
maintainer_email = log2timeline-maintainers@googlegroups.com

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ setenv =
4444
deps =
4545
-rrequirements.txt
4646
-rtest_requirements.txt
47-
pylint >= 2.17.0, < 2.18.0
47+
pylint >= 3.0.0, < 3.1.0
4848
yamllint >= 1.26.0
4949
commands =
5050
pylint --version

utils/update_release.sh

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ DPKG_DATE=`date -R`
1212
# Update the Python module version.
1313
sed "s/__version__ = '[0-9]*'/__version__ = '${VERSION}'/" -i acstore/__init__.py
1414

15+
# Update the version in the setuptools configuration.
16+
sed "s/version = [0-9]*/version = ${VERSION}/" -i setup.cfg
17+
1518
# Update the version in the dpkg configuration files.
1619
cat > config/dpkg/changelog << EOT
1720
acstore (${VERSION}-1) unstable; urgency=low

0 commit comments

Comments
 (0)