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

[repo-helper] Configuration Update #77

Merged
merged 2 commits into from
Apr 16, 2022
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
10 changes: 5 additions & 5 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ daysUntilStale: 180

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 180
daysUntilClose: false

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []
Expand All @@ -31,10 +31,10 @@ exemptAssignees: false
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
markComment: false
# This issue has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.

# Comment to post when removing the stale label.
# unmarkComment: >
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conda_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade "whey-conda" "setuptools<61,>=40.6.0" "wheel>=0.34.2"
python -m pip install --upgrade "whey-conda" "setuptools!=61.*,<61,>=40.6.0" "wheel>=0.34.2"
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda update -n base conda
$CONDA/bin/conda config --add channels conda-forge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade "mkrecipe" "setuptools<61,>=40.6.0" "wheel>=0.34.2"
python -m pip install --upgrade "mkrecipe" "setuptools!=61.*,<61,>=40.6.0" "wheel>=0.34.2"
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
$CONDA/bin/conda update -n base conda
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: ^domdf_python_tools/compat/importlib_resources.py$

repos:
- repo: /~https://github.com/repo-helper/pyproject-parser
rev: v0.4.2
rev: v0.4.3
hooks:
- id: reformat-pyproject

Expand Down Expand Up @@ -67,7 +67,7 @@ repos:
- --keep-runtime-typing

- repo: /~https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.11
rev: v1.1.13
hooks:
- id: remove-crlf
- id: forbid-crlf
Expand All @@ -78,7 +78,7 @@ repos:
- id: snippet-fmt

- repo: /~https://github.com/python-formate/formate
rev: v0.4.9
rev: v0.4.10
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
Expand Down
23 changes: 23 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
default: lint

pdf-docs: latex-docs
make -C doc-source/build/latex/

latex-docs:
SPHINX_BUILDER=latex tox -e docs

unused-imports:
tox -e lint -- --select F401

incomplete-defs:
#!/usr/bin/env bash
tox -e mypy -- --disallow-incomplete-defs --disallow-untyped-defs | grep "Function is missing a .* annotation" || exit 0

vdiff:
git diff $(repo-helper show version -q)..HEAD

bare-ignore:
greppy '# type:? *ignore(?!\[|\w)' -s

lint: unused-imports incomplete-defs bare-ignore
tox -n qa
26 changes: 24 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = [ "setuptools<61,>=40.6.0", "wheel>=0.34.2",]
requires = [ "setuptools!=61.*,<61,>=40.6.0", "wheel>=0.34.2",]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -9,7 +9,24 @@ description = "Helpful functions for Python 🐍 🛠️"
readme = "README.rst"
requires-python = ">=3.6"
keywords = [ "utilities",]
dynamic = [ "classifiers", "dependencies",]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dynamic = [ "dependencies",]

[[project.authors]]
name = "Dominic Davis-Foster"
Expand Down Expand Up @@ -144,6 +161,11 @@ show_error_codes = true
[tool.snippet-fmt]
directives = [ "code-block",]

[tool.setuptools]
zip-safe = false
include-package-data = true
platforms = [ "Windows", "macOS", "Linux",]

[tool.dependency-dash."requirements.txt"]
order = 10

Expand Down