Skip to content

Commit 02534fd

Browse files
Updated configuration for pre-commit and dependencies. Added .editorconfig file.
1 parent 515aaa1 commit 02534fd

File tree

6 files changed

+282
-237
lines changed

6 files changed

+282
-237
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
end_of_line = lf
9+
charset = utf-8
10+
max_line_length = 88
11+
12+
[*.{yml,yaml,json,js,css,html}]
13+
indent_size = 2
14+
15+
[*.{md,rst}]
16+
trim_trailing_whitespace = false
17+
18+
[LICENSE]
19+
insert_final_newline = false
20+
21+
[Makefile]
22+
indent_style = tab

.pre-commit-config.yaml

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
1+
ci:
2+
autoupdate_schedule: monthly
13
repos:
4+
- repo: https://github.com/adamchainz/django-upgrade
5+
rev: 1.13.0
6+
hooks:
7+
- id: django-upgrade
8+
args: [--target-version, '4.2']
29
- repo: https://github.com/asottile/pyupgrade
3-
rev: v2.31.1
10+
rev: v3.3.1
411
hooks:
512
- id: pyupgrade
613
args: ["--py37-plus"]
7-
- repo: https://github.com/asottile/reorder_python_imports
8-
rev: v3.0.1
14+
- repo: https://github.com/asottile/reorder-python-imports
15+
rev: v3.12.0
916
hooks:
1017
- id: reorder-python-imports
11-
additional_dependencies: ["setuptools>60.9"]
1218
- repo: https://github.com/psf/black
13-
rev: 22.3.0
19+
rev: 23.9.1
1420
hooks:
1521
- id: black
1622
- repo: https://github.com/PyCQA/flake8
17-
rev: 4.0.1
23+
rev: 6.1.0
1824
hooks:
1925
- id: flake8
2026
additional_dependencies:
2127
- flake8-bugbear
2228
- flake8-implicit-str-concat
23-
args: ["--max-line-length=100"]
29+
args: ["--max-line-length=125"]
2430
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.1.0
31+
rev: v4.4.0
2632
hooks:
2733
- id: fix-byte-order-marker
2834
- id: trailing-whitespace
2935
- id: end-of-file-fixer
30-
- repo: https://github.com/trailofbits/pip-audit
31-
rev: v2.5.6
36+
- repo: https://github.com/pypa/pip-audit
37+
rev: v2.6.2
3238
hooks:
3339
- id: pip-audit

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ Then you can use it in your program:
2525

2626
```bash
2727
$ poetry shell
28-
(pyenigma-X0xzv6Ge-py3.8) $
29-
(pyenigma-X0xzv6Ge-py3.8) $ python
28+
(pyenigma-py3.12) $
29+
(pyenigma-py3.12) $ python
3030
```
3131

3232
```python
33-
Python 3.8.0 (default, Dec 11 2019, 21:43:13)
34-
[GCC 9.2.1 20191008] on linux
33+
Python 3.12.1 (main, Dec 31 2023, 00:21:59) [GCC 12.2.0] on linux
3534
Type "help", "copyright", "credits" or "license" for more information.
3635
>>> from pyenigma import enigma
3736
>>> from pyenigma import rotor

0 commit comments

Comments
 (0)