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

Use pyproject for flake8 config #395

Merged
merged 3 commits into from
Jan 5, 2025
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
7 changes: 0 additions & 7 deletions .flake8

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
requirements-files: "pyproject.toml"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
plugins: "flake8-pyproject"

templates:
name: Templates Lint
Expand Down
4 changes: 2 additions & 2 deletions freezing/web/templates/explore/distance_by_lowtemp.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
requestData();
});
</script>
<style>
<style>
.c3 path, .c3 line {
stroke: var(--bs-body-color);
}
Expand All @@ -89,7 +89,7 @@
background: var(--bs-body-bg);
color: var(--bs-body-color);
}
</style>
</style>
{% endblock %}
{% block content %}
<!--Div that will hold our leaderboard chart-->
Expand Down
1 change: 0 additions & 1 deletion leaderboards/hashtag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,3 @@ tags:
For the Saddlero who rides the most miles accompanying kids who are riding under their own power.
url: https://www.bikearlingtonforum.com/forums/topic/fs-2025-pointless-kids-prizes/
sponsor: chill-dad

13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ dev = [
"black",
"djlint",
"flake8",
"flake8-pyproject",
"isort",
"pre-commit",
"pymarkdownlnt",
Expand All @@ -76,3 +77,15 @@ py-modules = ["freezing"]

[project.scripts]
freezing-server = "freezing.web.runserver:main"

[tool.flake8]
# Thanks https://www.reddit.com/r/learnpython/comments/rr6y69/comment/hqeqt68/?utm_source=share&utm_medium=web2x&context=3
ignore = [
"E203",
"E501",
"W503",
]
max-line-length = 88
max-complexity = 39
extend-ignore = "E203"
inline-quotes = "double"
Loading