Skip to content

Commit

Permalink
Add 'pygrep' lints (cookiecutter#2016)
Browse files Browse the repository at this point in the history
* add and apply minimal ruff configuration

* add 'pygrep' lint group

---------

Co-authored-by: Jens W. Klein <[email protected]>
  • Loading branch information
danieleades and jensens authored Mar 18, 2024
1 parent 659efa2 commit a17ec8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

# For building docs in foreign environments where we don't have all our
# dependencies (like readthedocs), mock out imports that cause sphinx to fail.
# see: https://docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules # noqa
# see: https://docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules


# Add parent dir to path
cwd = os.getcwd()
parent = os.path.dirname(cwd)
sys.path.append(parent)

import cookiecutter # noqa 402
import cookiecutter # noqa: E402

# -- General configuration ----------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ select = [
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # perflint
# "PGH", # pygrep-hooks
"PGH", # pygrep-hooks
# "PIE", # flake8-pie
# "PL", # pylint
# "PT", # flake8-pytest-style
Expand Down

0 comments on commit a17ec8f

Please sign in to comment.