Skip to content

Commit

Permalink
Add more pre-commit-hooks lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and claudep committed Jan 19, 2025
1 parent e898434 commit 15e1130
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a [Jazzband](https://jazzband.co/) project. By contributing you agree to
by the [Contributor Code of Conduct](https://jazzband.co/about/conduct) and follow the
[guidelines](https://jazzband.co/about/guidelines).

If you'd like to contribute, simply fork
If you'd like to contribute, simply fork
[the repository](https://github.com/jazzband/tablib), commit your changes to a feature
branch, and send a pull request to `master`. Make sure you add yourself to
[AUTHORS](https://github.com/jazzband/tablib/blob/master/AUTHORS).
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
env:
FORCE_COLOR: 1
PIP_DISABLE_PIP_VERSION_CHECK: 1

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,21 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: forbid-submodules
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

ci:
autoupdate_schedule: quarterly
6 changes: 3 additions & 3 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ registered.

.. admonition:: Excluding Support

If the format excludes support for an import/export mechanism (*e.g.*
:class:`csv <tablib.Dataset.csv>` excludes
If the format excludes support for an import/export mechanism (*e.g.*
:class:`csv <tablib.Dataset.csv>` excludes
:class:`Databook <tablib.Databook>` support),
simply don't define the respective class methods.
Appropriate errors will be raised.
Expand All @@ -138,7 +138,7 @@ registered.
registry.register('xxx', MyXXXFormatClass())

3. From then on, you should be able to use your new custom format as if it were
a built-in Tablib format, e.g. using ``dataset.export('xxx')`` will use the
a built-in Tablib format, e.g. using ``dataset.export('xxx')`` will use the
``MyXXXFormatClass.export_set`` method.

.. _testing:
Expand Down
1 change: 0 additions & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ Pythons Supported
Python 3.6+ is officially supported.

Now, go :ref:`install Tablib <install>`.

2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Now that we have extra meta-data on our rows, we can easily filter our :class:`D
>>> students.filter(['female']).yaml
- {first: Bessie, Last: Monke}

By default, when you pass a list of tags you get filter type or. ::
By default, when you pass a list of tags you get filter type or. ::

>>> students.filter(['female', 'creative']).yaml
- {first: Daniel, Last: Dupont}
Expand Down
2 changes: 1 addition & 1 deletion tests/files/issue_524.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
title: Voice of Miki Vanoušek
title: Voice of Miki Vanoušek
4 changes: 2 additions & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest
pytest-cov
odfpy
openpyxl>=2.6.0
pytest
pytest-cov
pyyaml
tabulate
xlrd
Expand Down

0 comments on commit 15e1130

Please sign in to comment.