Skip to content

Commit

Permalink
Replace Black with Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Nov 21, 2023
1 parent 5d800e4 commit a733309
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 82 deletions.
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ typing-extensions = ">=3.7.4"
pre-commit = "*"
pytest = "*"
pytest-django = "*"
pytest-ruff = "*"
pytest-env = "<=0.8.1"
coveralls = ">=3.1.1"
pytest-cov = "<=4.0.0"
factory-boy = "*"
ipython = "*"
pytest-mock = "*"
ipdb = "*"
pytest-socket = "==0.5.1"
pytest-socket = "==0.6.0"
wheel = ">0.37.0"
ruff = "==0.1.5"

Expand Down
135 changes: 60 additions & 75 deletions Pipfile.lock

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

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This section assumes a working python 3.8 environment with Pipenv installed.
* `cp ec_api/settings/local.py.example ec_api/settings/local.py`
* Install Python dependencies: `pipenv install --dev`
* Run the test suite: `pytest`
* Run lint checks: `pytest --flakes`
* Auto-format: `black .`
* Run lint checks: `ruff .`
* Auto-format: `ruff format .`

## Pre-commit

Expand Down
2 changes: 1 addition & 1 deletion ec_api/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def root(*path):
}

PIPELINE["SASS_ARGUMENTS"] = (
" -I " + dc_design_system.DC_SYSTEM_PATH + "/system"
" -I " + dc_design_system.DC_SYSTEM_PATH + "/system"
)

PIPELINE["CSS_COMPRESSOR"] = "pipeline.compressors.NoopCompressor"
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ target-version = ['py38']
norecursedirs = ".git __pycache__ .aws-sam"
addopts = "--ignore=*/__pycache__ --ignore=.* --disable-socket"
python_files = "test_*.py"
flakes-ignore = [
"ImportStarUsage"
]
env = "RUN_ENV=test"
DJANGO_SETTINGS_MODULE = "ec_api.settings.testing"
FAIL_INVALID_TEMPLATE_VARS = "1"
Expand Down

0 comments on commit a733309

Please sign in to comment.