Skip to content

Commit

Permalink
New release v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Jan 21, 2023
1 parent 7561101 commit 05ec7d7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']

steps:
- name: Checkout code 🛎️
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
additional_dependencies:
- mdformat-toc
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.4.0
hooks:
- id: forbid-crlf
- id: remove-crlf
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ into separate repos:

```yaml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.4.0
hooks:
- id: forbid-crlf
- id: remove-crlf
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name='pre-commit-hooks',
description='Some out-of-the-box hooks for pre-commit',
url='https://github.com/Lucas-C/pre-commit-hooks',
version='1.3.1',
version='1.4.0',

author='Lucas Cimon',
author_email='[email protected]',
Expand All @@ -17,6 +17,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
Expand Down
6 changes: 4 additions & 2 deletions tests/remove_tabs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
@pytest.mark.parametrize(
('input_s', 'expected'),
(
('foo \t\nbar', 'foo \nbar'),
('bar\n\tbaz\n', 'bar\n baz\n'),
('\tfoo', ' foo'),
('foo\t', 'foo '),
('foo \t', 'foo '),
('foo \t \t\t bar', 'foo bar'),
('No leading\ttab\n\tleading\ttab\n \tSpace then\tTab\n', 'No leading tab\n leading tab\n Space then Tab\n'),
('Tabs\tbetween\tevery\tword\tin\tthe\tline.\n', 'Tabs between every word in the line.\n',),
('Space \tthen \ttab \tbetween \tevery \tword \tin \tthe \tline.',
Expand Down

0 comments on commit 05ec7d7

Please sign in to comment.