Skip to content

Commit

Permalink
🔧 upgrade tooling, use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Sep 2, 2024
1 parent 44bbf02 commit 4d8692b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 100 deletions.
40 changes: 15 additions & 25 deletions .pre-commit-config.yaml
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
3 changes: 2 additions & 1 deletion MANIFEST.in
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 *
26 changes: 26 additions & 0 deletions pyproject.toml
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"]
18 changes: 0 additions & 18 deletions setup.cfg

This file was deleted.

56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

0 comments on commit 4d8692b

Please sign in to comment.