Skip to content

Commit

Permalink
Merge pull request #66 from Tecnativa/subdir
Browse files Browse the repository at this point in the history
Move template into a subdirectory
  • Loading branch information
sbidoul authored Sep 2, 2021
2 parents ce5c88d + e8741bf commit 5bffa99
Show file tree
Hide file tree
Showing 26 changed files with 218 additions and 222 deletions.
20 changes: 0 additions & 20 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .editorconfig
12 changes: 0 additions & 12 deletions .flake8

This file was deleted.

1 change: 1 addition & 0 deletions .flake8
74 changes: 0 additions & 74 deletions .github/workflows/stale.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/stale.yml
75 changes: 0 additions & 75 deletions .gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
13 changes: 0 additions & 13 deletions .isort.cfg

This file was deleted.

1 change: 1 addition & 0 deletions .isort.cfg
8 changes: 0 additions & 8 deletions .prettierrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.yml
18 changes: 1 addition & 17 deletions copier.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Configure jinja2 defaults to make syntax highlighters happy
_templates_suffix: .jinja
_subdirectory: src
_envops:
block_end_string: "%}"
block_start_string: "{%"
Expand All @@ -9,23 +10,6 @@ _envops:
variable_end_string: "}}"
variable_start_string: "{{"

# Other Copier configurations
_exclude:
- /.git
- /.github/workflows/lint.yml
- /.github/workflows/test.yml
- /.gitmodules
- /**.pyc
- /**.pyo
- /copier.yml
- /poetry.lock
- /pyproject.toml
- /pytest.ini
- /setup.cfg
- /tests
- /vendor
- /version-specific

odoo_version:
type: float
default: 14.0
Expand Down
20 changes: 20 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Configuration for known file extensions
[*.{css,js,json,less,md,py,rst,sass,scss,xml,yaml,yml}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{json,yml,yaml,rst,md}]
indent_size = 2

# Do not configure editor for libs and autogenerated content
[{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = false
trim_trailing_whitespace = false
File renamed without changes.
12 changes: 12 additions & 0 deletions src/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
per-file-ignores=
__init__.py:F401
File renamed without changes.
74 changes: 74 additions & 0 deletions src/.github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 12 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
steps:
# 120+30 day stale policy for PRs
# * Except PRs marked as "no stale"
- name: Stale PRs policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-pr-labels: "no stale"
days-before-stale: 120
days-before-close: 30
days-before-issue-stale: -1
days-before-issue-close: -1
remove-stale-when-updated: true
stale-pr-label: "stale"
stale-pr-message: >
There hasn't been any activity on this pull request in the past 4 months, so
it has been marked as stale and it will be closed automatically if no
further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply
the "no stale" label.
# 180+30 day stale policy for open issues
# * Except Issues marked as "no stale"
- name: Stale Issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: "no stale,needs more information"
days-before-stale: 180
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
There hasn't been any activity on this issue in the past 6 months, so it has
been marked as stale and it will be closed automatically if no further
activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to
apply the "no stale" label.
# 15+30 day stale policy for issues pending more information
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: "needs more information"
exempt-issue-labels: "no stale"
days-before-stale: 15
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
This issue needs more information and there hasn't been any activity
recently, so it has been marked as stale and it will be closed automatically
if no further activity occurs in the next 30 days.
If you think this is a mistake, please ask a PSC member to remove the "needs
more information" label.
Loading

0 comments on commit 5bffa99

Please sign in to comment.