-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generating pre-commit config and pyproject with nens-meta
- Loading branch information
Showing
8 changed files
with
181 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 88 | ||
|
||
[*.{toml,yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.{json,geojson,jsonl,js,jsx,ts,tsx,css,less,scss,html,xml}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
max_line_length = off | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
### Extra lines below are preserved ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
|
||
### Extra lines below are preserved ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by nens-meta. | ||
# See https://nens-meta.readthedocs.io/en/latest/config-files.html for info. | ||
# If you want this file to be left alone, add "nens_meta_leave_alone" in | ||
# all caps somewhere in this file in a comment. | ||
# | ||
|
||
name: nens-meta | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
nens-meta: | ||
name: nens-meta | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
- name: Install dependencies | ||
run: python -m pip install -r requirements.txt | ||
- name: Test | ||
run: pytest | ||
|
||
### Extra lines below are preserved ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,160 +1,44 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
# Pyc/pyo/backup files. | ||
*.py[co] | ||
*~ | ||
*.swp | ||
*.pyc | ||
.DS_Store | ||
|
||
# Packages/buildout/pip/pipenv | ||
*.egg | ||
*.egg-info | ||
sdist | ||
pip-log.txt | ||
bower_components/ | ||
node_modules/ | ||
doc/build/ | ||
ansible/*.retry | ||
.venv | ||
venv | ||
bin/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
pyvenv.cfg | ||
dist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
*.suggestion | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
# Our generated files | ||
for_step_summary.md | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
cover/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
.pybuilder/ | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
# For a library or package, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
# .python-version | ||
|
||
# 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/#use-with-ide | ||
.pdm.toml | ||
|
||
# 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 | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
.tox | ||
htmlcov | ||
.codeintel | ||
coverage.* | ||
.pytest_cache | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
# Pycharm, visual studio | ||
.idea | ||
.vscode | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
# Docker | ||
docker-compose.override.yml | ||
|
||
# PyCharm | ||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can | ||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||
# and can be added to the global gitignore or merged into this file. For a more nuclear | ||
# option (not recommended) you can uncomment the following to ignore the entire idea folder. | ||
#.idea/ | ||
### Extra lines below are preserved ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[meta] | ||
is_python_project = true | ||
uses_ansible = false | ||
meta_version = "0.5.dev0" | ||
project_name = "bro-hub" | ||
package_name = "bro_hub" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-added-large-files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.13 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: ["--fix"] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
### Extra lines below are preserved ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Initially generated by nens-meta | ||
|
||
[build-system] | ||
requires = ["setuptools>=69"] | ||
|
||
[project] | ||
name = "bro-hub" | ||
requires-python = ">=3.11" | ||
dependencies = [] | ||
description = "Simplify data management for BRO" | ||
authors = [] | ||
readme = "README.md" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] # pytest added by nens-meta | ||
|
||
[tool.setuptools] | ||
packages = ["bro_hub"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["bro_hub"] | ||
log_level = "DEBUG" | ||
|
||
[tool.coverage.run] | ||
source = ["bro_hub"] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
skip_empty = true | ||
|
||
[tool.ruff] | ||
target-version = "py311" | ||
|
||
[tool.ruff.lint] | ||
select = ["E4", "E7", "E9", "F", "I", "UP", "C901"] | ||
|
||
[tool.zest-releaser] | ||
release = false | ||
|
||
[tool.pyright] | ||
include = ["bro_hub"] | ||
venvPath = "." | ||
venv = ".venv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters