Skip to content

Commit

Permalink
Merge pull request #42 from questionlp/develop
Browse files Browse the repository at this point in the history
Bump flask, gunicorn, ruff and pytest dependencies
  • Loading branch information
questionlp authored Apr 17, 2024
2 parents acde639 + b57b062 commit 9d96b2e
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 36 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changes

## 2.8.3

### Component Changes

- Upgrade wwdtm from 2.8.0 to 2.8.2
- Upgrade flask from 3.0.0 to 3.0.3
- Upgrade gunicorn from 21.2.0 to 22.0.0

### Development Changes

- Upgrade ruff from 0.1.13 to 0.3.6
- Upgrade pytest from 7.4.4 to 8.1.1

## 2.8.2

### Development Changes
Expand Down
6 changes: 3 additions & 3 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def create_app():
]

# Check to see if panelistscore_decimal column exists and set a flag
app.config["app_settings"][
"has_decimal_scores_column"
] = utility.panelist_decimal_score_exists(database_settings=app.config["database"])
app.config["app_settings"]["has_decimal_scores_column"] = (
utility.panelist_decimal_score_exists(database_settings=app.config["database"])
)

# Register application blueprints
app.register_blueprint(main_bp)
Expand Down
2 changes: 1 addition & 1 deletion app/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# vim: set noai syntax=python ts=4 sw=4:
"""Application Version for Wait Wait Graphs Site."""

APP_VERSION = "2.8.2"
APP_VERSION = "2.8.3"
51 changes: 27 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,6 @@ norecursedirs = [

[tool.ruff]
target-version = "py310"
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # Warning
"YTT", # flake8-2020
]

exclude = [
"migrations",
Expand All @@ -50,6 +31,9 @@ exclude = [
".venv",
]

line-length = 88 # Must agree with Black

[tool.ruff.lint]
ignore = [
"B905", # zip strict=True; remove once python <3.10 support is dropped.
"D100",
Expand All @@ -68,15 +52,34 @@ ignore = [
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
"S608",
]
line-length = 88 # Must agree with Black

[tool.ruff.flake8-bugbear]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # Warning
"YTT", # flake8-2020
]

[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["chr", "typer.Argument", "typer.Option"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "pep257"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"D100",
"D101",
Expand All @@ -91,5 +94,5 @@ convention = "pep257"
"S106", # possible hardcoded password.
]

[tool.ruff.pep8-naming]
[tool.ruff.lint.pep8-naming]
staticmethod-decorators = ["pydantic.validator", "pydantic.root_validator"]
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ruff==0.1.13
ruff==0.3.6
black==24.3.0
pytest==7.4.4
pytest==8.1.1

Flask==3.0.0
gunicorn==21.2.0
Flask==3.0.3
gunicorn==22.0.0

wwdtm==2.8.0
wwdtm==2.8.2
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==3.0.0
gunicorn==21.2.0
Flask==3.0.3
gunicorn==22.0.0

wwdtm==2.8.0
wwdtm==2.8.2

0 comments on commit 9d96b2e

Please sign in to comment.