Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggiornamento del template di repository #3767

Merged
merged 61 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
dc96463
Updated from template
SirAionTech Nov 17, 2023
6bfe492
[REF] account_vat_period_end_statement: Update repo template
SirAionTech Nov 17, 2023
70853df
[REF] l10n_it_abicab: Update repo template
SirAionTech Nov 17, 2023
a19c447
[REF] l10n_it_account_tax_kind: Update repo template
SirAionTech Nov 17, 2023
75ed3a9
[REF] l10n_it_ateco: Update repo template
SirAionTech Nov 17, 2023
8986b51
[REF] l10n_it_declaration_of_intent: Update repo template
SirAionTech Nov 17, 2023
59019c7
[REF] l10n_it_delivery_note: Update repo template
SirAionTech Nov 17, 2023
5824b41
[REF] l10n_it_fatturapa: Update repo template
SirAionTech Nov 17, 2023
1a943c2
[REF] l10n_it_fatturapa_in: Update repo template
SirAionTech Nov 17, 2023
c18c706
[REF] l10n_it_fatturapa_in_purchase: Update repo template
SirAionTech Nov 17, 2023
cc19f36
[REF] l10n_it_fatturapa_out: Update repo template
SirAionTech Nov 17, 2023
7a6ae37
[REF] l10n_it_fatturapa_out_wt: Update repo template
SirAionTech Nov 17, 2023
30c3910
[REF] l10n_it_fatturapa_pec: Update repo template
SirAionTech Nov 17, 2023
183b8fb
[REF] l10n_it_financial_statements_report: Update repo template
SirAionTech Nov 17, 2023
5d4890d
[REF] l10n_it_fiscalcode: Update repo template
SirAionTech Nov 17, 2023
1c0eefd
[REF] l10n_it_intrastat: Update repo template
SirAionTech Nov 17, 2023
0c27abe
[REF] l10n_it_intrastat_statement: Update repo template
SirAionTech Nov 17, 2023
8f17b86
[REF] l10n_it_payment_reason: Update repo template
SirAionTech Nov 17, 2023
a045a94
[REF] l10n_it_riba: Update repo template
SirAionTech Nov 17, 2023
86d9f4c
[REF] l10n_it_vat_registries: Update repo template
SirAionTech Nov 17, 2023
31dc1a3
[REF] l10n_it_vat_statement_communication: Update repo template
SirAionTech Nov 17, 2023
f98ad4e
[REF] l10n_it_vat_statement_split_payment: Update repo template
SirAionTech Nov 17, 2023
3d404b1
[REF] account_vat_period_end_statement: Reformatted after template up…
SirAionTech Nov 17, 2023
c6103ac
[REF] l10n_it_abicab: Reformatted after template update
SirAionTech Nov 17, 2023
c433432
[REF] l10n_it_account: Reformatted after template update
SirAionTech Nov 17, 2023
4af3e46
[REF] l10n_it_account_stamp: Reformatted after template update
SirAionTech Nov 17, 2023
b464efa
[REF] l10n_it_account_tax_kind: Reformatted after template update
SirAionTech Nov 17, 2023
512d324
[REF] l10n_it_central_journal_reportlab: Reformatted after template u…
SirAionTech Nov 17, 2023
b009ef6
[REF] l10n_it_declaration_of_intent: Reformatted after template update
SirAionTech Nov 17, 2023
a392285
[REF] l10n_it_delivery_note: Reformatted after template update
SirAionTech Nov 17, 2023
4be624c
[REF] l10n_it_fatturapa: Reformatted after template update
SirAionTech Nov 17, 2023
042702b
[REF] l10n_it_fatturapa_import_zip: Reformatted after template update
SirAionTech Nov 17, 2023
b91d89a
[REF] l10n_it_fatturapa_in: Reformatted after template update
SirAionTech Dec 7, 2023
bcbb610
[REF] l10n_it_fatturapa_in_rc: Reformatted after template update
SirAionTech Dec 7, 2023
ebb4b5e
[REF] l10n_it_fatturapa_out: Reformatted after template update
SirAionTech Dec 7, 2023
880efb5
[REF] l10n_it_fatturapa_out_di: Reformatted after template update
SirAionTech Dec 7, 2023
4cce813
[REF] l10n_it_fatturapa_out_rc: Reformatted after template update
SirAionTech Dec 7, 2023
8571eaf
[REF] l10n_it_fatturapa_out_sp: Reformatted after template update
SirAionTech Dec 7, 2023
44361d0
[REF] l10n_it_fatturapa_out_wt: Reformatted after template update
SirAionTech Dec 7, 2023
9f029cb
[REF] l10n_it_fatturapa_pec: Reformatted after template update
SirAionTech Dec 7, 2023
efd39f0
[REF] l10n_it_fatturapa_sale: Reformatted after template update
SirAionTech Dec 7, 2023
b02d582
[REF] l10n_it_financial_statements_report: Reformatted after template…
SirAionTech Dec 7, 2023
24e50a2
[REF] l10n_it_fiscal_document_type: Reformatted after template update
SirAionTech Dec 7, 2023
5b09f68
[REF] l10n_it_fiscal_payment_term: Reformatted after template update
SirAionTech Dec 7, 2023
698bc0d
[REF] l10n_it_fiscalcode: Reformatted after template update
SirAionTech Dec 7, 2023
b59b677
[REF] l10n_it_intrastat_statement: Reformatted after template update
SirAionTech Dec 7, 2023
5e04734
[REF] l10n_it_payment_reason: Reformatted after template update
SirAionTech Dec 7, 2023
b104462
[REF] l10n_it_rea: Reformatted after template update
SirAionTech Dec 7, 2023
b98eccd
[REF] l10n_it_reverse_charge: Reformatted after template update
SirAionTech Dec 7, 2023
b36f438
[REF] l10n_it_riba: Reformatted after template update
SirAionTech Dec 7, 2023
9f1ec35
[REF] l10n_it_split_payment: Reformatted after template update
SirAionTech Dec 7, 2023
6c74461
[REF] l10n_it_vat_registries: Reformatted after template update
SirAionTech Dec 7, 2023
2023248
[REF] l10n_it_vat_statement_communication: Reformatted after template…
SirAionTech Dec 7, 2023
09ecced
[REF] l10n_it_vat_statement_split_payment: Reformatted after template…
SirAionTech Dec 7, 2023
91e029a
[REF] l10n_it_website_portal_fatturapa: Reformatted after template up…
SirAionTech Dec 7, 2023
ccba28c
[REF] l10n_it_website_portal_fiscalcode: Reformatted after template u…
SirAionTech Dec 7, 2023
af71b44
[REF] l10n_it_withholding_tax: Reformatted after template update
SirAionTech Dec 7, 2023
cbb4c46
[REF] l10n_it_withholding_tax_payment: Reformatted after template update
SirAionTech Dec 7, 2023
a090e20
Updated from template
SirAionTech Jan 3, 2024
0341005
[REF] l10n_it_bill_of_entry: Reformatted after template update
SirAionTech Feb 14, 2024
eeb27e3
[REF] l10n_it_fatturapa_out_oss: Reformatted after template update
SirAionTech Feb 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 7 additions & 5 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_commit: v1.20
_src_path: gh:oca/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
dependency_installation_mode: PIP
convert_readme_fragments_to_markdown: true
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
github_enable_codecov: true
github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
include_wkhtmltopdf: true
odoo_test_flavor: Both
odoo_version: 16.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
Expand All @@ -19,6 +21,6 @@ repo_description: Addons concerning Odoo Italian Localization.
repo_name: Odoo Italia Modules
repo_slug: l10n-italy
repo_website: https://github.com/OCA/l10n-italy
travis_apt_packages: []
travis_apt_sources: []
use_pyproject_toml: true
use_ruff: true

