Skip to content

Commit

Permalink
Merge pull request #231 from FoamyGuy/support_py312
Browse files Browse the repository at this point in the history
python 3.12 support
  • Loading branch information
dhalbert authored Jul 27, 2024
2 parents 9662d8b + c3da149 commit 27284f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
7 changes: 3 additions & 4 deletions circup/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import os
import re
import json
import importlib.resources
import appdirs
import pkg_resources
import requests

#: Version identifier for a bad MPY file format
Expand All @@ -27,9 +27,8 @@
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.
Expand Down

0 comments on commit 27284f3

Please sign in to comment.