Skip to content

Commit

Permalink
Update skel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Apr 24, 2023
1 parent 2c654eb commit d737e41
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 230 deletions.
18 changes: 4 additions & 14 deletions .cookiecutterrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

default_context:
allow_tests_inside_package: 'no'
appveyor: 'no'
c_extension_function: '-'
c_extension_module: '-'
c_extension_optional: 'yes'
c_extension_support: cython
c_extension_test_pypi: 'yes'
c_extension_test_pypi_username: ionel
codacy: 'no'
codacy_projectid: '-'
codeclimate: 'no'
Expand All @@ -18,40 +15,33 @@ default_context:
coveralls: 'no'
distribution_name: hunter
email: [email protected]
formatter_quote_style: single
full_name: Ionel Cristian Mărieș
github_actions: 'yes'
github_actions_osx: 'yes'
github_actions_windows: 'yes'
legacy_python: 'no'
license: BSD 2-Clause License
linter: flake8
package_name: hunter
pre_commit: 'yes'
pre_commit_formatter: blue
project_name: Hunter
project_short_description: Hunter is a flexible code tracing toolkit, not for measuring coverage, but for debugging, logging, inspection and other nefarious purposes. It has a simple Python API and a convenient terminal API (see `Environment variable activation <env-var-activation_>`_).
pypi_badge: 'yes'
pypi_disable_upload: 'no'
release_date: '2021-12-15'
release_date: '2022-09-27'
repo_hosting: github.com
repo_hosting_domain: github.com
repo_main_branch: master
repo_name: python-hunter
repo_username: ionelmc
requiresio: 'yes'
scrutinizer: 'no'
setup_py_uses_pytest_runner: 'no'
setup_py_uses_setuptools_scm: 'yes'
sphinx_docs: 'yes'
sphinx_docs_hosting: https://python-hunter.readthedocs.io/
sphinx_doctest: 'no'
sphinx_theme: sphinx-py3doc-enhanced-theme
test_matrix_configurator: 'no'
test_matrix_separate_coverage: 'yes'
travis: 'no'
travis_osx: 'no'
version: 3.4.3
version: 3.5.1
version_manager: bump2version
website: https://blog.ionelmc.ro
year_from: '2015'
year_to: '2021'
year_to: '2023'
8 changes: 4 additions & 4 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
matrix:
include:
- name: 'check'
python: '3.9'
toxpython: 'python3.9'
python: '3.11'
toxpython: 'python3.11'
tox_env: 'check'
os: 'ubuntu-latest'
- name: 'docs'
python: '3.9'
toxpython: 'python3.9'
python: '3.11'
toxpython: 'python3.11'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py37-pure-cover (ubuntu/x86_64)'
Expand Down
59 changes: 29 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,53 @@
*.py[cod]
__pycache__

# Temp files
.*.sw[po]
*~
*.bak
.DS_Store

# C extensions
*.so

# Packages
# Build and package files
*.egg
*.egg-info
dist
build
eggs
.bootstrap
.build
.cache
.eggs
parts
.env
.installed.cfg
.ve
bin
var
sdist
wheelhouse
build
develop-eggs
.installed.cfg
dist
eggs
lib
lib64
venv*/
pyvenv*/
parts
pip-wheel-metadata/
pyvenv*/
sdist
var
venv*/
wheelhouse

# Installer logs
pip-log.txt

# Unit test / coverage reports
.benchmarks
.coverage
.tox
.coverage.*
.pytest
.pytest_cache/
nosetests.xml
.tox
coverage.xml
htmlcov
nosetests.xml

# Translations
*.mo
Expand All @@ -43,12 +56,12 @@ htmlcov
.mr.developer.cfg

# IDE project files
*.iml
*.komodoproject
.idea
.project
.pydevproject
.idea
.vscode
*.iml
*.komodoproject

# Complexity
output/*.html
Expand All @@ -57,20 +70,6 @@ output/*/index.html
# Sphinx
docs/_build

.DS_Store
*~
.*.sw[po]
.build
.ve
.env
.cache
.pytest
.benchmarks
.pytest_cache
.bootstrap
.appveyor.token
*.bak

# Mypy Cache
.mypy_cache/

Expand Down
41 changes: 14 additions & 27 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,32 @@
# To install the git pre-commit hook run:
# pre-commit install
# To update the pre-commit hooks run:
# pre-commit install-hooks
# To install the git pre-commit hooks run:
# pre-commit install --install-hooks
# To update the versions:
# pre-commit autoupdate
exclude: '^(.tox/|ci/templates/|src/hunter.(pth|embed)$|src/hunter/vendor/|.bumpversion.cfg$|.*\.c$)'
# Note the order is intentional to avoid multiple passes of the hooks
repos:
- repo: meta
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.262
hooks:
- id: check-useless-excludes
- id: check-hooks-apply
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude_types:
- c
- id: end-of-file-fixer
exclude_types:
- c
- id: double-quote-string-fixer
exclude: '^tests/'
- id: mixed-line-ending
args: [--fix=lf]
- id: debug-statements
exclude: '^tests/sample*|src/hunter/actions.py'
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
types: [python]
- id: isort
types: [cython]
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
types: [python]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: '^tests/'
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.1.8
hooks:
Expand Down
5 changes: 0 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
Changelog
=========

3.5.2 (2022-10-26)
------------------

* Added Python 3.11 wheels.

3.5.1 (2022-09-27)
------------------

Expand Down
4 changes: 1 addition & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To set up `python-hunter` for local development:

Now you can make your changes locally.

4. When you're done making changes run all the checks and docs builder with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::
4. When you're done making changes run all the checks and docs builder with one command::

tox

Expand All @@ -73,8 +73,6 @@ For merging, you should:
3. Add a note to ``CHANGELOG.rst`` about the changes.
4. Add yourself to ``AUTHORS.rst``.



Tips
----

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 2-Clause License

Copyright (c) 2015-2022, Ionel Cristian Mărieș. All rights reserved.
Copyright (c) 2015-2023, Ionel Cristian Mărieș. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
Expand Down
6 changes: 1 addition & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Overview
* - docs
- |docs|
* - tests
- | |github-actions| |requires|
- | |github-actions|
| |codecov|
* - package
- | |version| |wheel| |supported-versions| |supported-implementations|
Expand All @@ -23,10 +23,6 @@ Overview
:alt: GitHub Actions Build Status
:target: https://github.com/ionelmc/python-hunter/actions

.. |requires| image:: https://requires.io/github/ionelmc/python-hunter/requirements.svg?branch=master
:alt: Requirements Status
:target: https://requires.io/github/ionelmc/python-hunter/requirements/?branch=master

.. |codecov| image:: https://codecov.io/gh/ionelmc/python-hunter/branch/master/graphs/badge.svg?branch=master
:alt: Coverage Status
:target: https://codecov.io/github/ionelmc/python-hunter
Expand Down
Loading

0 comments on commit d737e41

Please sign in to comment.