1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ globals:
odoo: readonly
openerp: readonly
owl: readonly
luxon: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
Expand Down
12 changes: 0 additions & 12 deletions .flake8

This file was deleted.

11 changes: 10 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.11"
Expand All @@ -27,6 +27,15 @@ jobs:
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
env:
# Consider valid a PR that changes README fragments but doesn't
# change the README.rst file itself. It's not really a problem
# because the bot will update it anyway after merge. This way, we
# lower the barrier for functional contributors that want to fix the
# readme fragments, while still letting developers get README
# auto-generated (which also helps functionals when using runboat).
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
SKIP: oca-gen-addon-readme
SirAionTech marked this conversation as resolved.
Show resolved Hide resolved
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
Expand All @@ -36,10 +36,10 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:12.0
Expand All @@ -50,7 +50,7 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install addons and dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand Down
13 changes: 0 additions & 13 deletions .isort.cfg

This file was deleted.

71 changes: 28 additions & 43 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ exclude: |
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)|
# official goverment specs
Expand Down Expand Up @@ -42,28 +46,32 @@ repos:
entry: found a en.po file
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/sbidoul/whool
rev: v0.5
hooks:
- id: whool-init
- repo: https://github.com/oca/maintainer-tools
rev: 4cd2b852214dead80822e93e6749b16f2785b2fe
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OCA/l10n-italy"]
- repo: https://github.com/myint/autoflake
rev: v1.6.1
hooks:
- id: autoflake
- id: oca-gen-addon-readme
args:
- --expand-star-imports
- --ignore-init-module-imports
- --in-place
- --remove-all-unused-imports
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/psf/black
rev: 22.8.0
- --addons-dir=.
- --branch=16.0
- --org-name=OCA
- --repo-name=l10n-italy
- --if-source-changed
- --keep-source-digest
- --convert-fragments-to-markdown
- id: oca-gen-external-dependencies
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
- id: black
- id: oca-checks-odoo-module
- id: oca-checks-po
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
Expand Down Expand Up @@ -105,37 +113,14 @@ repos:
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
hooks:
- id: pyupgrade
args: ["--keep-percent-format"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort except __init__.py
args:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.1.8
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
args:
- --output
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: flake8
name: flake8
additional_dependencies: ["flake8-bugbear==21.9.2"]
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/OCA/pylint-odoo
rev: 7.0.2
rev: v8.0.19
hooks:
- id: pylint_odoo
name: pylint with optional checks
Expand Down
12 changes: 6 additions & 6 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ load-plugins=pylint_odoo
score=n

[ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Odoo Community Association (OCA)
manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid_odoo_versions=16.0
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Odoo Community Association (OCA)
manifest-required-keys=license
manifest-deprecated-keys=description,active
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid-odoo-versions=16.0

[MESSAGES CONTROL]
disable=all
Expand Down
12 changes: 6 additions & 6 deletions .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ load-plugins=pylint_odoo
score=n

[ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Odoo Community Association (OCA)
manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid_odoo_versions=16.0
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest-required-authors=Odoo Community Association (OCA)
manifest-required-keys=license
manifest-deprecated-keys=description,active
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid-odoo-versions=16.0

[MESSAGES CONTROL]
disable=all
Expand Down
30 changes: 30 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

target-version = "py310"
fix = true

[lint]
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
exclude = ["setup/*"]

[format]
exclude = ["setup/*"]

[per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
"__manifest__.py" = ["B018"] # useless expression

[isort]
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]

[isort.sections]
"odoo" = ["odoo"]
"odoo-addons" = ["odoo.addons"]

[mccabe]
max-complexity = 16
Loading
Loading