Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump ruff from 0.1.0 to 0.1.3 #64

Merged
merged 2 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ repos:
- repo: local
hooks:

- id: black
name: black
- id: format
name: format
language: python
types: [ python ]
entry: black
entry: ruff format
verbose: true

- id: mypy
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<a href="https://pypi.org/project/vistafetch/" target="blank">
<img src="https://img.shields.io/pypi/pyversions/vistafetch" alt="PyPI supported Python versions">
</a>
<a href="https://github.com/psf/black" target="_blank">
<img src="https://img.shields.io/badge/code%20style-black-black" alt="Code Style: Black">
</a>
<a href="https://github.com/python/mypy" target="_blank">
<img src="https://img.shields.io/badge/typed-mypy-blue" alt="Typed: MyPy">
</a>
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ autoflake:
poetry run autoflake -r vistafetch tests

# apply code formatting with black
black:
poetry run black vistafetch tests -t py38 -t py39 -t py310 -t py311 -t py312
format:
poetry run ruff format vistafetch tests

# run static type checking with mypy
mypy:
Expand All @@ -23,15 +23,15 @@ poetry-install:
poetry install --with dev --all-extras

# run a check (ideally before comitting)
check: autoflake black mypy
check: autoflake format mypy
poetry run ruff check vistafetch/ tests/

# run pre-commit check
pre-commit:
git ls-files -- 'vistafetch/**/*' | xargs poetry run pre-commit run --verbose --files

# prettify your code (linting & formatting is applied)
pretty: autoflake ruff black
pretty: autoflake ruff format

# run all unit tests
unit-tests:
Expand Down
105 changes: 19 additions & 86 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ optional = true

[tool.poetry.group.dev.dependencies]
autoflake = "2.2.1"
black = "23.10.1"
mypy = "1.6.1"
pre-commit = "3.5.0"
pytest = "7.4.3"
pytest-cov = "4.1.0"
ruff = "0.1.0"
ruff = "0.1.3"
types-requests = "2.31.0.10"

[tool.poetry.group.release]
Expand Down
Loading