Skip to content

Commit e1c7828

Browse files
committed
update dependencies
1 parent 99bbf5f commit e1c7828

File tree

7 files changed

+36
-23
lines changed

7 files changed

+36
-23
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.env
2+
.venv
23
.mypy_cache
34
.pyconlang
45
.pytest_cache
56
build
67
*.egg-info
8+
**/__pycache__

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ all: format lint type test
44
.PHONY: lint
55
lint:
66
isort . -q
7-
autoflake . --recursive \
8-
--exclude .env \
9-
--remove-unused-variables \
10-
--remove-all-unused-imports \
11-
--expand-star-imports \
12-
--in-place
7+
autoflake .
138

149
.PHONY: format
1510
format:
@@ -22,12 +17,12 @@ type:
2217

2318
.PHONY: test
2419
test:
25-
pytest -q
20+
pytest
2621

2722

2823
.PHONY: env
2924
env:
30-
! [ -d .env ] && python3 -m venv .env || true
25+
! [ -d .venv ] && python3 -m venv .venv || true
3126

3227
.PHONY: install
3328
install:
@@ -39,5 +34,5 @@ diagrams.html: pyconlang/parser.py pyconlang/lexicon/parser.py
3934

4035
.PHONY: clean
4136
clean:
42-
rm -r .env
37+
rm -r .venv
4338
rm diagrams.html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A collection of Python utilities for conlanging.
33

44
### Installing
5-
Requires `python >= 3.10`:
5+
Requires `python >= 3.11`:
66
```shell
77
$ pip install git+https://github.com/neta-elad/pyconlang.git
88
```

pyproject.toml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "pyconlang"
77
description = "Python utility for conlanging"
88
readme = "README.md"
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.11"
1010
keywords = ["conlang", "conlanging"]
1111
license = { text = "BSD 3-Clause License" }
1212
dependencies = [
@@ -25,13 +25,13 @@ dynamic = ["version"]
2525

2626
[project.optional-dependencies]
2727
test = [
28-
"mypy==0.971",
29-
"types-Markdown==3.4.0",
30-
"types-toml==0.10.2",
31-
"black==22.6.0",
32-
"isort==5.10.1",
33-
"autoflake==1.4",
34-
"pytest==7.1.2",
28+
"mypy==1.1.1",
29+
"types-Markdown==3.4.2.5",
30+
"types-toml==0.10.8.5",
31+
"black==23.1.0",
32+
"isort==5.12.0",
33+
"autoflake==2.0.2",
34+
"pytest==7.2.2",
3535
"pyparsing[diagrams]==3.0.9"
3636
]
3737

@@ -53,9 +53,21 @@ disallow_untyped_calls = true
5353
disallow_untyped_defs = true
5454

5555
[tool.black]
56-
extend-exclude = ".env"
56+
extend-exclude = ".venv"
5757

5858
[tool.isort]
5959
profile = "black"
6060
src_paths = ["pyconlang", "tests"]
61-
skip = [".env"]
61+
skip = [".venv"]
62+
63+
[tool.autoflake]
64+
recursive = true
65+
exclude = [".venv"]
66+
remove_unused_variables = true
67+
remove_all_unused_imports = true
68+
expand_star_imports = true
69+
in_place = true
70+
71+
[tool.pytest.ini_options]
72+
addopts = "-q"
73+

stubs/wcwidth/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

stubs/wcwidth/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def wcswidth(string: str) -> int: ...

tests/evolve/test_tracer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55

66
def test_grouping():
7-
assert group_trace_lines([TraceLine("rule1", "", "a", "b"),], "word1") == {
7+
assert group_trace_lines(
8+
[
9+
TraceLine("rule1", "", "a", "b"),
10+
],
11+
"word1",
12+
) == {
813
"word1": [
914
TraceLine("rule1", "word1", "a", "b"),
1015
]

0 commit comments

Comments
 (0)