-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 upgrade tooling, use pyproject.toml
- Loading branch information
Showing
5 changed files
with
43 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,24 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.3 | ||
hooks: | ||
- id: isort | ||
args: ['--profile', 'black', '--filter-files'] | ||
- repo: https://github.com/psf/black | ||
rev: '23.3.0' # Replace by any tag/version: https://github.com/psf/black/tags | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/Riverside-Healthcare/djLint | ||
rev: v1.35.2 | ||
hooks: | ||
- id: black | ||
language_version: python3 # Should be a command that runs python3.6+ | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: '6.0.0' # pick a git hash / tag to point to | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-bugbear==23.5.9] | ||
- id: djlint-reformat-django | ||
- id: djlint-django | ||
|
||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.45.0 | ||
rev: v9.9.1 | ||
hooks: | ||
- id: eslint | ||
files: \.(js|ts|vue)?$ | ||
types: [file] | ||
args: [--no-warn-ignored] | ||
entry: npx eslint | ||
additional_dependencies: | ||
- [email protected] | ||
- eslint-config-standard-with-typescript | ||
- eslint-plugin-html | ||
- eslint-plugin-import | ||
- eslint-plugin-n | ||
- eslint-plugin-promise | ||
- eslint-plugin-vue | ||
- prettier | ||
- eslint-plugin-prettier | ||
- eslint-config-standard | ||
exclude: ^.*/migrations/.*$|eslintrc.js | ||
- okfde/eslint-config-froide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
include README.md LICENSE | ||
include README.md LICENSE package.json | ||
recursive-include froide_campaign/templates * | ||
recursive-include froide_campaign/static * | ||
recursive-include froide_campaign/locale *.po | ||
recursive-include froide_campaign/locale *.mo | ||
recursive-include frontend * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[project] | ||
name = "froide_campaign" | ||
readme = "README.md" | ||
description = "Froide campaign app" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Django", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Utilities", | ||
] | ||
dynamic = ["version"] | ||
dependencies = ["froide"] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
packages = ["froide_campaign"] |