Skip to content

Commit

Permalink
Make regenerating requirements unnecessary
Browse files Browse the repository at this point in the history
Point back at pyproject.toml this might avoid a pre-commit and avoid out of sync things.
  • Loading branch information
Carreau committed Jun 3, 2024
1 parent 58530b9 commit 95aa55e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 68 deletions.
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ repos:
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
- id: ruff-format

- repo: local
hooks:
- id: generate_requirements.py
name: generate_requirements.py
language: system
entry: python tools/generate_requirements.py
files: "pyproject.toml|requirements/.*\\.txt|tools/generate_requirements.py"

ci:
autofix_prs: false
autofix_commit_msg: |
Expand Down
6 changes: 1 addition & 5 deletions requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
sphinx>=6
tabulate>=0.8.10
tomli>=1.1.0;python_version<'3.11'
.[name]
5 changes: 1 addition & 4 deletions requirements/developer.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
pre-commit>=3.3
tomli; python_version < '3.11'
.[name]
8 changes: 1 addition & 7 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
numpy>=1.22
matplotlib>=3.5
pydata-sphinx-theme>=0.13.3
sphinx>=7
intersphinx_registry
.[name]
6 changes: 1 addition & 5 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
pytest
pytest-cov
matplotlib
.[name]
39 changes: 0 additions & 39 deletions tools/generate_requirements.py

This file was deleted.

0 comments on commit 95aa55e

Please sign in to comment.