Skip to content

Commit

Permalink
Apply cruft updates (#470)
Browse files Browse the repository at this point in the history
Automatically generated PR from `repo_conformance` to apply updates
using `scruft`.
  • Loading branch information
allenporter authored Nov 30, 2024
1 parent 3243dd6 commit 2755c22
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/allenporter/cookiecutter-python",
"commit": "ae5501352e9a6fe363996818fc2b4c82f5816450",
"commit": "d2c63d2a4c218441b0c26bd4aac7b744b85684bb",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -38,14 +39,17 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -55,6 +59,7 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -67,6 +72,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -78,6 +84,41 @@ target/
# celery beat schedule file
celerybeat-schedule

# IPython
profile_default/
ipython_config.py

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

Expand All @@ -103,3 +144,7 @@ venv.bak/
# mypy
.mypy_cache/
/.idea/
.dmypy.json
dmypy.json

.DS_Store
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[lint]
ignore = ["E501"]
9 changes: 6 additions & 3 deletions script/run-mypy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ set -o errexit
# other common virtualenvs
my_path=$(git rev-parse --show-toplevel)

if [ -f "${my_path}/venv/bin/activate" ]; then
. "${my_path}/venv/bin/activate"
fi
for venv in venv .venv .; do
if [ -f "${my_path}/${venv}/bin/activate" ]; then
. "${my_path}/${venv}/bin/activate"
break
fi
done

mypy ${my_path}

0 comments on commit 2755c22

Please sign in to comment.