summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml4
-rw-r--r--.pre-commit-config.yaml14
-rw-r--r--identify/cli.py2
-rw-r--r--identify/extensions.py1
-rw-r--r--setup.cfg4
5 files changed, 13 insertions, 12 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f235f84..80cd12e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -8,6 +8,6 @@ on:
jobs:
main:
- uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
+ uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
with:
- env: '["py38", "py39", "py310", "py311"]'
+ env: '["py39", "py310", "py311", "py312"]'
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 79ca02d..455eae1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.6.0
+ rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -10,23 +10,23 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v2.5.0
+ rev: v2.7.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder-python-imports
- rev: v3.13.0
+ rev: v3.14.0
hooks:
- id: reorder-python-imports
- args: [--py38-plus, --add-import, 'from __future__ import annotations']
+ args: [--py39-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
- rev: v3.17.0
+ rev: v3.19.0
hooks:
- id: pyupgrade
- args: [--py38-plus]
+ args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
@@ -37,6 +37,6 @@ repos:
- id: flake8
exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.11.2
+ rev: v1.13.0
hooks:
- id: mypy
diff --git a/identify/cli.py b/identify/cli.py
index bd7a501..98c77bd 100644
--- a/identify/cli.py
+++ b/identify/cli.py
@@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import json
-from typing import Sequence
+from collections.abc import Sequence
from identify import identify
diff --git a/identify/extensions.py b/identify/extensions.py
index cc3a182..09a7126 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -58,6 +58,7 @@ EXTENSIONS = {
'edn': {'text', 'clojure', 'edn'},
'ejs': {'text', 'ejs'},
'ejson': {'text', 'json', 'ejson'},
+ 'elm': {'text', 'elm'},
'env': {'text', 'dotenv'},
'eot': {'binary', 'eot'},
'eps': {'binary', 'eps'},
diff --git a/setup.cfg b/setup.cfg
index df9b810..20a05e3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = identify
-version = 2.6.1
+version = 2.6.2
description = File identification library for Python
long_description = file: README.md
long_description_content_type = text/markdown
@@ -18,7 +18,7 @@ classifiers =
[options]
packages = find:
-python_requires = >=3.8
+python_requires = >=3.9
[options.packages.find]
exclude =