Skip to content

Commit

Permalink
deps; switch from black to ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Jan 30, 2024
1 parent a4b1796 commit 45aff86
Show file tree
Hide file tree
Showing 14 changed files with 215 additions and 195 deletions.
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
ci:
skip: ["eslint"]
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.1.15
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: local
hooks:
- id: prettier
Expand Down
26 changes: 13 additions & 13 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ click==8.1.7
# flask
colorama==0.4.6
# via tox
coverage==7.4.0
coverage==7.4.1
# via
# coverage
# pytest-cov
cryptography==41.0.7
cryptography==42.0.1
# via secretstorage
dill==0.3.7
dill==0.3.8
# via pylint
distlib==0.3.8
# via virtualenv
Expand All @@ -78,13 +78,13 @@ flask==3.0.1
# flask-babel
flask-babel==4.0.0
# via fava (pyproject.toml)
furo==2023.9.10
furo==2024.1.29
# via fava (pyproject.toml)
google-api-core==2.15.0
google-api-core==2.16.0
# via google-api-python-client
google-api-python-client==2.114.0
google-api-python-client==2.115.0
# via beancount
google-auth==2.26.2
google-auth==2.27.0
# via
# google-api-core
# google-api-python-client
Expand Down Expand Up @@ -183,7 +183,7 @@ platformdirs==4.1.0
# pylint
# tox
# virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via
# pytest
# tox
Expand Down Expand Up @@ -236,7 +236,7 @@ pyproject-api==1.6.1
# via tox
pyproject-hooks==1.0.0
# via build
pytest==7.4.4
pytest==8.0.0
# via
# beancount
# fava (pyproject.toml)
Expand All @@ -247,7 +247,7 @@ python-dateutil==2.8.2
# via beancount
python-magic==0.4.27
# via beancount
pytz==2023.3.post1
pytz==2023.4
# via flask-babel
pyyaml==6.0.1
# via pre-commit
Expand Down Expand Up @@ -286,7 +286,7 @@ sphinx==7.2.6
# furo
# sphinx-autodoc-typehints
# sphinx-basic-ng
sphinx-autodoc-typehints==1.25.2
sphinx-autodoc-typehints==1.25.3
# via fava (pyproject.toml)
sphinx-basic-ng==1.0.0b2
# via furo
Expand All @@ -310,15 +310,15 @@ tox==4.12.1
# via fava (pyproject.toml)
twine==4.0.2
# via fava (pyproject.toml)
types-setuptools==69.0.0.20240115
types-setuptools==69.0.0.20240125
# via fava (pyproject.toml)
types-simplejson==3.19.0.2
# via fava (pyproject.toml)
typing-extensions==4.9.0
# via mypy
uritemplate==4.1.1
# via google-api-python-client
urllib3==2.1.0
urllib3==2.2.0
# via
# requests
# twine
Expand Down
1 change: 1 addition & 0 deletions contrib/scripts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Various utilities."""

from __future__ import annotations

import json
Expand Down
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"user": ("https://github.com/%s", "@%s"),
}

autodoc_default_options = {
"members": True,
"undoc-members": True,
}
autodoc_default_options = {"members": True, "undoc-members": True}
typehints_use_rtype = False


Expand Down
Loading

0 comments on commit 45aff86

Please sign in to comment.