Skip to content

Commit 05ec7d7

Browse files
committed
New release v1.4.0
1 parent 7561101 commit 05ec7d7

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
max-parallel: 5
1919
matrix:
20-
python-version: [3.7, 3.8, 3.9, '3.10']
20+
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
2121

2222
steps:
2323
- name: Checkout code 🛎️

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
additional_dependencies:
1515
- mdformat-toc
1616
- repo: https://github.com/Lucas-C/pre-commit-hooks
17-
rev: v1.3.1
17+
rev: v1.4.0
1818
hooks:
1919
- id: forbid-crlf
2020
- id: remove-crlf

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ into separate repos:
3737

3838
```yaml
3939
- repo: https://github.com/Lucas-C/pre-commit-hooks
40-
rev: v1.3.1
40+
rev: v1.4.0
4141
hooks:
4242
- id: forbid-crlf
4343
- id: remove-crlf

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
name='pre-commit-hooks',
66
description='Some out-of-the-box hooks for pre-commit',
77
url='https://github.com/Lucas-C/pre-commit-hooks',
8-
version='1.3.1',
8+
version='1.4.0',
99

1010
author='Lucas Cimon',
1111
author_email='[email protected]',
@@ -17,6 +17,7 @@
1717
'Programming Language :: Python :: 3.8',
1818
'Programming Language :: Python :: 3.9',
1919
'Programming Language :: Python :: 3.10',
20+
'Programming Language :: Python :: 3.11',
2021
'Programming Language :: Python :: Implementation :: CPython',
2122
'Programming Language :: Python :: Implementation :: PyPy',
2223
],

tests/remove_tabs_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
@pytest.mark.parametrize(
77
('input_s', 'expected'),
88
(
9-
('foo \t\nbar', 'foo \nbar'),
10-
('bar\n\tbaz\n', 'bar\n baz\n'),
9+
('\tfoo', ' foo'),
10+
('foo\t', 'foo '),
11+
('foo \t', 'foo '),
12+
('foo \t \t\t bar', 'foo bar'),
1113
('No leading\ttab\n\tleading\ttab\n \tSpace then\tTab\n', 'No leading tab\n leading tab\n Space then Tab\n'),
1214
('Tabs\tbetween\tevery\tword\tin\tthe\tline.\n', 'Tabs between every word in the line.\n',),
1315
('Space \tthen \ttab \tbetween \tevery \tword \tin \tthe \tline.',

0 commit comments

Comments
 (0)