Skip to content

Commit

Permalink
Merge pull request #512 from plone/config-with-default-template-0beddf5d
Browse files Browse the repository at this point in the history
Config with default template
  • Loading branch information
gforcada committed Apr 28, 2024
2 parents 53adcfb + d5c64be commit 7cb4816
Show file tree
Hide file tree
Showing 38 changed files with 1,015 additions and 401 deletions.
30 changes: 22 additions & 8 deletions .editorconfig
@@ -1,4 +1,8 @@
# EditorConfig Configurtaion file, for more details see:
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
#
# EditorConfig Configuration file, for more details see:
# http://EditorConfig.org
# EditorConfig is a convention description, that could be interpreted
# by multiple editors to enforce common coding conventions for specific
Expand All @@ -8,7 +12,9 @@
# Will ignore other EditorConfig files in Home directory or upper tree level.
root = true

[*] # For All Files

[*]
# Default settings for all files.
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
Expand All @@ -24,19 +30,27 @@ max_line_length = off
# 4 space indentation
indent_size = 4

[*.{yml}]
[*.{yml,zpt,pt,dtml,zcml,html,xml}]
# 2 space indentation
indent_size = 2

[*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}]
# Frontend development
# 2 space indentation
indent_size = 2
max_line_length = 80

[{Makefile,.gitmodules}]
# Tab indentation (no size specified, but view as 4 spaces)
indent_style = tab
indent_size = unset
tab_width = unset

[*.bat]
indent_style = tab
end_of_line = crlf

[LICENSE]
insert_final_newline = false
##
# Add extra configuration options in .meta.toml:
# [editorconfig]
# extra_lines = """
# _your own configuration lines_
# """
##
22 changes: 22 additions & 0 deletions .flake8
@@ -0,0 +1,22 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
[flake8]
doctests = 1
ignore =
# black takes care of line length
E501,
# black takes care of where to break lines
W503,
# black takes care of spaces within slicing (list[:])
E203,
# black takes care of spaces after commas
E231,

##
# Add extra configuration options in .meta.toml:
# [flake8]
# extra_lines = """
# _your own configuration lines_
# """
##
32 changes: 0 additions & 32 deletions .github/workflows/black.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/isort.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/meta.yml
@@ -0,0 +1,66 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
name: Meta
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
workflow_dispatch:

##
# To set environment variables for all jobs, add in .meta.toml:
# [github]
# env = """
# debug: 1
# image-name: 'org/image'
# image-tag: 'latest'
# """
##

jobs:
qa:
uses: plone/meta/.github/workflows/qa.yml@main
test:
uses: plone/meta/.github/workflows/test.yml@main
coverage:
uses: plone/meta/.github/workflows/coverage.yml@main
dependencies:
uses: plone/meta/.github/workflows/dependencies.yml@main
release_ready:
uses: plone/meta/.github/workflows/release_ready.yml@main

##
# To modify the list of default jobs being created add in .meta.toml:
# [github]
# jobs = [
# "qa",
# "test",
# "coverage",
# "dependencies",
# "release_ready",
# "circular",
# ]
##

##
# To request that some OS level dependencies get installed
# when running tests/coverage jobs, add in .meta.toml:
# [github]
# os_dependencies = "git libxml2 libxslt"
##


##
# Specify additional jobs in .meta.toml:
# [github]
# extra_lines = """
# another:
# uses: org/repo/.github/workflows/file.yml@main
# """
##
80 changes: 54 additions & 26 deletions .gitignore
@@ -1,28 +1,56 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
# python related
*.egg-info
*.pyc
*.pyo

# translation related
*.mo
*.py[cod]
*~
/.Python
/.coverage*
/.installed.cfg
/bin/
/build/
/coverage*
/develop-eggs/
/dist/
/docs/Makefile
/docs/html/
/eggs/
/htmlcov
/include/
/lib/
/local.cfg
/local/
/parts/
/share/
/src/plone.api.egg-info/
/var/
/reports/
/pip-selfcheck.json
/_build/
/.tox/

# tools related
build/
.coverage
.*project
coverage.xml
dist/
docs/_build
__pycache__/
.tox
.vscode/
node_modules/

# venv / buildout related
bin/
develop-eggs/
eggs/
.eggs/
etc/
.installed.cfg
include/
lib/
lib64
.mr.developer.cfg
parts/
pyvenv.cfg
var/
local.cfg

# mxdev
/instance/
/.make-sentinels/
/*-mxdev.txt
/reports/
/sources/
/venv/
.installed.txt


##
# Add extra configuration options in .meta.toml:
# [gitignore]
# extra_lines = """
# _your own configuration lines_
# """
##

0 comments on commit 7cb4816

Please sign in to comment.