Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#111)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.6...v0.6.3)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)

* Update set_theory.py B033

* Update lint_python.yml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and cclauss authored Sep 3, 2024
1 parent 49eb20b commit f64ebab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
python-version: 3.x
- run: pip install --upgrade pip ruff setuptools wheel
- name: "Ruff: Show stopper (must-fix) issues"
run: ruff check . --select=E9,F63,F7,F82,PLE,YTT .
run: ruff check --select=E9,F63,F7,F82,PLE,YTT
- name: "Ruff: All issues"
run: ruff check --exit-zero --select=ALL --statistics --target-version=py38 .
- run: ruff format
- name: "Ruff: All fixable (ruff --fix) issues"
run: ruff check --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102
--statistics --target-version=py38 . || true | grep "\[\*\]"
- run: pip install black codespell mypy pytest safety
- run: black --check .
- run: pip install codespell mypy pytest safety
- run: codespell --quiet-level=1 # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
- run: mkdir --parents --verbose .mypy_cache
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ repos:
args:
- --quiet-level=2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.6.3
hooks:
- id: ruff-format
- id: ruff
args:
- --select=A,B,C,E,F,I,PL,RUF,UP,W
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
# By default, mypy will run with mypy --ignore-missing-imports,
Expand Down
2 changes: 1 addition & 1 deletion set_theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def set_theory(abc, ac, cde):

if __name__ == "__main__":
# --> ['a', 'b', c'] with duplicate c's will be thrown away
abc = {"a", "b", "c", "c", "c"} # noqa: PLW0130
abc = {"a", "b", "c", "c", "c"} # noqa: B033
ac = abc - {"b"} # --> ['a', 'c'] with 'b' removed
cde = {"c", "d", "e"}
set_theory(abc, ac, cde)
Expand Down

0 comments on commit f64ebab

Please sign in to comment.