Merge pull request #231 from FoamyGuy/support_py312

python 3.12 support
This commit is contained in:
Dan Halbert 2024-07-26 23:38:48 -04:00 committed by GitHub
commit 27284f366e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View file

@ -9,7 +9,7 @@ repos:
- id: black
exclude: "^tests/bad_python.py$"
- repo: https://github.com/pycqa/pylint
rev: v2.15.5
rev: v3.1.0
hooks:
- id: pylint
name: lint (examples)

View file

@ -246,7 +246,7 @@ ignore-docstrings=yes
ignore-imports=yes
# Minimum lines number of a similarity.
min-similarity-lines=4
min-similarity-lines=8
[BASIC]

View file

@ -10,8 +10,8 @@ import glob
import os
import re
import json
import importlib.resources
import appdirs
import pkg_resources
import requests
#: Version identifier for a bad MPY file format
@ -27,9 +27,8 @@ PLATFORMS = {"py": "py", "8mpy": "8.x-mpy", "9mpy": "9.x-mpy"}
REQUESTS_TIMEOUT = 30
#: The path to the JSON file containing the metadata about the bundles.
BUNDLE_CONFIG_FILE = pkg_resources.resource_filename(
"circup", "config/bundle_config.json"
)
BUNDLE_CONFIG_FILE = importlib.resources.files("circup") / "config/bundle_config.json"
#: Overwrite the bundles list with this file (only done manually)
BUNDLE_CONFIG_OVERWRITE = os.path.join(DATA_DIR, "bundle_config.json")
#: The path to the JSON file containing the local list of bundles.