[16.0][IMP] update crm repo template#744
Open
maisim wants to merge 2 commits into
Open
Conversation
Changes applied by copier update: - Bump template version v1.31 -> v1.42 - Switch from flake8/black/isort/pyupgrade to ruff (ruff + ruff-format) - Remove .flake8, .isort.cfg - Add .ruff.toml (target py3.10, isort, pyupgrade, mccabe, line-length) - Remove autoflake, pyupgrade, isort, black, flake8 pre-commit hooks - Add ruff and ruff-format pre-commit hooks - Enable use_ruff=true, use_pyproject_toml=true in copier answers - Add .gitattributes (test-requirements.txt merge=union) - pre-commit-config.yaml: - maintainer-tools rev bump (f9b919b) - python default version: python3 -> python3.10 - Add whool-init hook (sbidoul/whool v1.3) - Add obsolete dotfiles check hook - Add oca-gen-external-dependencies hook - Add --convert-fragments-to-markdown to oca-gen-addon-readme - Remove setuptools-odoo (replaced by whool) - .github/workflows/pre-commit.yml: - python-version: 3.11 -> 3.10 - Add pip cache for setup-python - .github/workflows/test.yml: - postgres:12.0 -> postgres:12 - Add 'Upload screenshots from JS tests' artifact step on failure - .pylintrc / .pylintrc-mandatory: reorder enable= list (alpha-sort by group) - README.md: add OCA support banner, fill repo description
Contributor
|
Hi @Shide, @victoralmau, @luisg123v, @bealdav, @rafaelbn, @edlopen, @carolinafernandez-tecnativa, @EmilioPascual, |
- Added OCA banner to README files for better visibility. - Corrected license badge text from \\"licence\\" to \\"license\\" in README files. - Improved formatting and clarity in module descriptions and usage instructions. - Created new markdown files for contributors and usage instructions to replace outdated formats. - Updated HTML documentation to reflect changes in README structure and content. - Added pyproject.toml files for build system configuration in both crm_won_restrict_per_stage and marketing_crm_partner modules.
7fdd6ad to
cf99220
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the repo template using copier update
Development tooling and linting modernization:
.flake8and.isort.cfgconfiguration files with a new.ruff.toml, configuring Ruff for linting, formatting, and import sorting, and specifying rules, exclusions, and per-file ignores. [1] [2] [3].pre-commit-config.yamlto remove Flake8, isort, Black, pyupgrade, and autoflake hooks, and adds Ruff and Ruff-format hooks. Also updates and adds other hooks, such aswhool-init, and improves OCA hooks usage. [1] [2] [3].copier-answers.ymlto enable Ruff andpyproject.tomlusage, and enables conversion of README fragments to markdown. [1] [2]Continuous Integration enhancements:
postgres:12tag (instead ofpostgres:12.0), and adds a step to upload screenshots from failed JS tests. [1] [2]test-requirements.txtin.gitattributes.Documentation and metadata improvements:
README.mdandcrm_claim/README.rstwith a project description, OCA support banner, and improved formatting and clarity for configuration and credits sections. [1] [2] [3] [4] [5] [6].copier-answers.ymlto accurately reflect the CRM modules' purpose.Pylint configuration updates:
.pylintrcand.pylintrc-mandatory, improving code quality enforcement and aligning with OCA standards. [1] [2] [3] [4]Minor code improvements:
crm_claim/models/crm_claim.pyto use Python 3super()style for clarity and conciseness. [1] [2]