Skip to content

Commit

Permalink
ci: Switch to ruff. build: Remove pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 10, 2024
1 parent 0c9149f commit 661b1d1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 31 deletions.
13 changes: 5 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
ci:
autoupdate_schedule: quarterly
skip: [pip-compile]
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: flake8
additional_dependencies: [flake8-comprehensions]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- id: ruff
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.4
hooks:
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ tag = "extension_explorer.extract:extract_tag"
[tool.setuptools]
packages = ["extension_explorer"]

[tool.isort]
profile = "black"
line_length = 119
[tool.ruff]
line-length = 119
target-version = "py310"

[tool.ruff.lint]
select = ["E", "C4", "F", "I", "W"]
1 change: 0 additions & 1 deletion requirements_dev.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-r requirements.txt
coverage
libsass
pre-commit
pytest
pytest-flask
16 changes: 0 additions & 16 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ certifi==2024.7.4
# via
# -r requirements.txt
# requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.1.0
# via
# -r requirements.txt
Expand All @@ -41,8 +39,6 @@ click==8.1.3
# flask
coverage==7.6.1
# via -r requirements_dev.in
distlib==0.3.8
# via virtualenv
docutils==0.20.1
# via
# -r requirements.txt
Expand All @@ -53,8 +49,6 @@ exceptiongroup==1.2.2
# -r requirements.txt
# cattrs
# pytest
filelock==3.15.4
# via virtualenv
flask==3.0.0
# via
# -r requirements.txt
Expand All @@ -67,8 +61,6 @@ flask-env==2.0.0
# via -r requirements.txt
frozen-flask==1.0.1
# via -r requirements.txt
identify==2.6.0
# via pre-commit
idna==3.7
# via
# -r requirements.txt
Expand Down Expand Up @@ -133,8 +125,6 @@ mdurl==0.1.0
# markdown-it-py
myst-parser==2.0.0
# via -r requirements.txt
nodeenv==1.9.1
# via pre-commit
ocds-babel==0.3.5
# via -r requirements.txt
ocdsextensionregistry==0.3.8
Expand All @@ -158,11 +148,8 @@ platformdirs==4.2.0
# via
# -r requirements.txt
# requests-cache
# virtualenv
pluggy==0.13.1
# via pytest
pre-commit==3.8.0
# via -r requirements_dev.in
pygments==2.15.1
# via
# -r requirements.txt
Expand All @@ -183,7 +170,6 @@ pyyaml==6.0.1
# via
# -r requirements.txt
# myst-parser
# pre-commit
requests==2.32.2
# via
# -r requirements.txt
Expand Down Expand Up @@ -255,8 +241,6 @@ urllib3==2.2.2
# -r requirements.txt
# requests
# requests-cache
virtualenv==20.26.3
# via pre-commit
werkzeug==3.0.3
# via
# -r requirements.txt
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

0 comments on commit 661b1d1

Please sign in to comment.