mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Move lint tools configuration to pyproject.toml
This commit removes the mypy CI job, since there are no or few type hints in the codebase and it failed on unrelated changes in the past. It might be reintroduced when type hints get added.
This commit is contained in:
		
							parent
							
								
									42cb31039e
								
							
						
					
					
						commit
						e4d16ec1e8
					
				
					 4 changed files with 64 additions and 81 deletions
				
			
		| 
						 | 
				
			
			@ -219,7 +219,7 @@ lint_format_safety_bandit_checks:
 | 
			
		|||
        --ini .bandit
 | 
			
		||||
        || set_error
 | 
			
		||||
    - safety check --full-report || set_error
 | 
			
		||||
    - pylint --rcfile=.pylint-rcfile --output-format=colorized --reports=n
 | 
			
		||||
    - pylint --output-format=colorized --reports=n
 | 
			
		||||
            fdroid
 | 
			
		||||
            makebuildserver
 | 
			
		||||
            setup.py
 | 
			
		||||
| 
						 | 
				
			
			@ -234,26 +234,11 @@ lint_format_safety_bandit_checks:
 | 
			
		|||
    - exit $EXITVALUE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
lint_mypy:
 | 
			
		||||
  image: debian:bullseye-backports
 | 
			
		||||
  <<: *apt-template
 | 
			
		||||
  script:
 | 
			
		||||
    # use Debian packages to avoid building C/rust sources
 | 
			
		||||
    - apt-get install
 | 
			
		||||
          mypy
 | 
			
		||||
          python3-cryptography
 | 
			
		||||
          python3-pip
 | 
			
		||||
          python3-wheel
 | 
			
		||||
    - apt-get install -t bullseye-backports python3-pyjks
 | 
			
		||||
    - pip install -e .[test]
 | 
			
		||||
    - mypy
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
black:
 | 
			
		||||
  image: python:slim
 | 
			
		||||
  script:
 | 
			
		||||
    - pip install black
 | 
			
		||||
    - black --check --diff --color --skip-string-normalization
 | 
			
		||||
    - black --check --diff --color
 | 
			
		||||
        examples/fdroid_extract_repo_pubkey.py
 | 
			
		||||
        examples/makebuildserver.config.py
 | 
			
		||||
        fdroid
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue